From 475a01f652eccea04fb8992f0c2ccb027970539d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 Dec 2014 15:24:31 +0200 Subject: Add support for database-specific output in tests Use that for the bulk test. --- tester.bat | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'tester.bat') 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 -- cgit v1.1