[mapguide-commits] r8521 - trunk/MgDev/Server/src/UnitTesting

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jan 27 08:30:11 PST 2015


Author: jng
Date: 2015-01-27 08:30:11 -0800 (Tue, 27 Jan 2015)
New Revision: 8521

Modified:
   trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.h
Log:
Add some ifdefs to selectively enable/disable the really slow test cases in the Coordinate System test suite.

Modified: trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.h
===================================================================
--- trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.h	2015-01-27 16:27:52 UTC (rev 8520)
+++ trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.h	2015-01-27 16:30:11 UTC (rev 8521)
@@ -20,6 +20,9 @@
 
 #include <cppunit/extensions/HelperMacros.h>
 
+// Comment out the line below to disable the slow test cases
+#define ENABLE_SLOW_TESTS 1
+
 class TestCoordinateSystem : public CppUnit::TestFixture
 {
     CPPUNIT_TEST_SUITE(TestCoordinateSystem);
@@ -49,10 +52,14 @@
     CPPUNIT_TEST(TestCase_UpdateUserGeodeticTransformations);
     CPPUNIT_TEST(TestCase_UpdateUserGeodeticPaths);
 
+#ifdef ENABLE_SLOW_TESTS
     CPPUNIT_TEST(TestCase_CheckCoordinateSystems);
+#endif
     CPPUNIT_TEST(TestCase_CreateValidCoordinateSystem);
     CPPUNIT_TEST(TestCase_CreateInvalidCoordinateSystem);
+#ifdef ENABLE_SLOW_TESTS
     CPPUNIT_TEST(TestCase_EnumerateCategories);
+#endif
     CPPUNIT_TEST(TestCase_EnumerateCoordSys);
     CPPUNIT_TEST(TestCase_GetBaseLibrary);
     CPPUNIT_TEST(TestCase_IsValid);
@@ -245,10 +252,14 @@
     CPPUNIT_TEST(TestCase_NewYork_Projected);
 
     // EPSG
+#ifdef ENABLE_SLOW_TESTS
     CPPUNIT_TEST(TestCase_EPSG);
+#endif
 
     // Performance
+#ifdef ENABLE_SLOW_TESTS
     CPPUNIT_TEST(TestCase_Benchmark_Transformation);
+#endif
 
     CPPUNIT_TEST(TestEnd); // This must be the very last unit test
     CPPUNIT_TEST_SUITE_END();



More information about the mapguide-commits mailing list