aboutsummaryrefslogtreecommitdiff
path: root/tester.in
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-10 14:40:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-10 14:40:13 +0200
commit66732b210c512b8dfe7e97d3ab6522cf3be72a72 (patch)
tree293e30a2722ae601566da61247b180f8ed7fb633 /tester.in
parent5e98aad4b067ece803b75cae7f538565da8661c8 (diff)
Add support for multiple database schema files
Files are executed in alphabetic order.
Diffstat (limited to 'tester.in')
-rwxr-xr-xtester.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/tester.in b/tester.in
index c55c59a..84b77ad 100755
--- a/tester.in
+++ b/tester.in
@@ -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"