diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-12-17 15:24:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-12-17 15:24:31 +0200 |
commit | 475a01f652eccea04fb8992f0c2ccb027970539d (patch) | |
tree | 22c1011a8c4172d7e72680ddfd1a9249fe1fe663 /tester.in | |
parent | 32f09571e564c42c04acdba2cf139a507aa4b0da (diff) |
Add support for database-specific output in tests
Use that for the bulk test.
Diffstat (limited to 'tester.in')
-rwxr-xr-x | tester.in | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |