aboutsummaryrefslogtreecommitdiff
path: root/t/manual/git_revert/Makefile
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-12-24 12:27:21 +0000
committerSimon McVittie <smcv@debian.org>2016-12-28 21:32:11 +0000
commit7c34df633d6dd0d16538b1911694351b604104ef (patch)
treeb2007e0ee8f54befe52af7060373a45054e8ac39 /t/manual/git_revert/Makefile
parenta9b876e1fad659f72ffe55a9a82601ba31fb652e (diff)
downloadikiwiki-7c34df633d6dd0d16538b1911694351b604104ef.tar
ikiwiki-7c34df633d6dd0d16538b1911694351b604104ef.tar.gz
git_revert test: reinstate ikiwiki.setup, and make it work uninstalled
Previously it was relying on running with an installed ikiwiki and being able to copy in recentchanges.mdwn and wikiicons/ from the underlay in /usr. The underlay in ./underlays/basewiki can't be used (yet) because ikiwiki doesn't allow following symlinks, even from underlays. I'd like to make ikiwiki follow symlinks whose destinations can be verified to be safe (for example making it willing to expose /usr/share/javascript to the web, but not /etc/passwd), at least from underlays, but this is security-sensitive so I'm not going to rush into it.
Diffstat (limited to 't/manual/git_revert/Makefile')
-rw-r--r--t/manual/git_revert/Makefile8
1 files changed, 5 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