@echo off
REM $Id: CTFRun.bat,v 1.3 2005/02/22 07:28:13 kvisco Exp $
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 -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 -verbose src/tests/xml/RegressionTestSuite

:end
set CLASSPATH=%OLDCP%
set OLDCP=

