From ebe5398f498dbe5ac37bc3dd2298b50f31c97cf7 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 7 Sep 2008 13:12:51 -0300 Subject: [PATCH] modify setup for vcs (git) enable test-wiki --- test-wiki/.gitignore | 3 +++ test-wiki/dotests.sh | 10 ++++++++++ test-wiki/test.setup | 6 +++--- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 test-wiki/.gitignore create mode 100644 test-wiki/dotests.sh 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" } -- 2.39.5