summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-05 23:51:08 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-05 23:51:08 +0000
commit8fd13334af6538ab65273a4a6adb5a8cb3faef17 (patch)
tree0ed8238c9fc324f84b4e70bc41fcc2b99e909ec3
parent6b5ab219592b327f910e53395eb018f4e7005269 (diff)
fix path issue when runnign test
-rwxr-xr-xMakefile.PL2
-rwxr-xr-xt/basewiki_brokenlinks.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 1add3cf1c..741f530a2 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -82,7 +82,7 @@ extra_install:
install -d $(DESTDIR)$(PREFIX)/bin
install ikiwiki.out $(DESTDIR)$(PREFIX)/bin/ikiwiki
- $(MAKE) -C po install PREFIX=$(PREFIX)
+ $(MAKE) -C po install
}
}
diff --git a/t/basewiki_brokenlinks.t b/t/basewiki_brokenlinks.t
index 00811a5e3..baee285e2 100755
--- a/t/basewiki_brokenlinks.t
+++ b/t/basewiki_brokenlinks.t
@@ -5,7 +5,7 @@ use Test::More 'no_plan';
ok(! system("mkdir t/tmp"));
ok(! system("make -q ikiwiki.out"));
-ok(! system("make extra_install DESTDIR=t/tmp/install PREFIX=/usr >/dev/null"));
+ok(! system("make extra_install DESTDIR=`pwd`/t/tmp/install PREFIX=/usr >/dev/null"));
ok(! system("LANG= perl -T -I. ./ikiwiki.out -plugin smiley -plugin brokenlinks -rebuild -underlaydir=t/tmp/install/usr/share/ikiwiki/basewiki -templatedir=templates t/basewiki_brokenlinks t/tmp/out"));
ok(`grep 'no broken links' t/tmp/out/index.html`);
ok(-e "t/tmp/out/style.css");