@echo off
REM $Id: CTFRun.bat 6295 2006-10-11 18:41:56Z wguttmn $
set JAVA=%JAVA_HOME%\bin\java
set OLDCP=%CLASSPATH%
set CLASSPATH=..\build\classes;..\build\tests;%JAVA_HOME%\lib\tools.jar
set cp=%CLASSPATH%
for %%i in (..\lib\*.jar) do call cp.bat %%i
rmdir /q /s ..\build\tests\output>nul
echo %CP%

if "%1"=="" goto noargs
if "%1"=="regression" goto regression
if "%1"=="master" goto master

"%JAVA%" -classpath "%CP%" org.exolab.castor.tests.framework.CastorTestSuiteRunner %1 %2 %3  %4 %5 %6 %7

goto end

:noargs
:master
echo using default arguments [-text ../src/tests/xml/MasterTestSuite]
"%JAVA%" -classpath "%CP%" org.exolab.castor.tests.framework.CastorTestSuiteRunner -text ../src/tests/xml/MasterTestSuite
goto end

:master-verbose
echo using default verbose arguments [-text -verbose ../src/tests/xml/MasterTestSuite]
"%JAVA%" -classpath "%CP%" org.exolab.castor.tests.framework.CastorTestSuiteRunner -text -verbose ../src/tests/xml/MasterTestSuite
goto end

:regression
echo using default arguments [-text -verbose ../src/tests/xml/RegressionTestSuite]
"%JAVA%" -classpath "%CP%" org.exolab.castor.tests.framework.CastorTestSuiteRunner -text ../src/tests/xml/RegressionTestSuite
goto end

:regression-verbose
echo using default arguments [-text -verbose ../src/tests/xml/RegressionTestSuite]
"%JAVA%" -classpath "%CP%" org.exolab.castor.tests.framework.CastorTestSuiteRunner -text -verbose ../src/tests/xml/RegressionTestSuite
goto end
:end
set CLASSPATH=%OLDCP%
set OLDCP=

