int main() { void* client; int err; test_Title("Misc MSystemInterface functions"); allTests(); test_Next("Do it again using the CPosixServer (for them, not me)"); close_console=1; start_posix_server(); /* calls SpawnPosixServer from C++ code */ client=create_thread(allTests, "TMISC2 tests"); test(client!=0); start_thread(client); err=wait_for_thread(client); test(err==0); test_Close(); return 0; }
int main() { void* client; int err; test_Title("Directory Handling"); allTests(); test_Next("Do it again using the CPosixServer (for them, not me)"); close_console=1; start_posix_server(); /* calls SpawnPosixServer from C++ code */ client=create_thread(allTests, "TDIRS tests"); test(client!=0); start_thread(client); err=wait_for_thread(client); test(err==0); CloseSTDLIB(); test_Close(); return 0; }
const std::vector<std::string>& AutograderTest::getAllTests(const std::string& categoryName) { return allTests()[categoryName]; }
void AutograderTest::addTestToList(const std::string& categoryName, const std::string& testName) { if (allTests().find(categoryName) == allTests().end()) { allCategories().push_back(categoryName); } allTests()[categoryName].push_back(testName); }