From 19167cb869f9cc9be733a5ba7f45f10515930297 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Jul 2012 14:40:13 +0200 Subject: Add support for multiple database schema files Files are executed in alphabetic order. --- tester | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tester') diff --git a/tester b/tester index c8f16fa..d0e91df 100755 --- a/tester +++ b/tester @@ -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" -- cgit v1.1