From 7242777ec60344948fb44d9f31d4d3e24868e47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Thu, 7 Jun 2012 08:58:28 +0000 Subject: [PATCH] Test Digest::HMAC_SHA1 in Zimbra test (#470) --- .../t/51-Lemonldap-NG-Handler-Zimbra.t | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-handler/t/51-Lemonldap-NG-Handler-Zimbra.t b/lemonldap-ng-handler/t/51-Lemonldap-NG-Handler-Zimbra.t index e4167e70c..e1fa38096 100644 --- a/lemonldap-ng-handler/t/51-Lemonldap-NG-Handler-Zimbra.t +++ b/lemonldap-ng-handler/t/51-Lemonldap-NG-Handler-Zimbra.t @@ -11,5 +11,11 @@ use Test::More tests => 1; # Insert your test code below, the Test::More module is use()ed here so read # its man page ( perldoc Test::More ) for help writing this test script. - -use_ok('Lemonldap::NG::Handler::ZimbraPreAuth'); +SKIP: { + eval { require Digest::HMAC_SHA1 }; + skip +"Digest::HMAC_SHA1 is not installed, so Lemonldap::NG::Handler::ZimbraPreAuth will not be useable", + 1 + if ($@); + use_ok('Lemonldap::NG::Handler::ZimbraPreAuth'); +}