diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-10 14:40:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-10 14:40:13 +0200 |
commit | 66732b210c512b8dfe7e97d3ab6522cf3be72a72 (patch) | |
tree | 293e30a2722ae601566da61247b180f8ed7fb633 /tester.bat | |
parent | 5e98aad4b067ece803b75cae7f538565da8661c8 (diff) |
Add support for multiple database schema files
Files are executed in alphabetic order.
Diffstat (limited to 'tester.bat')
-rw-r--r-- | tester.bat | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -24,9 +24,13 @@ if "_%3_" == "_Win32_" ( set "dir=%3\%2" ) -if exist test.sql ( - call %topdir%\%1-driver.bat test.sql - if errorlevel 1 goto error +rem Globbing returns files in alphabetic order. +rem +if exist *.sql ( + for %%f in (*.sql) do ( + call %topdir%\%1-driver.bat %%f + if errorlevel 1 goto error + ) ) if exist test.std ( @@ -56,4 +60,3 @@ exit /b 1 :end endlocal - |