diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-12-17 15:24:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-12-17 15:24:31 +0200 |
commit | 475a01f652eccea04fb8992f0c2ccb027970539d (patch) | |
tree | 22c1011a8c4172d7e72680ddfd1a9249fe1fe663 /tester.bat | |
parent | 32f09571e564c42c04acdba2cf139a507aa4b0da (diff) |
Add support for database-specific output in tests
Use that for the bulk test.
Diffstat (limited to 'tester.bat')
-rw-r--r-- | tester.bat | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -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 |