summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2013-03-27 17:23:45 -0700
committerRuss Allbery <rra@stanford.edu>2013-03-27 17:28:10 -0700
commitdf08f0309a1fa861ddfdcab049f7fa6d47497ce6 (patch)
tree9ad3a0dc96904012df0c036a887bab49271ac79f /perl
parent0a6b556943dbe970e0cf764b030718f3a1361816 (diff)
Skip the wa-keyring tests if WebAuth is too old
If the WebAuth module is too old, don't just fail the tests. Skip them instead. This will let the Debian package build in unstable. Change-Id: I84c97f23ff7fbf89f2fd797898ebb4ab5e58eee6 Reviewed-on: https://gerrit.stanford.edu/987 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
Diffstat (limited to 'perl')
-rwxr-xr-xperl/t/wa-keyring.t11
1 files changed, 9 insertions, 2 deletions
diff --git a/perl/t/wa-keyring.t b/perl/t/wa-keyring.t
index 3011d54..7ba5723 100755
--- a/perl/t/wa-keyring.t
+++ b/perl/t/wa-keyring.t
@@ -11,13 +11,20 @@
use strict;
use warnings;
+use Test::More;
+
+BEGIN {
+ eval 'use WebAuth 3.06 qw(WA_KEY_AES WA_AES_128)';
+ plan skip_all => 'WebAuth 3.06 required for testing wa-keyring'
+ if $@;
+}
+
use POSIX qw(strftime);
-use Test::More tests => 68;
-use WebAuth 3.06 qw(WA_KEY_AES WA_AES_128);
use WebAuth::Key 1.01 ();
use WebAuth::Keyring 1.02 ();
BEGIN {
+ plan tests => 68;
use_ok('Wallet::Admin');
use_ok('Wallet::Config');
use_ok('Wallet::Object::WAKeyring');