Index: stable/9/tools/regression/geom_uzip/runtests.sh =================================================================== --- stable/9/tools/regression/geom_uzip/runtests.sh (revision 296795) +++ stable/9/tools/regression/geom_uzip/runtests.sh (nonexistent) @@ -1,10 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -dir=`dirname $0` - -for ts in `dirname $0`/test-*.sh; do - sh $ts -done Property changes on: stable/9/tools/regression/geom_uzip/runtests.sh ___________________________________________________________________ Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Index: stable/9/tools/regression/geom_uzip/test-1.sh =================================================================== --- stable/9/tools/regression/geom_uzip/test-1.sh (revision 296795) +++ stable/9/tools/regression/geom_uzip/test-1.sh (nonexistent) @@ -1,36 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -mntpoint="/mnt/test-1" - -# -# prepare -kldload geom_uzip -uudecode test-1.img.uzip.uue -num=`mdconfig -an -f test-1.img.uzip` || exit 1 -sleep 1 - -# -# mount -mkdir -p "${mntpoint}" -mount -o ro /dev/md${num}.uzip "${mntpoint}" || exit 1 - -# -# compare -#cat "${mntpoint}/etalon.txt" -diff -u etalon/etalon.txt "${mntpoint}/etalon.txt" -if [ $? -eq 0 ]; then - echo "PASS" -else - echo "FAIL" -fi - -# -# cleanup -umount "${mntpoint}" -rmdir "${mntpoint}" -mdconfig -d -u ${num} -sleep 1 -kldunload geom_uzip Property changes on: stable/9/tools/regression/geom_uzip/test-1.sh ___________________________________________________________________ Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Index: stable/9/tools/regression/geom_uzip/test-2.sh =================================================================== --- stable/9/tools/regression/geom_uzip/test-2.sh (revision 296795) +++ stable/9/tools/regression/geom_uzip/test-2.sh (nonexistent) @@ -1,15 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# -# prepare -kldload geom_uzip -uudecode test-1.img.uzip.uue -num=`mdconfig -an -f test-1.img.uzip` || exit 1 -sleep 1 - -# -# destroy -kldunload geom_uzip Property changes on: stable/9/tools/regression/geom_uzip/test-2.sh ___________________________________________________________________ Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Index: stable/9/tools/regression/geom_uzip/Makefile =================================================================== --- stable/9/tools/regression/geom_uzip/Makefile (revision 296795) +++ stable/9/tools/regression/geom_uzip/Makefile (revision 296796) @@ -1,23 +1,23 @@ # # $FreeBSD$ # # Regression test for geom_ugz. # IMAGE= test-1.img ZIMAGE= ${IMAGE}.uzip UZIMAGE= ${ZIMAGE}.uue test: - @sh runtests.sh + prove -rv ./test-1.t image: makefs -s 1048576 ${IMAGE} etalon printf "#\n# $$" >${UZIMAGE} printf "FreeBSD$$\n#\n\n" >> ${UZIMAGE} mkuzip -o ${ZIMAGE} ${IMAGE} uuencode ${ZIMAGE} ${ZIMAGE} >>${UZIMAGE} rm ${ZIMAGE} clean: rm -f ${IMAGE} ${ZIMAGE} Index: stable/9/tools/regression/geom_uzip/conf.sh =================================================================== --- stable/9/tools/regression/geom_uzip/conf.sh (nonexistent) +++ stable/9/tools/regression/geom_uzip/conf.sh (revision 296796) @@ -0,0 +1,20 @@ +#!/bin/sh +# $FreeBSD$ + +class="uzip" +base=`basename $0` + +uzip_test_cleanup() +{ + if [ -n "$mntpoint" ]; then + umount $mntpoint + rmdir $mntpoint + fi + geom_test_cleanup +} +trap uzip_test_cleanup ABRT EXIT INT TERM + +. `dirname $0`/../geom_subr.sh + +# NOTE: make sure $TMPDIR has been set by geom_subr.sh if unset [by kyua, etc] +mntpoint=$(mktemp -d tmp.XXXXXX) || exit Property changes on: stable/9/tools/regression/geom_uzip/conf.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: stable/9/tools/regression/geom_uzip/test-1.t =================================================================== --- stable/9/tools/regression/geom_uzip/test-1.t (nonexistent) +++ stable/9/tools/regression/geom_uzip/test-1.t (revision 296796) @@ -0,0 +1,22 @@ +#!/bin/sh +# $FreeBSD$ + +testsdir=$(dirname $0) +. $testsdir/conf.sh + +echo "1..1" + +UUE=$testsdir/test-1.img.uzip.uue +uudecode $UUE +us0=$(attach_md -f $(basename $UUE .uue)) || exit 1 +sleep 1 + +mount -o ro /dev/${us0}.uzip "${mntpoint}" || exit 1 + +#cat "${mntpoint}/etalon.txt" +diff -I '\$FreeBSD.*\$' -u $testsdir/etalon/etalon.txt "${mntpoint}/etalon.txt" +if [ $? -eq 0 ]; then + echo "ok 1" +else + echo "not ok 1" +fi Property changes on: stable/9/tools/regression/geom_uzip/test-1.t ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: stable/9/tools/regression =================================================================== --- stable/9/tools/regression (revision 296795) +++ stable/9/tools/regression (revision 296796) Property changes on: stable/9/tools/regression ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /stable/10/tools/regression:r296787 Index: stable/9/tools =================================================================== --- stable/9/tools (revision 296795) +++ stable/9/tools (revision 296796) Property changes on: stable/9/tools ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /stable/10/tools:r296787 Index: stable/9 =================================================================== --- stable/9 (revision 296795) +++ stable/9 (revision 296796) Property changes on: stable/9 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,2 ## Merged /head:r293443 Merged /stable/10:r296787