diff options
Diffstat (limited to 'sbin/gbde')
-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 |