1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
14 /* $Core: libIRCDtestsuite */
17 #include "testsuite.h"
22 TestSuite::TestSuite(InspIRCd* Instance) : ServerInstance(Instance)
24 cout << "\n\n*** STARTING TESTSUITE ***\n";
30 cout << "(1) Call all module OnRunTestSuite() methods\n";
31 cout << "(2) Load a module\n";
32 cout << "(3) Unload a module\n";
33 cout << "(4) Threading tests\n";
38 FOREACH_MOD(I_OnRunTestSuite, OnRunTestSuite());
41 cout << "Enter module filename to load: ";
43 cout << (Instance->Modules->Load(modname.c_str()) ? "\nSUCCESS!\n" : "\nFAILURE\n");
46 cout << "Enter module filename to unload: ";
48 cout << (Instance->Modules->Unload(modname.c_str()) ? "\nSUCCESS!\n" : "\nFAILURE\n");
51 cout << (DoThreadTests() ? "\nSUCCESS!\n" : "\nFAILURE\n");
58 bool TestSuite::DoThreadTests()
63 TestSuite::~TestSuite()
65 cout << "\n\n*** END OF TEST SUITE ***\n";