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.in | |
parent | 5e98aad4b067ece803b75cae7f538565da8661c8 (diff) |
Add support for multiple database schema files
Files are executed in alphabetic order.
Diffstat (limited to 'tester.in')
-rwxr-xr-x | tester.in | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -9,13 +9,17 @@ # data files, if any, are in $srcdir. # -if test -f test.sql; then - $top_builddir/db-driver test.sql +# 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" |