X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=current%2Ft%2F01_autodetect.t;h=3ecc0cf0e6bc2c28c350fa73d4b19eff05dd4acd;hb=982e2bb08f00d800e2cd9fb65b108231719c8a65;hp=e1f0dc851867db7250b17f0765a554dc2b702fba;hpb=7444dbb3f0999e61ca02028e688a97577040eafb;p=deb_pkgs%2Flibhtml-calendarmonth-perl.git diff --git a/current/t/01_autodetect.t b/current/t/01_autodetect.t index e1f0dc8..3ecc0cf 100755 --- a/current/t/01_autodetect.t +++ b/current/t/01_autodetect.t @@ -1,15 +1,24 @@ #!/usr/bin/perl use strict; - -my($test_count, $method); -BEGIN { $test_count = 15 ; $method = '' } - -use Test::More tests => $test_count; - use FindBin; use lib $FindBin::RealBin; use testload; -check_basic_with_datetool($method); +use HTML::CalendarMonth::DateTool; + +my($test_count, $detected); +BEGIN { + $test_count = bulk_count() + 1; + eval { $detected = HTML::CalendarMonth::DateTool->new }; +} + +use Test::More tests => $test_count; + +ok($detected, 'auto-detected a datetool'); + +SKIP: { + skip("no datetools installed", $test_count - 1) unless $detected; + check_bulk_with_datetool(); +}