From c9948c8f68b11a1e897afe9c9f2dd2fcb6934f8d Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sat, 1 Dec 2007 00:42:46 +0000 Subject: 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. --- perl/t/data/README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'perl/t/data') 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=;host=;port= + +replacing , , and 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 -- cgit v1.2.3