diff options
author | Russ Allbery <rra@stanford.edu> | 2007-12-01 00:42:46 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-12-01 00:42:46 +0000 |
commit | c9948c8f68b11a1e897afe9c9f2dd2fcb6934f8d (patch) | |
tree | f15323beb5ceac6a2b81df8634f5f9f23ad239c8 /perl/t/verifier.t | |
parent | 1e13c0c60c96dd1719e7c4c3931b4196c2b5bc61 (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/verifier.t')
-rwxr-xr-x | perl/t/verifier.t | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/perl/t/verifier.t b/perl/t/verifier.t index d401146..8027869 100755 --- a/perl/t/verifier.t +++ b/perl/t/verifier.t @@ -15,15 +15,8 @@ use Wallet::ACL::Krb5; use Wallet::ACL::NetDB; use Wallet::Config; -# Returns the one-line contents of a file as a string, removing the newline. -sub contents { - my ($file) = @_; - open (FILE, '<', $file) or die "cannot open $file: $!\n"; - my $data = <FILE>; - close FILE; - chomp $data; - return $data; -} +use lib 't/lib'; +use Util; # Given a keytab file, try authenticating with kinit. sub getcreds { |