diff options
author | phk <phk@FreeBSD.org> | 2003-10-17 19:52:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-17 19:52:07 +0000 |
commit | ce5d62e853d45b03a2b4b63389a3323647677951 (patch) | |
tree | 7c50fed982ac48cc706678e19d3e6c596b08b765 /sbin | |
parent | 31759c05252abfcf6f62fa446d979c6c1d38485b (diff) | |
download | FreeBSD-src-ce5d62e853d45b03a2b4b63389a3323647677951.zip FreeBSD-src-ce5d62e853d45b03a2b4b63389a3323647677951.tar.gz |
Make the regression test run also with obj directories.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/gbde/Makefile | 2 | ||||
-rw-r--r-- | sbin/gbde/test.sh | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sbin/gbde/Makefile b/sbin/gbde/Makefile index a8ca939..8705802 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 <bsd.prog.mk> diff --git a/sbin/gbde/test.sh b/sbin/gbde/test.sh index fb3a815..eeb2c4dee 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 |