X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Flibhtml-calendarmonth-perl.git;a=blobdiff_plain;f=t%2F01_autodetect.t;fp=t%2F01_autodetect.t;h=3ecc0cf0e6bc2c28c350fa73d4b19eff05dd4acd;hp=b8bfd99dc62110ba0674cb3f007156f6d0ebfb9f;hb=f3ef12e10123e46a0db95d820bb77f6e6d3225c7;hpb=febd0b02136ed777f42c0e2b79d71db21c1805a8 diff --git a/t/01_autodetect.t b/t/01_autodetect.t index b8bfd99..3ecc0cf 100755 --- a/t/01_autodetect.t +++ b/t/01_autodetect.t @@ -6,9 +6,19 @@ use lib $FindBin::RealBin; use testload; -my($test_count, $method); -BEGIN { $test_count = case_count() ; $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; -check_basic_with_datetool($method); +ok($detected, 'auto-detected a datetool'); + +SKIP: { + skip("no datetools installed", $test_count - 1) unless $detected; + check_bulk_with_datetool(); +}