aboutsummaryrefslogtreecommitdiff
path: root/tester.in
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-12-17 15:24:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-12-17 15:24:31 +0200
commit475a01f652eccea04fb8992f0c2ccb027970539d (patch)
tree22c1011a8c4172d7e72680ddfd1a9249fe1fe663 /tester.in
parent32f09571e564c42c04acdba2cf139a507aa4b0da (diff)
Add support for database-specific output in tests
Use that for the bulk test.
Diffstat (limited to 'tester.in')
-rwxr-xr-xtester.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/tester.in b/tester.in
index f9beb02..b653019 100755
--- a/tester.in
+++ b/tester.in
@@ -26,7 +26,16 @@ done
echo ./driver --options-file "$db_options"
-if test -f "$srcdir/test.std"; then
+std=
+if test -f "$srcdir/test-@database@.std"; then
+ std="$srcdir/test-@database@.std"
+elif test -f "$srcdir/test.std"; then
+ std="$srcdir/test.std"
+else
+ std=
+fi
+
+if test -n "$std"; then
./driver --options-file "$db_options" >test.out
if test $? -ne 0; then
@@ -34,7 +43,7 @@ if test -f "$srcdir/test.std"; then
exit 1
fi
- @DIFF@ @DIFFFLAGS@ "$srcdir/test.std" test.out
+ @DIFF@ @DIFFFLAGS@ "$std" test.out
r=$?
rm -f test.out
exit $r