From 8fd13334af6538ab65273a4a6adb5a8cb3faef17 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 5 Sep 2007 23:51:08 +0000 Subject: [PATCH] fix path issue when runnign test --- Makefile.PL | 2 +- t/basewiki_brokenlinks.t | 2 +- 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"); -- 2.26.2