summaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/README33
-rwxr-xr-xtests/data/cmd-fake4
-rwxr-xr-xtests/data/fake-kadmin3
-rw-r--r--tests/data/perl.conf6
-rw-r--r--tests/data/wallet.conf3
5 files changed, 14 insertions, 35 deletions
diff --git a/tests/data/README b/tests/data/README
deleted file mode 100644
index f5ebf07..0000000
--- a/tests/data/README
+++ /dev/null
@@ -1,33 +0,0 @@
-This directory contains data used by wallet's test suite. To enable tests
-that require GSS-API authentication and a working end-to-end Kerberos
-environment, create the K5 keytab that will be used for both the server
-and the client and put it in this directory as test.keytab. Then, create
-a file named test.principal and in it put the principal name corresponding
-to the key in the keytab on a single line ending with a newline.
-
-The presence of these two files will enable the tests that actually do
-GSS-API authentication.
-
-If your krb5.conf file is not in /etc or /usr/local/etc, put a copy of
-your krb5.conf file in this directory. The tests need to generate a
-modified copy in order to test some behavior.
-
-To enable tests of password prompting, create a file named test.password
-that contains two lines. The first line should be a test principal and
-the second line should be the password for that principal. The newline is
-not taken to be part of the password.
-
-To enable tests of kasetkey (assuming that you've configured wallet with
---with-afs), create a K4 srvtab with ADMIN access to an AFS kaserver and
-put it in test.srvtab. Then, put the fully-qualified K4 principal name
-corresponding to that keytab in test.admin. The realm used for AFS
-kaserver testing will be derived from the realm of that principal name.
-
-If you are building in a different directory tree than the source tree,
-don't put the files in this directory. Instead, after running configure,
-you will have an empty tests/data directory in your build tree. Put the
-test.keytab, test.principal, and krb5.conf (if necessary) files in that
-directory instead.
-
-Note that to successfully run much of the test suite, you will need to have
-remctld installed on the system running the tests.
diff --git a/tests/data/cmd-fake b/tests/data/cmd-fake
index add72fc..11791a6 100755
--- a/tests/data/cmd-fake
+++ b/tests/data/cmd-fake
@@ -4,7 +4,9 @@
# the client test suite. It doesn't test any of the wallet server code.
#
# Written by Russ Allbery <rra@stanford.edu>
-# Copyright 2007, 2008, 2010 Board of Trustees, Leland Stanford Jr. University
+# Copyright 2007, 2008, 2010
+# The Board of Trustees of the Leland Stanford Junior University
+#
# See LICENSE for licensing terms.
command="$1"
diff --git a/tests/data/fake-kadmin b/tests/data/fake-kadmin
index 4c0ceac..c073ea5 100755
--- a/tests/data/fake-kadmin
+++ b/tests/data/fake-kadmin
@@ -3,7 +3,8 @@
# Fake kadmin.local used to test the keytab backend.
#
# Written by Russ Allbery <rra@stanford.edu>
-# Copyright 2007 Board of Trustees, Leland Stanford Jr. University
+# Copyright 2007
+# The Board of Trustees of the Leland Stanford Junior University
#
# See LICENSE for licensing terms.
diff --git a/tests/data/perl.conf b/tests/data/perl.conf
new file mode 100644
index 0000000..eaf7443
--- /dev/null
+++ b/tests/data/perl.conf
@@ -0,0 +1,6 @@
+# Configuration for Perl tests. -*- perl -*-
+
+# No special configuration yet.
+
+# File must end with this line.
+1;
diff --git a/tests/data/wallet.conf b/tests/data/wallet.conf
index 877a16f..19c3aeb 100644
--- a/tests/data/wallet.conf
+++ b/tests/data/wallet.conf
@@ -4,6 +4,9 @@
$DB_DRIVER = 'SQLite';
$DB_INFO = 'wallet-db';
+# Point to the schema directory in the distribution.
+$DB_DDL_DIRECTORY = "$ENV{SOURCE}/sql";
+
# Set up a file bucket.
$FILE_BUCKET = 'test-files';