Make the regression test run also with obj directories.

This commit is contained in:
Poul-Henning Kamp 2003-10-17 19:52:07 +00:00
parent ae360dddc7
commit 2925fa2283
2 changed files with 6 additions and 2 deletions

View File

@ -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 <bsd.prog.mk>

View File

@ -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