summaryrefslogtreecommitdiff
path: root/tests/data/cmd-wrapper
diff options
context:
space:
mode:
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 "$@"