diff options
Diffstat (limited to 't')
-rw-r--r-- | t/manual/git_revert/Makefile | 8 | ||||
-rw-r--r-- | t/manual/git_revert/ikiwiki.setup | 31 |
2 files changed, 36 insertions, 3 deletions
diff --git a/t/manual/git_revert/Makefile b/t/manual/git_revert/Makefile index 9e2220d11..34db8c48a 100644 --- a/t/manual/git_revert/Makefile +++ b/t/manual/git_revert/Makefile @@ -9,15 +9,17 @@ all: mkdir -p git/doc/writable cd git && git init cp index.mdwn git/doc/index.mdwn + cp -a $(CURDIR)/../../../doc/wikiicons git/doc/ + cp -a $(CURDIR)/../../../doc/recentchanges.mdwn git/doc/ echo "This is the first test page" > git/doc/writable/one.mdwn echo "This is the second test page" > git/doc/writable/two.mdwn - cd git && git add doc && git commit -m 'Initial commit' + cd git && git add . && git commit -m 'Initial commit' $(ikiwiki) --setup ikiwiki.setup echo "This is the first test page, it was first" > git/doc/writable/one.mdwn - cd git && git add doc && git commit -m 'First web commit' + cd git && git add . && git commit -m 'First web commit' $(ikiwiki) --setup ikiwiki.setup echo "This is the second test page, it came second" > git/doc/writable/two.mdwn - cd git && git add doc && git commit -m 'Second web commit' + cd git && git add . && git commit -m 'Second web commit' $(ikiwiki) --setup ikiwiki.setup cd git && git mv doc/writable/one.mdwn doc/one.mdwn cd git && git mv doc/writable/two.mdwn two.mdwn diff --git a/t/manual/git_revert/ikiwiki.setup b/t/manual/git_revert/ikiwiki.setup new file mode 100644 index 000000000..875a2afcc --- /dev/null +++ b/t/manual/git_revert/ikiwiki.setup @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +use Cwd qw(getcwd abs_path); +my $pwd; +my $src; + +BEGIN { + $pwd = getcwd; + $src = abs_path("$pwd/../../.."); +} + +use IkiWiki::Setup::Standard { + wikiname => "ikiwiki_manual_test_git_revert", + srcdir => "$pwd/git/doc", + destdir => "$pwd/html", + templatedir => "$src/templates", + underlaydirbase => "$src/underlays", + underlaydir => "$src/underlays/basewiki", + verbose => 1, + syslog => 0, + usedirs => 0, + w3mmode => 1, + url => "file://$pwd/html", + cgiurl => 'file:///$LIB/ikiwiki-w3m.cgi/ikiwiki_manual_test_git_revert.cgi', + add_plugins => [qw{recentchanges anonok lockedit}], + locked_pages => '!writable/*', + anonok_pagespec => 'writable/*', + disable_plugins => [qw{passwordauth emailauth openid}], + rcs => 'git', + gitorigin_branch => '', +} |