aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/fcp-01.t6
-rw-r--r--t/test-site-output/bar/baz/document.en.html4
-rw-r--r--t/test-site-output/bar/baz/document.it.html4
-rw-r--r--t/test-site-output/bar/document.en.html4
-rw-r--r--t/test-site-output/bar/document.it.html4
-rw-r--r--t/test-site-output/document.en.html4
-rw-r--r--t/test-site-output/document.it.html4
-rw-r--r--t/test-site-output/foo/document.en.html4
-rw-r--r--t/test-site-output/foo/document.it.html4
-rw-r--r--t/test-site-output/tags/one/document.en.html4
-rw-r--r--t/test-site-output/tags/one/document.it.html4
-rw-r--r--t/test-site-output/tags/three/bis/document.en.html4
-rw-r--r--t/test-site-output/tags/three/bis/document.it.html4
-rw-r--r--t/test-site-output/tags/three/document.en.html4
-rw-r--r--t/test-site-output/tags/three/document.it.html4
-rw-r--r--t/test-site-output/tags/two/document.en.html4
-rw-r--r--t/test-site-output/tags/two/document.it.html4
-rw-r--r--t/test-site/src/common/du2html.xsl8
-rw-r--r--t/test-site/src/document.en.rest.txt2
-rw-r--r--t/whole-01.t2
20 files changed, 65 insertions, 17 deletions
diff --git a/t/fcp-01.t b/t/fcp-01.t
index 7626cd4..2df0d8c 100644
--- a/t/fcp-01.t
+++ b/t/fcp-01.t
@@ -114,3 +114,9 @@ is($fc->get($wr_file->stringify),
}
is($fc->get('nosuchfile'),undef,'return undef on non-existant files');
+
+{
+ my $module_file=$base->file('lib','File','Cache','Parsed.pm');
+ is($fc->stat($module_file)->size,
+ $module_file->stat->size,'ok stat');
+}
diff --git a/t/test-site-output/bar/baz/document.en.html b/t/test-site-output/bar/baz/document.en.html
index 8399519..530f7bd 100644
--- a/t/test-site-output/bar/baz/document.en.html
+++ b/t/test-site-output/bar/baz/document.en.html
@@ -18,4 +18,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/bar/baz/document.it.html b/t/test-site-output/bar/baz/document.it.html
index 2fb1fd5..e258865 100644
--- a/t/test-site-output/bar/baz/document.it.html
+++ b/t/test-site-output/bar/baz/document.it.html
@@ -16,4 +16,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/bar/document.en.html b/t/test-site-output/bar/document.en.html
index 51ff094..ea706dd 100644
--- a/t/test-site-output/bar/document.en.html
+++ b/t/test-site-output/bar/document.en.html
@@ -21,4 +21,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/bar/document.it.html b/t/test-site-output/bar/document.it.html
index 9adfb7f..5ad0574 100644
--- a/t/test-site-output/bar/document.it.html
+++ b/t/test-site-output/bar/document.it.html
@@ -19,4 +19,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/document.en.html b/t/test-site-output/document.en.html
index bd4b6c3..1692418 100644
--- a/t/test-site-output/document.en.html
+++ b/t/test-site-output/document.en.html
@@ -18,4 +18,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 2008-03-01 10:04:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/document.it.html b/t/test-site-output/document.it.html
index 44dd21c..386f70a 100644
--- a/t/test-site-output/document.it.html
+++ b/t/test-site-output/document.it.html
@@ -15,4 +15,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/foo/document.en.html b/t/test-site-output/foo/document.en.html
index 2fdd465..7d11fc7 100644
--- a/t/test-site-output/foo/document.en.html
+++ b/t/test-site-output/foo/document.en.html
@@ -18,4 +18,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/foo/document.it.html b/t/test-site-output/foo/document.it.html
index 3f59dd8..12f2016 100644
--- a/t/test-site-output/foo/document.it.html
+++ b/t/test-site-output/foo/document.it.html
@@ -14,4 +14,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/one/document.en.html b/t/test-site-output/tags/one/document.en.html
index 582622b..12fcba4 100644
--- a/t/test-site-output/tags/one/document.en.html
+++ b/t/test-site-output/tags/one/document.en.html
@@ -19,4 +19,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/one/document.it.html b/t/test-site-output/tags/one/document.it.html
index aafbee7..85655e8 100644
--- a/t/test-site-output/tags/one/document.it.html
+++ b/t/test-site-output/tags/one/document.it.html
@@ -16,4 +16,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/three/bis/document.en.html b/t/test-site-output/tags/three/bis/document.en.html
index f352c7d..cc93ccb 100644
--- a/t/test-site-output/tags/three/bis/document.en.html
+++ b/t/test-site-output/tags/three/bis/document.en.html
@@ -18,4 +18,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/three/bis/document.it.html b/t/test-site-output/tags/three/bis/document.it.html
index bbd498f..0e6d159 100644
--- a/t/test-site-output/tags/three/bis/document.it.html
+++ b/t/test-site-output/tags/three/bis/document.it.html
@@ -16,4 +16,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/three/document.en.html b/t/test-site-output/tags/three/document.en.html
index 2bc5bbe..97f482b 100644
--- a/t/test-site-output/tags/three/document.en.html
+++ b/t/test-site-output/tags/three/document.en.html
@@ -17,4 +17,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/three/document.it.html b/t/test-site-output/tags/three/document.it.html
index a422f3b..4c225a0 100644
--- a/t/test-site-output/tags/three/document.it.html
+++ b/t/test-site-output/tags/three/document.it.html
@@ -15,4 +15,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/two/document.en.html b/t/test-site-output/tags/two/document.en.html
index 4bca5cb..6439ab1 100644
--- a/t/test-site-output/tags/two/document.en.html
+++ b/t/test-site-output/tags/two/document.en.html
@@ -18,4 +18,6 @@
</dt><dd><ul><li><a href="/foo/">foo page
</a>
(<a href="/foo/it">it</a> | en)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site-output/tags/two/document.it.html b/t/test-site-output/tags/two/document.it.html
index eae0997..9b57700 100644
--- a/t/test-site-output/tags/two/document.it.html
+++ b/t/test-site-output/tags/two/document.it.html
@@ -15,4 +15,6 @@
</li></ul></dd><dt>Categoria 'two'
</dt><dd><ul><li><a href="/foo/">Pagina <em>foo</em></a>
(it | <a href="/foo/en">en</a>)
- </li></ul></dd></dl></div></body></html>
+ </li></ul></dd></dl></div><div>
+ Creato: 1970-01-01 00:00:00
+ Ultima modifica: 2008-03-01 09:23:11</div></body></html>
diff --git a/t/test-site/src/common/du2html.xsl b/t/test-site/src/common/du2html.xsl
index 291fbbf..88c70b0 100644
--- a/t/test-site/src/common/du2html.xsl
+++ b/t/test-site/src/common/du2html.xsl
@@ -52,10 +52,18 @@
<div>
<x:apply-templates select="wc:tagged()"/>
</div>
+ <div>
+ <x:apply-templates select="wc:dates-for($language,$filename,'./')"/>
+ </div>
</body>
</html>
</x:template>
+ <x:template match="/wc:dates">
+ Creato: <x:value-of select="wc:creation-date"/>
+ Ultima modifica: <x:value-of select="wc:last-change"/>
+ </x:template>
+
<x:template match="/wc:tags">
<dl>
<x:apply-templates/>
diff --git a/t/test-site/src/document.en.rest.txt b/t/test-site/src/document.en.rest.txt
index b7449d0..d5862b4 100644
--- a/t/test-site/src/document.en.rest.txt
+++ b/t/test-site/src/document.en.rest.txt
@@ -1,6 +1,8 @@
===========
Main page
===========
+:CreationDate: 2008-03-01 10:04:00
+
* `<foo/>`_
* `bar! <bar/>`_
diff --git a/t/whole-01.t b/t/whole-01.t
index 054d2ee..639ecc0 100644
--- a/t/whole-01.t
+++ b/t/whole-01.t
@@ -14,7 +14,7 @@ system($^X,qw(blib/script/webcoso.pl -s t/test-site/src/ -d t/test-site/output/
system($^X,qw(blib/script/webcoso.pl -s t/test-site/src/ -d t/test-site/output/ -I t/test-site/common/))
and die "Problems running webcoso.pl: $?\n";
-is(system(qw(diff -r -x .svn t/test-site/output/ t/test-site-output/)),0,'output as expected');
+is(system(qw(diff -r -x .svn -I),'\(Ultima modifica\|Latest change\)',qw(t/test-site/output/ t/test-site-output/)),0,'output as expected');
system($^X,qw(blib/script/webcoso.pl -s t/test-site/src/ -d t/test-site/output/ -I t/test-site/common/ --clean))
and die "Problems running webcoso.pl (clean): $?\n";