From 2925fa2283cdda4b2aabf8b9a4641b5760f3a841 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 17 Oct 2003 19:52:07 +0000 Subject: [PATCH] Make the regression test run also with obj directories. --- sbin/gbde/Makefile | 2 +- sbin/gbde/test.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sbin/gbde/Makefile b/sbin/gbde/Makefile index a8ca93944c2..87058028533 100644 --- a/sbin/gbde/Makefile +++ b/sbin/gbde/Makefile @@ -31,6 +31,6 @@ template.c: template.txt < ${.CURDIR}/template.txt > template.c test: ${PROG} - sh ${.CURDIR}/test.sh + sh ${.CURDIR}/test.sh ${.CURDIR} .include diff --git a/sbin/gbde/test.sh b/sbin/gbde/test.sh index fb3a8157285..eeb2c4dee78 100644 --- a/sbin/gbde/test.sh +++ b/sbin/gbde/test.sh @@ -42,7 +42,11 @@ if ./gbde nuke $D -p foo4 -l /tmp/_l4 -n -1 ; then false ; fi mdconfig -d -u $MD mdconfig -a -t malloc -s 1m -u $MD -uudecode -p image.uu | bzcat > $D +if [ -f image.uu ] ; then + uudecode -p image.uu | bzcat > $D +else + uudecode -p ${1}/image.uu | bzcat > $D +fi gbde attach $D -p foo fsck_ffs ${D}.bde gbde detach $D