From fb06cf6028090d371a6ecdddba59ed2bed0ad465 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 12 Feb 2008 01:31:05 +0000 Subject: Initial pass at an end-to-end test suite. --- tests/data/basic.conf | 4 ++++ tests/data/cmd-wrapper.in | 9 +++++++++ tests/data/full.conf.in | 4 ++++ tests/data/wallet.conf | 4 ---- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 tests/data/basic.conf create mode 100644 tests/data/cmd-wrapper.in create mode 100644 tests/data/full.conf.in delete mode 100644 tests/data/wallet.conf (limited to 'tests/data') diff --git a/tests/data/basic.conf b/tests/data/basic.conf new file mode 100644 index 0000000..7ad998f --- /dev/null +++ b/tests/data/basic.conf @@ -0,0 +1,4 @@ +# remctl configuration for wallet client tests. +# $Id$ + +fake-wallet ALL data/cmd-fake ANYUSER 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 diff --git a/tests/data/wallet.conf b/tests/data/wallet.conf deleted file mode 100644 index 7ad998f..0000000 --- a/tests/data/wallet.conf +++ /dev/null @@ -1,4 +0,0 @@ -# remctl configuration for wallet client tests. -# $Id$ - -fake-wallet ALL data/cmd-fake ANYUSER -- cgit v1.2.3