From: Gavin Carr Date: Tue, 4 Dec 2007 10:37:06 +0000 (+0000) Subject: Update rss20 test cases. X-Git-Tag: debian/2.1.2-2~59 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=765d8cab49bf423fc8e1418cac9ecbb8e72f44cc;p=pkg%2Fblosxom.git Update rss20 test cases. --- diff --git a/t/static_basic/config/blosxom.conf b/t/static_basic/config/blosxom.conf index 7d8ef26..18ddf7a 100644 --- a/t/static_basic/config/blosxom.conf +++ b/t/static_basic/config/blosxom.conf @@ -1,4 +1,6 @@ $datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; +$plugin_list = "$ENV{BLOSXOM_CONFIG_DIR}/plugins.conf"; +$plugin_path = "$ENV{BLOSXOM_CONFIG_DIR}/../../../general:$ENV{BLOSXOM_CONFIG_DIR}/../../../gavinc"; $static_dir = "$ENV{BLOSXOM_CONFIG_DIR}/../static"; $static_password = 'static'; @static_flavours = qw/html rss/; diff --git a/t/static_basic/config/plugins.conf b/t/static_basic/config/plugins.conf new file mode 100644 index 0000000..d3be1b1 --- /dev/null +++ b/t/static_basic/config/plugins.conf @@ -0,0 +1,2 @@ +storydate +rss20 diff --git a/t/static_basic/expected/2006/07/19/index.rss b/t/static_basic/expected/2006/07/19/index.rss index 9d5130f..74a5771 100644 --- a/t/static_basic/expected/2006/07/19/index.rss +++ b/t/static_basic/expected/2006/07/19/index.rss @@ -1,20 +1,30 @@ - - - My Weblog - http://localhost/ - Yet another Blosxom weblog. - en - http://blogs.law.harvard.edu/tech/rss - blosxom/2.0.2 + - - Lorem ipsum - Wed, 19 Jul 2006 22:54:00 +0000 - http://localhost/2006/07/19#1 - - /1 - Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso + + My Weblog + http://localhost/ + Yet another Blosxom weblog. + author@example.com (A. U. Thor) + author@example.com (A. U. Thor) + Wed, 19 Jul 2006 22:54:00 +0000 + en + blosxom 2.0.2 + + hourly + 1 + 2000-01-01T12:00+00:00 + + + + Lorem ipsum + http://localhost/1.html + http://localhost/1.html + Wed, 19 Jul 2006 22:54:00 +0000 + 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. @@ -28,7 +38,9 @@ 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. - - +tyr wuz de ramas cora dola tym ipso hor. + + + + diff --git a/t/static_basic/expected/2006/07/index.rss b/t/static_basic/expected/2006/07/index.rss index 9d5130f..74a5771 100644 --- a/t/static_basic/expected/2006/07/index.rss +++ b/t/static_basic/expected/2006/07/index.rss @@ -1,20 +1,30 @@ - - - My Weblog - http://localhost/ - Yet another Blosxom weblog. - en - http://blogs.law.harvard.edu/tech/rss - blosxom/2.0.2 + - - Lorem ipsum - Wed, 19 Jul 2006 22:54:00 +0000 - http://localhost/2006/07/19#1 - - /1 - Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso + + My Weblog + http://localhost/ + Yet another Blosxom weblog. + author@example.com (A. U. Thor) + author@example.com (A. U. Thor) + Wed, 19 Jul 2006 22:54:00 +0000 + en + blosxom 2.0.2 + + hourly + 1 + 2000-01-01T12:00+00:00 + + + + Lorem ipsum + http://localhost/1.html + http://localhost/1.html + Wed, 19 Jul 2006 22:54:00 +0000 + 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. @@ -28,7 +38,9 @@ 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. - - +tyr wuz de ramas cora dola tym ipso hor. + + + + diff --git a/t/static_basic/expected/2006/index.rss b/t/static_basic/expected/2006/index.rss index 9d5130f..74a5771 100644 --- a/t/static_basic/expected/2006/index.rss +++ b/t/static_basic/expected/2006/index.rss @@ -1,20 +1,30 @@ - - - My Weblog - http://localhost/ - Yet another Blosxom weblog. - en - http://blogs.law.harvard.edu/tech/rss - blosxom/2.0.2 + - - Lorem ipsum - Wed, 19 Jul 2006 22:54:00 +0000 - http://localhost/2006/07/19#1 - - /1 - Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso + + My Weblog + http://localhost/ + Yet another Blosxom weblog. + author@example.com (A. U. Thor) + author@example.com (A. U. Thor) + Wed, 19 Jul 2006 22:54:00 +0000 + en + blosxom 2.0.2 + + hourly + 1 + 2000-01-01T12:00+00:00 + + + + Lorem ipsum + http://localhost/1.html + http://localhost/1.html + Wed, 19 Jul 2006 22:54:00 +0000 + 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. @@ -28,7 +38,9 @@ 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. - - +tyr wuz de ramas cora dola tym ipso hor. + + + + diff --git a/t/static_basic/expected/index.rss b/t/static_basic/expected/index.rss index 9d5130f..74a5771 100644 --- a/t/static_basic/expected/index.rss +++ b/t/static_basic/expected/index.rss @@ -1,20 +1,30 @@ - - - My Weblog - http://localhost/ - Yet another Blosxom weblog. - en - http://blogs.law.harvard.edu/tech/rss - blosxom/2.0.2 + - - Lorem ipsum - Wed, 19 Jul 2006 22:54:00 +0000 - http://localhost/2006/07/19#1 - - /1 - Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso + + My Weblog + http://localhost/ + Yet another Blosxom weblog. + author@example.com (A. U. Thor) + author@example.com (A. U. Thor) + Wed, 19 Jul 2006 22:54:00 +0000 + en + blosxom 2.0.2 + + hourly + 1 + 2000-01-01T12:00+00:00 + + + + Lorem ipsum + http://localhost/1.html + http://localhost/1.html + Wed, 19 Jul 2006 22:54:00 +0000 + 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. @@ -28,7 +38,9 @@ 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. - - +tyr wuz de ramas cora dola tym ipso hor. + + + + diff --git a/t/templates/config/blosxom.conf b/t/templates/config/blosxom.conf index ae83e48..27d4b12 100644 --- a/t/templates/config/blosxom.conf +++ b/t/templates/config/blosxom.conf @@ -1 +1,3 @@ $datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; +$plugin_list = "$ENV{BLOSXOM_CONFIG_DIR}/plugins.conf"; +$plugin_path = "$ENV{BLOSXOM_CONFIG_DIR}/../../../general:$ENV{BLOSXOM_CONFIG_DIR}/../../../gavinc"; diff --git a/t/templates/config/plugins.conf b/t/templates/config/plugins.conf new file mode 100644 index 0000000..d3be1b1 --- /dev/null +++ b/t/templates/config/plugins.conf @@ -0,0 +1,2 @@ +storydate +rss20 diff --git a/t/templates/data/web/2.txt b/t/templates/data/web/2.txt new file mode 100644 index 0000000..9d04c49 --- /dev/null +++ b/t/templates/data/web/2.txt @@ -0,0 +1,10 @@ +Lorem ipsum II + +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. + diff --git a/t/templates/data/web/2.txt.200711111111 b/t/templates/data/web/2.txt.200711111111 new file mode 100644 index 0000000..9d04c49 --- /dev/null +++ b/t/templates/data/web/2.txt.200711111111 @@ -0,0 +1,10 @@ +Lorem ipsum II + +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. + diff --git a/t/templates/expected/index.html b/t/templates/expected/index.html new file mode 100644 index 0000000..b0714d8 --- /dev/null +++ b/t/templates/expected/index.html @@ -0,0 +1,46 @@ +Content-Type: text/xhtml; charset=UTF-8 + + + + + + My Weblog + + + +

My Weblog

+

+

2007-11-11

+

Lorem ipsum II

+
+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. +
+

posted at: 11:11 | path: /web | permanent link to this entry

+

2006-07-19

+

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.
+

posted at: 22:54 | path: | permanent link to this entry

+ + + diff --git a/t/templates/expected/index.rss b/t/templates/expected/index.rss new file mode 100644 index 0000000..58312d8 --- /dev/null +++ b/t/templates/expected/index.rss @@ -0,0 +1,65 @@ +Content-Type: text/xml; charset=UTF-8 + + + + + + My Weblog + http://localhost/ + Yet another Blosxom weblog. + author@example.com (A. U. Thor) + author@example.com (A. U. Thor) + Sun, 11 Nov 2007 11:11:00 +0000 + en + blosxom 2.0.2 + + hourly + 1 + 2000-01-01T12:00+00:00 + + + + Lorem ipsum II + http://localhost/web/2.html + http://localhost/web/2.html + Sun, 11 Nov 2007 11:11:00 +0000 + +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 ipsum + http://localhost/1.html + http://localhost/1.html + Wed, 19 Jul 2006 22:54:00 +0000 + 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/templates/expected/web/index.html b/t/templates/expected/web/index.html new file mode 100644 index 0000000..37c232a --- /dev/null +++ b/t/templates/expected/web/index.html @@ -0,0 +1,28 @@ +Content-Type: text/xhtml; charset=UTF-8 + + + + + + My Weblog + + + +

My Weblog

+

+

2007-11-11

+

Lorem ipsum II

+
+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. +
+

posted at: 11:11 | path: /web | permanent link to this entry

+ + + diff --git a/t/templates/expected/web/index.rss b/t/templates/expected/web/index.rss new file mode 100644 index 0000000..aabb7b4 --- /dev/null +++ b/t/templates/expected/web/index.rss @@ -0,0 +1,43 @@ +Content-Type: text/xml; charset=UTF-8 + + + + + + My Weblog + http://localhost/ + web + Yet another Blosxom weblog. + author@example.com (A. U. Thor) + author@example.com (A. U. Thor) + Sun, 11 Nov 2007 11:11:00 +0000 + en + blosxom 2.0.2 + + hourly + 1 + 2000-01-01T12:00+00:00 + + + + Lorem ipsum II + http://localhost/web/2.html + http://localhost/web/2.html + Sun, 11 Nov 2007 11:11:00 +0000 + +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. + + + + + + diff --git a/t/templates/spec.yaml b/t/templates/spec.yaml index 93883d3..167aadb 100644 --- a/t/templates/spec.yaml +++ b/t/templates/spec.yaml @@ -1,4 +1,13 @@ tests: - - "" - - expected.html + - "expected/index.html" + - + - "path=/index.rss" + - "expected/index.rss" + - + - "path=/web/index.html" + - "expected/web/index.html" + - + - "path=/web/index.rss" + - "expected/web/index.rss"