From: Kevin Scaldeferri Date: Sat, 29 Jul 2006 01:04:17 +0000 (+0000) Subject: rejiggered things to deal with changing timestamps X-Git-Tag: debian/2.1.2-2~115 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=0be7dc4cd381264751503b3294fb78ba43eb7284;p=pkg%2Fblosxom.git rejiggered things to deal with changing timestamps --- diff --git a/t/driver.t b/t/driver.t index 7e12204..36ae5ef 100755 --- a/t/driver.t +++ b/t/driver.t @@ -7,6 +7,7 @@ use Test::More qw( no_plan ); use File::Copy; use File::Compare; +use File::Find; use Cwd; use YAML; @@ -38,6 +39,8 @@ for my $testdir (@tests) { system("perl -pi -e 's{/Library/WebServer/Documents/blosxom}{$cwd/data}' blosxom.cgi") == 0 or die "$!"; + touch_files (); + for (@{$spec->{tests}}) { my ($args, $output) = @$_; @@ -59,3 +62,14 @@ for my $testdir (@tests) { chdir $orig_cwd; } + + +sub touch_files { + find( sub { + if (/^(.*)\.(\d+)$/) { + copy($_, $1); + `touch -t $2 $1`; + } + }, + "./data"); +} diff --git a/t/t-permalinks/data/foo/bar.txt b/t/t-permalinks/data/foo/bar.txt deleted file mode 100644 index 1e06cbd..0000000 --- a/t/t-permalinks/data/foo/bar.txt +++ /dev/null @@ -1,4 +0,0 @@ -Lorem ipsum -Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso -facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit -amet ipso facto.Lorem ipsum dolor sit amet ipso facto. diff --git a/t/t-permalinks/data/foo/bar.txt.200607251102 b/t/t-permalinks/data/foo/bar.txt.200607251102 new file mode 100644 index 0000000..1e06cbd --- /dev/null +++ b/t/t-permalinks/data/foo/bar.txt.200607251102 @@ -0,0 +1,4 @@ +Lorem ipsum +Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso +facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit +amet ipso facto.Lorem ipsum dolor sit amet ipso facto. diff --git a/t/t-permalinks/data/foo/baz.txt b/t/t-permalinks/data/foo/baz.txt deleted file mode 100644 index f946d24..0000000 --- a/t/t-permalinks/data/foo/baz.txt +++ /dev/null @@ -1,8 +0,0 @@ -Lorem ipso -Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz -de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas -cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym -ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas -cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon -ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer -tyr wuz de ramas cora dola tym ipso hor. diff --git a/t/t-permalinks/data/foo/baz.txt.200607251103 b/t/t-permalinks/data/foo/baz.txt.200607251103 new file mode 100644 index 0000000..f946d24 --- /dev/null +++ b/t/t-permalinks/data/foo/baz.txt.200607251103 @@ -0,0 +1,8 @@ +Lorem ipso +Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz +de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas +cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym +ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas +cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon +ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer +tyr wuz de ramas cora dola tym ipso hor. diff --git a/t/t-smoketest/data/1.txt b/t/t-smoketest/data/1.txt deleted file mode 100644 index ea2a941..0000000 --- a/t/t-smoketest/data/1.txt +++ /dev/null @@ -1,16 +0,0 @@ -Lorem ipsum -Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso -facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit -amet ipso facto.Lorem ipsum dolor sit amet ipso facto. - -facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet -ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor -sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. - -Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz -de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas -cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym -ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas -cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon -ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer -tyr wuz de ramas cora dola tym ipso hor. diff --git a/t/t-smoketest/data/1.txt.200607192254 b/t/t-smoketest/data/1.txt.200607192254 new file mode 100644 index 0000000..ea2a941 --- /dev/null +++ b/t/t-smoketest/data/1.txt.200607192254 @@ -0,0 +1,16 @@ +Lorem ipsum +Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso +facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit +amet ipso facto.Lorem ipsum dolor sit amet ipso facto. + +facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet +ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor +sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. + +Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz +de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas +cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym +ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas +cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon +ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer +tyr wuz de ramas cora dola tym ipso hor. diff --git a/t/t-templates/data/1.txt b/t/t-templates/data/1.txt deleted file mode 100644 index ea2a941..0000000 --- a/t/t-templates/data/1.txt +++ /dev/null @@ -1,16 +0,0 @@ -Lorem ipsum -Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso -facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit -amet ipso facto.Lorem ipsum dolor sit amet ipso facto. - -facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet -ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor -sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. - -Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz -de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas -cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym -ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas -cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon -ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer -tyr wuz de ramas cora dola tym ipso hor. diff --git a/t/t-templates/data/1.txt.200607192254 b/t/t-templates/data/1.txt.200607192254 new file mode 100644 index 0000000..ea2a941 --- /dev/null +++ b/t/t-templates/data/1.txt.200607192254 @@ -0,0 +1,16 @@ +Lorem ipsum +Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso +facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit +amet ipso facto.Lorem ipsum dolor sit amet ipso facto. + +facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet +ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor +sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. + +Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz +de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas +cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym +ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas +cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon +ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer +tyr wuz de ramas cora dola tym ipso hor.