101bool RunCMSDKTests(
const char* name,
const char* compareFile,
const char* outFile,
102 const char* outDir,
bool verbose,
bool listOnly,
bool forkPerTest) {
111 if (listOnly) { r.
listTests();
return true; }
113 if (name && *name &&
stricmp(name,
"cmsdk") != 0 &&
127 return RunCMSDKTests(NULL, NULL, NULL, NULL,
false,
false,
true);
Shared-memory process ("space") table plus per-process message queues.
Top-level entry points for running the CMSDK unit test suite.
Small, dependency-free unit test harness used by all CMSDK object tests.
static bool PerfTest()
Queue throughput benchmark.
The test runner (process-wide singleton).
void setForkPerTest(bool v)
Run each test in its own process (default: on where supported) so crashes/hangs are isolated.
void listTests() const
Print the registered tests (name, category, description) to stdout.
void setOutputFile(const char *path)
Set an explicit perf JSON output path (overrides the timestamped default).
bool hasTest(const char *name) const
static UnitTestRunner & instance()
Access the singleton (created on first use).
void setVerbose(bool v)
Enable/disable verbose diagnostics (unittest::detail output).
void setCompareFile(const char *path)
Set a previous perf JSON file to compare metrics against.
bool runAll()
Run every test marked inDefaultRun.
bool runOne(const char *name)
Run a single named test in isolation.
void setOutputDir(const char *dir)
Set the directory for the default (timestamped + latest) output files.
void Register_MemoryRequestServer_Tests()
bool RunCMSDKTests(const char *name, const char *compareFile, const char *outFile, const char *outDir, bool verbose, bool listOnly, bool forkPerTest=true)
Full configurable entry used by the Psyclone test= dispatch.
bool PerfTest_CMSDK()
Back-compatible entry: run the performance-oriented tests (legacy alias).
bool IsCMSDKTest(const char *name)
void Register_Base64_Tests()
void Register_HTML_Tests()
void Register_MemoryManager_Tests()
void Register_XMLParser_Tests()
void Register_PsyTime_Tests()
bool UnitTest_CMSDK()
Back-compatible entry: run the full suite with default settings.
void Register_VantagePoints_Tests()
void Register_Bitmap_Tests()
void Register_Stats_Tests()
void Register_TemporalMemory_Tests()
void Register_DataMessage_Tests()
void Register_ComponentMemory_Tests()
void Register_Hash_Tests()
void Register_MathClasses_Tests()
void Register_RESTParser_Tests()
void Register_NetworkProtocols_Tests()
void Register_MessageIndex_Tests()
void Register_RequestGateway_Tests()
void Register_Utils_Tests()
void RegisterAllCMSDKTests()
Register every CMSDK unit test with the framework (idempotent).
void Register_RequestClient_Tests()
void Register_NetworkManager_Tests()
void Register_Observations_Tests()
Register the Observations tests with the unit test framework.
void Register_MovingAverage_Tests()
void Register_ProcessMemory_Tests()
void Register_ThreadManager_Tests()
void Register_Subscriptions_Tests()