aboutsummaryrefslogtreecommitdiff
path: root/perl/t/data/README
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-12-01 00:42:46 +0000
committerRuss Allbery <rra@stanford.edu>2007-12-01 00:42:46 +0000
commitc9948c8f68b11a1e897afe9c9f2dd2fcb6934f8d (patch)
treef15323beb5ceac6a2b81df8634f5f9f23ad239c8 /perl/t/data/README
parent1e13c0c60c96dd1719e7c4c3931b4196c2b5bc61 (diff)
The wallet backend test suite now supports using a database other than
SQLite for testing. Also start a new Util.pm module for the test suite and move the contents sub into that module. More to follow.
Diffstat (limited to 'perl/t/data/README')
-rw-r--r--perl/t/data/README14
1 files changed, 14 insertions, 0 deletions
diff --git a/perl/t/data/README b/perl/t/data/README
index 8b68db9..bd57aad 100644
--- a/perl/t/data/README
+++ b/perl/t/data/README
@@ -1,5 +1,19 @@
This directory contains additional data files needed to run some tests.
+By default, all the tests are done using a SQLite database. To test
+against another database, create a file named test.database. The first
+line of the file should contain the database driver name (mysql, for
+example, for DBD::mysql). The second line should contain the DBI connect
+string, normally of the form:
+
+ database=<name>;host=<host>;port=<port>
+
+replacing <name>, <host>, and <port> with the parameters for your
+database. The third line should be the username to use, and the fourth
+and last line should be the password. If this file is present, all tests
+except part of the schema test will be run against this database instead
+of a local SQLite database.
+
In order to run the keytab tests, you will need to grant the test
processes access to create, download, and remove principals in a test KDC.
This should not be pointed at a production KDC! Then, create the