From: David Bremner Date: Sun, 7 Sep 2008 16:12:51 +0000 (-0300) Subject: modify setup for vcs (git) enable test-wiki X-Git-Tag: 0.1~10 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/ebe5398f498dbe5ac37bc3dd2298b50f31c97cf7 modify setup for vcs (git) enable test-wiki --- diff --git a/test-wiki/.gitignore b/test-wiki/.gitignore new file mode 100644 index 000000000..69517e15d --- /dev/null +++ b/test-wiki/.gitignore @@ -0,0 +1,3 @@ +test-src + +test-repo.git diff --git a/test-wiki/dotests.sh b/test-wiki/dotests.sh new file mode 100644 index 000000000..3d49b374a --- /dev/null +++ b/test-wiki/dotests.sh @@ -0,0 +1,10 @@ +#!/bin/sh +rm -rf test-src test-repo.git /tmp/postal-test +cp -ar in test-src + +ikiwiki-makerepo git test-src test-repo.git +ikiwiki --rebuild --setup test.setup +perl ../filters/postal-accept.pl -c test.setup < test1.eml +perl ../filters/postal-accept.pl -c test.setup < test2.eml +perl ../filters/postal-accept.pl -c test.setup < test3.eml +ikiwiki --setup test.setup --refresh diff --git a/test-wiki/test.setup b/test-wiki/test.setup index e7dc1a3ed..c8af8f328 100644 --- a/test-wiki/test.setup +++ b/test-wiki/test.setup @@ -11,8 +11,8 @@ use IkiWiki::Setup::Standard { adminemail => 'me@example.org', # Be sure to customise these.. - srcdir => "in", - destdir => "/tmp/postaltest-wiki", + srcdir => "test-src", + destdir => "/tmp/postal-test", url => "file:///tmp/postaltest-wiki/", #cgiurl => "http://example.org/wiki/ikiwiki.cgi", @@ -204,7 +204,7 @@ use IkiWiki::Setup::Standard { # For use with the attachment plugin, a program that returns # nonzero if its standard input contains an virus. #virus_checker => "clamdscan -", - postal_prefix=>"user-testwiki-", + postal_prefix=>"auser-testwiki-", postal_host=>"we.love.spam.com" }