bgneal@0: #include "x1.h" bgneal@0: #include "x2.h" bgneal@0: #include "x3.h" bgneal@0: bgneal@0: #include bgneal@0: bgneal@0: int main(int argc, char* argv[]) bgneal@0: { bgneal@0: int retval = EXIT_SUCCESS; bgneal@0: bgneal@0: { bgneal@0: sample_test sample_test_instance; bgneal@0: sample_test_instance.add_test("test42", &sample_test::test42); bgneal@0: sample_test_instance.add_test("testbeast", &sample_test::testbeast); bgneal@0: sample_test_instance.add_test("testfivealive", &sample_test::testfivealive); bgneal@0: const int r = sample_test_instance.run(argc, argv); bgneal@0: retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE; bgneal@0: } bgneal@0: { bgneal@0: misc_tests misc_tests_instance; bgneal@0: misc_tests_instance.add_test("testexceptions", &misc_tests::testexceptions); bgneal@0: misc_tests_instance.add_test("testloopdata", &misc_tests::testloopdata); bgneal@0: misc_tests_instance.add_test("testfloatingpoint", &misc_tests::testfloatingpoint); bgneal@0: const int r = misc_tests_instance.run(argc, argv); bgneal@0: retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE; bgneal@0: } bgneal@0: { bgneal@0: exception_test exception_test_instance; bgneal@0: exception_test_instance.add_test("test_array_bounds", &exception_test::test_array_bounds); bgneal@0: exception_test_instance.add_test("test_should_catch_std_exceptions", &exception_test::test_should_catch_std_exceptions); bgneal@0: const int r = exception_test_instance.run(argc, argv); bgneal@0: retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE; bgneal@0: } bgneal@0: { bgneal@0: MyTest MyTest_instance; bgneal@0: MyTest_instance.add_test("testIt", &MyTest::testIt); bgneal@0: const int r = MyTest_instance.run(argc, argv); bgneal@0: retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE; bgneal@0: } bgneal@0: bgneal@0: return retval; bgneal@0: }