bgneal@0: #include "g1.h" bgneal@0: #include "g2.h" bgneal@0: #include "g3.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("beast", &sample_test::beast); bgneal@0: sample_test_instance.add_test("fivealive", &sample_test::fivealive); 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("exceptions", &misc_tests::exceptions); bgneal@0: misc_tests_instance.add_test("loopdata", &misc_tests::loopdata); bgneal@0: misc_tests_instance.add_test("floatingpoint", &misc_tests::floatingpoint); 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("array_bounds", &exception_test::array_bounds); bgneal@0: exception_test_instance.add_test("should_catch_std_exceptions", &exception_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: 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: }