aboutsummaryrefslogtreecommitdiff
path: root/tester.in
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-06-03 15:02:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-06-03 15:02:51 +0200
commite6b93ff477d7c789b786b059dcab1f66e5aae013 (patch)
tree06abb2e92d7e6f99c957ba0f0641afc36a1712d9 /tester.in
parentd83890c0c2c95da9e190a8f9a7ddc29cd621bef7 (diff)
Use database name in options and driver files (autotools part)
Diffstat (limited to 'tester.in')
-rwxr-xr-xtester.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/tester.in b/tester.in
index c9873d4..e2d5297 100755
--- a/tester.in
+++ b/tester.in
@@ -9,11 +9,14 @@
# data files, if any, are in $srcdir.
#
+db_driver="$top_builddir/@database@-driver"
+db_options="$top_builddir/@database@.options"
+
# Globbing returns files in alphabetic order.
#
for f in `echo test*.sql`; do
if test -f $f; then
- $top_builddir/db-driver $f
+ $db_driver $f
if test $? -ne 0; then
exit 1
@@ -21,10 +24,10 @@ for f in `echo test*.sql`; do
fi
done
-echo ./driver --options-file "$top_builddir/db.options"
+echo ./driver --options-file "$db_options"
if test -f "$srcdir/test.std"; then
- ./driver --options-file "$top_builddir/db.options" >test.out
+ ./driver --options-file "$db_options" >test.out
if test $? -ne 0; then
exit 1
@@ -35,5 +38,5 @@ if test -f "$srcdir/test.std"; then
rm -f test.out
exit $r
else
- ./driver --options-file "$top_builddir/db.options"
+ ./driver --options-file "$db_options"
fi