[MOAB-dev] r4146 - in MOAB/trunk/test: . h5file

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Sep 24 14:28:07 CDT 2010


Author: kraftche
Date: 2010-09-24 14:28:07 -0500 (Fri, 24 Sep 2010)
New Revision: 4146

Modified:
   MOAB/trunk/test/Makefile.am
   MOAB/trunk/test/TestUtil.hpp
   MOAB/trunk/test/h5file/h5partial.cpp
   MOAB/trunk/test/h5file/h5portable.cpp
Log:
move new test runner into separate header to elimante warnings about unused functions when compiling tests that don't use it

Modified: MOAB/trunk/test/Makefile.am
===================================================================
--- MOAB/trunk/test/Makefile.am	2010-09-24 19:24:56 UTC (rev 4145)
+++ MOAB/trunk/test/Makefile.am	2010-09-24 19:28:07 UTC (rev 4146)
@@ -103,6 +103,8 @@
 
 bsp_tree_poly_test_SOURCES = bsp_tree_poly_test.cpp
 
+EXTRA_DIST = TestUtil.hpp TestRunner.hpp
+
 mb_big_test.g: $(MESHDIR)/mb_big_test.g.gz
 	$(AM_V_GEN)$(ZCAT) $< > $@
 

Modified: MOAB/trunk/test/TestUtil.hpp
===================================================================
--- MOAB/trunk/test/TestUtil.hpp	2010-09-24 19:24:56 UTC (rev 4145)
+++ MOAB/trunk/test/TestUtil.hpp	2010-09-24 19:28:07 UTC (rev 4146)
@@ -57,37 +57,7 @@
 #endif
 
 
-/***************************************************************************************
- * Begin test runner implememtation.
- * This is a higher-level API that can be used to register tests,
- * test dependencies, and to run-time select a subset of tests to 
- * run.
- ***************************************************************************************/
 
-/* Register a test to be run */
-#define REGISTER_TEST( TEST_FUNC ) \
-  runner_register_test( __FILE__, __LINE__, #TEST_FUNC, (TEST_FUNC), NULL )
-
-/* Mark a dependency between tests.  The second argument must be
- * an alredy-regsitered test.  The first argument will be registered
- * as a test if it has not already been registered.  The test specified
- * by the first argument will be run only if the test specified by
- * the second argument is run and succeeds.
- */
-#define REGISTER_DEP_TEST( TEST_FUNC, REQUIRED_FUNC ) \
-  runner_register_test( __FILE__, __LINE__, #TEST_FUNC, (TEST_FUNC), (REQUIRED_FUNC) )
-
-/* Run registered tests.  
- * Arguments should be argc and argv passed to main.
- * If ARGC is less than or equal to 1 then all tests are run.
- * Otherwse only tests specified in the argument list are run.
- * Returns number of failed tests.
- */
-#define RUN_TESTS( ARGC, ARGV ) \
-  runner_run_tests( (ARGC), (ARGV) )
-


More information about the moab-dev mailing list