summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-05 17:11:54 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-05 17:11:54 +0000
commitbf046f87c8d322939c6a883a405056003b8b1abd (patch)
treea782d18df16f8060ce36878cf8610ef093821db2 /src/inspircd.cpp
parent6a95b42e11bae7a3385c3d03819e29bb64f00191 (diff)
Delete the old broken test suite.
This doesn't work properly and is disabled in both debug & release builds. It will be resurrected with a proper unit testing framework in the future.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 09e48ea1f..94132cf95 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -47,7 +47,6 @@
#include <iostream>
#include "xline.h"
#include "exitcodes.h"
-#include "testsuite.h"
InspIRCd* ServerInstance = NULL;
@@ -78,13 +77,6 @@ const char* ExitCodes[] =
"Received SIGTERM" // 10
};
-#ifdef INSPIRCD_ENABLE_TESTSUITE
-/** True if we have been told to run the testsuite from the commandline,
- * rather than entering the mainloop.
- */
-static int do_testsuite = 0;
-#endif
-
template<typename T> static void DeleteZero(T*&n)
{
T* t = n;
@@ -290,9 +282,6 @@ InspIRCd::InspIRCd(int argc, char** argv) :
{ "nopid", no_argument, &do_nopid, 1 },
{ "runasroot", no_argument, &do_root, 1 },
{ "version", no_argument, &do_version, 1 },
-#ifdef INSPIRCD_ENABLE_TESTSUITE
- { "testsuite", no_argument, &do_testsuite, 1 },
-#endif
{ 0, 0, 0, 0 }
};
@@ -330,11 +319,6 @@ InspIRCd::InspIRCd(int argc, char** argv) :
}
}
-#ifdef INSPIRCD_ENABLE_TESTSUITE
- if (do_testsuite)
- do_nofork = do_debug = true;
-#endif
-
if (do_version)
{
std::cout << std::endl << INSPIRCD_VERSION << std::endl;
@@ -585,16 +569,6 @@ void InspIRCd::UpdateTime()
void InspIRCd::Run()
{
-#ifdef INSPIRCD_ENABLE_TESTSUITE
- /* See if we're supposed to be running the test suite rather than entering the mainloop */
- if (do_testsuite)
- {
- TestSuite* ts = new TestSuite;
- delete ts;
- return;
- }
-#endif
-
UpdateTime();
time_t OLDTIME = TIME.tv_sec;