[mapguide-commits] r8382 - trunk/MgDev
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sat Oct 4 06:57:16 PDT 2014
Author: jng
Date: 2014-10-04 06:57:16 -0700 (Sat, 04 Oct 2014)
New Revision: 8382
Modified:
trunk/MgDev/run_tests.bat
Log:
#2307: Add Java tests execution to run_tests.bat
Modified: trunk/MgDev/run_tests.bat
===================================================================
--- trunk/MgDev/run_tests.bat 2014-10-04 13:55:15 UTC (rev 8381)
+++ trunk/MgDev/run_tests.bat 2014-10-04 13:57:16 UTC (rev 8382)
@@ -24,12 +24,16 @@
SET RUN_SERVER_TESTS=0
SET RUN_PHP_TESTS=1
SET RUN_DOTNET_TESTS=1
+SET RUN_JAVA_TESTS=1
SET RETURN_CODE=0
echo *************** TEST SUMMARY ******************
echo Platform: %PLAT%
echo Configuration: %CONF%
+echo Run PHP Tests: %RUN_PHP_TESTS%
+echo Run .net Tests: %RUN_DOTNET_TESTS%
+echo Run Java Tests: %RUN_JAVA_TESTS%
echo ***********************************************
:test_server
if "%RUN_SERVER_TESTS%" == "1" (
@@ -128,6 +132,28 @@
if %ERRORLEVEL% neq 0 echo [test]: .net test runner had one or more test failures. Check log files for more information
popd
)
+:test_java
+if "%RUN_JAVA_TESTS%" == "1" (
+ echo [test]: Java tests
+ REM Clear out old dbs before running
+ pushd UnitTest\TestData
+ if exist Unicode\UnicodeTest.db del /F Unicode\UnicodeTest.db
+ if exist WmsTest\WmsTest.db del /F WmsTest\WmsTest.db
+ if exist WebLayout\WebLayoutTest.db del /F WebLayout\WebLayoutTest.db
+ if exist WfsTest\WfsTest.db del /F WfsTest\WfsTest.db
+ if exist MapLayer\MapLayerTest.db del /F MapLayer\MapLayerTest.db
+ if exist ServerAdmin\ServerAdminTest.db del /F ServerAdmin\ServerAdminTest.db
+ if exist MappingService\MappingServiceTest.db del /F MappingService\MappingServiceTest.db
+ if exist SiteService\SiteServiceTest.db del /F SiteService\SiteServiceTest.db
+ if exist FeatureService\FeatureServiceTest.db del /F FeatureService\FeatureServiceTest.db
+ if exist DrawingService\DrawingServiceTest.db del /F DrawingService\DrawingServiceTest.db
+ if exist ResourceService\ResourceServiceTest.db del /F ResourceService\ResourceServiceTest.db
+ popd
+ pushd UnitTest\WebTier\Java
+ call ant check
+ if %ERRORLEVEL% neq 0 echo [test]: Java test runner had one or more test failures. Check log files for more information
+ popd
+)
:stop_mgserver
if "%START_MGSERVER%" == "1" (
echo [test]: Terminating mgserver.exe
More information about the mapguide-commits
mailing list