aboutsummaryrefslogtreecommitdiff
path: root/tester.bat
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-12-17 15:24:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-12-17 15:24:31 +0200
commit475a01f652eccea04fb8992f0c2ccb027970539d (patch)
tree22c1011a8c4172d7e72680ddfd1a9249fe1fe663 /tester.bat
parent32f09571e564c42c04acdba2cf139a507aa4b0da (diff)
Add support for database-specific output in tests
Use that for the bulk test.
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