From df08f0309a1fa861ddfdcab049f7fa6d47497ce6 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 27 Mar 2013 17:23:45 -0700 Subject: 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 Tested-by: Russ Allbery --- perl/t/wa-keyring.t | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'perl') 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'); -- cgit v1.2.3