aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-02-12 01:31:05 +0000
committerRuss Allbery <rra@stanford.edu>2008-02-12 01:31:05 +0000
commitfb06cf6028090d371a6ecdddba59ed2bed0ad465 (patch)
tree2f9a67a30b8fbe7954ffd54be1f8992a736625f8 /tests/data
parent247366355b63b3f6804d591dde9d5b48895a8fdf (diff)
Initial pass at an end-to-end test suite.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/basic.conf (renamed from tests/data/wallet.conf)0
-rw-r--r--tests/data/cmd-wrapper.in9
-rw-r--r--tests/data/full.conf.in4
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/data/wallet.conf b/tests/data/basic.conf
index 7ad998f..7ad998f 100644
--- a/tests/data/wallet.conf
+++ b/tests/data/basic.conf
diff --git a/tests/data/cmd-wrapper.in b/tests/data/cmd-wrapper.in
new file mode 100644
index 0000000..d50816c
--- /dev/null
+++ b/tests/data/cmd-wrapper.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+# $Id$
+#
+# Wrapper around the standard wallet-backend script that sets the Perl INC
+# path and the WALLET_CONFIG environment variable appropriately.
+
+WALLET_CONFIG='@abs_top_srcdir@/tests/data/wallet.conf'
+export WALLET_CONFIG
+exec perl -I'@abs_top_srcdir@/perl' '@abs_top_srcdir@/server/wallet-backend'
diff --git a/tests/data/full.conf.in b/tests/data/full.conf.in
new file mode 100644
index 0000000..b97a4bc
--- /dev/null
+++ b/tests/data/full.conf.in
@@ -0,0 +1,4 @@
+# remctl configuration for full wallet client tests.
+# $Id$
+
+wallet ALL @abs_top_builddir@/tests/data/cmd-wrapper ANYUSER