]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
modify setup for vcs (git) enable test-wiki
authorDavid Bremner <bremner@unb.ca>
Sun, 7 Sep 2008 16:12:51 +0000 (13:12 -0300)
committerDavid Bremner <bremner@unb.ca>
Sun, 7 Sep 2008 20:38:09 +0000 (17:38 -0300)
test-wiki/.gitignore [new file with mode: 0644]
test-wiki/dotests.sh [new file with mode: 0644]
test-wiki/test.setup

diff --git a/test-wiki/.gitignore b/test-wiki/.gitignore
new file mode 100644 (file)
index 0000000..69517e1
--- /dev/null
@@ -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 (file)
index 0000000..3d49b37
--- /dev/null
@@ -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
index e7dc1a3ed438e751bafdee961ddfd8c5ddecec4e..c8af8f3282688ae074a5ae9c3e3346b3cbc5f466 100644 (file)
@@ -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"
            
 }