diff options
-rwxr-xr-x | tester | 16 | ||||
-rw-r--r-- | tester.bat | 3 |
2 files changed, 11 insertions, 8 deletions
@@ -9,15 +9,17 @@ # The data files, if any, are in $srcdir. # -schema=`echo *.sql` - -if test -f $schema; then - $top_builddir/db-driver $schema +# Globbing returns files in alphabetic order. +# +for f in `echo *.sql`; do + if test -f $f; then + $top_builddir/db-driver $f - if test $? -ne 0; then - exit 1 + if test $? -ne 0; then + exit 1 + fi fi -fi +done echo ./driver --options-file "$top_builddir/db.options" ./driver --options-file "$top_builddir/db.options" @@ -20,6 +20,8 @@ if "_%3_" == "_Win32_" ( set "dir=%3\%2" ) +rem Globbing returns files in alphabetic order. +rem if exist *.sql ( for %%f in (*.sql) do ( call %topdir%\%1-driver.bat %%f @@ -38,4 +40,3 @@ exit /b 1 :end endlocal - |