X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=1.25%2Ft%2F01_autodetect.t;fp=1.25%2Ft%2F01_autodetect.t;h=3ecc0cf0e6bc2c28c350fa73d4b19eff05dd4acd;hb=1a48ee7ffa0db08c3c5af68b365ee274acbd485d;hp=0000000000000000000000000000000000000000;hpb=2a7fc55a2e563096c7348a2f6272a16830561513;p=deb_pkgs%2Flibhtml-calendarmonth-perl.git diff --git a/1.25/t/01_autodetect.t b/1.25/t/01_autodetect.t new file mode 100755 index 0000000..3ecc0cf --- /dev/null +++ b/1.25/t/01_autodetect.t @@ -0,0 +1,24 @@ +#!/usr/bin/perl + +use strict; +use FindBin; +use lib $FindBin::RealBin; + +use testload; + +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(); +}