aboutsummaryrefslogtreecommitdiff
path: root/tests/data/cmd-wrapper
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-09 21:01:33 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-09 21:01:33 -0800
commita556c732806da87d06bb787565e12240ea39b553 (patch)
tree960b3a5e8fc32b4cb5399d56d20a3db077ef86b8 /tests/data/cmd-wrapper
parentff2d5ac3c63af9833d884d4840c772e60e45da7d (diff)
Stop doing Autoconf substitution on some test suite code
Anything that only was using substitution for the paths to the build tree now uses $SOURCE and $BUILD instead. Stop doing substitution. Also fix tests/data/cmd-wrapper to use the environment variables.
Diffstat (limited to 'tests/data/cmd-wrapper')
-rwxr-xr-xtests/data/cmd-wrapper8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/data/cmd-wrapper b/tests/data/cmd-wrapper
new file mode 100755
index 0000000..79b1943
--- /dev/null
+++ b/tests/data/cmd-wrapper
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# Wrapper around the standard wallet-backend script that sets the Perl INC
+# path and the WALLET_CONFIG environment variable appropriately.
+
+WALLET_CONFIG="$SOURCE/data/wallet.conf"
+export WALLET_CONFIG
+exec perl -I"$SOURCE/../perl" "$SOURCE/../server/wallet-backend" -q "$@"