]> git.donarmstrong.com Git - deb_pkgs/libhtml-calendarmonth-perl.git/blobdiff - 1.25/t/01_autodetect.t
[svn-upgrade] Tagging libhtml-calendarmonth-perl (1.25)
[deb_pkgs/libhtml-calendarmonth-perl.git] / 1.25 / t / 01_autodetect.t
diff --git a/1.25/t/01_autodetect.t b/1.25/t/01_autodetect.t
new file mode 100755 (executable)
index 0000000..3ecc0cf
--- /dev/null
@@ -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();
+}