hydra-emu/hydra

Make CTest work

OFFTKP opened this issue · 0 comments

TODO:

Link with cppunit

Needed in CMakeLists.txt:
enable_testing()
add_test(...)

Use <cppunit/extensions/HelperMacros.h>:

CPPUNIT_TEST_SUITE(ExampleTest);
CPPUNIT_TEST(testExample);
CPPUNIT_TEST_EXCEPTION(testExample, ExampleError); // specific exceptions for specific functions? probably not
CPPUNIT_TEST_SUITE_END();

// ...

CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(ExampleTest, "test_example");

Add test parameter in TKPEmu that runs these tests and make ctest call that