aboutsummaryrefslogtreecommitdiff
path: root/tester.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tester.bat')
-rw-r--r--tester.bat24
1 files changed, 18 insertions, 6 deletions
diff --git a/tester.bat b/tester.bat
index 95513fd..396070a 100644
--- a/tester.bat
+++ b/tester.bat
@@ -33,10 +33,26 @@ if exist test*.sql (
)
)
-if exist test.std (
+if exist test-%1.std (
+ set "std=test-%1.std"
+) else (
+ if exist test.std (
+ set "std=test.std"
+ ) else (
+ set "std="
+ )
+)
+
+if "_%std%" == "__" (
+
+ %dir%\driver.exe --options-file %topdir%\%1.options
+ if errorlevel 1 goto error
+
+) else (
+
%dir%\driver.exe --options-file %topdir%\%1.options >test.out
if errorlevel 1 goto error
- %DIFF% test.std test.out
+ %DIFF% %std% test.out
if errorlevel 1 (
del /f test.out
@@ -46,10 +62,6 @@ if exist test.std (
del /f test.out
goto end
-) else (
-
- %dir%\driver.exe --options-file %topdir%\%1.options
- if errorlevel 1 goto error
)
goto end