Index: user/ngie/more-tests2/sbin/geom/class/tests/uzip/1.sh =================================================================== --- user/ngie/more-tests2/sbin/geom/class/tests/uzip/1.sh (revision 291273) +++ user/ngie/more-tests2/sbin/geom/class/tests/uzip/1.sh (nonexistent) @@ -1,37 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -mntpoint="/mnt/test-1" - -# -# prepare -kldload geom_uzip -UUE=$(dirname $0)/1.img.uzip.uue -uudecode $UUE -num=`mdconfig -an -f $(basename $UUE .uue)` || 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: user/ngie/more-tests2/sbin/geom/class/tests/uzip/1.sh ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: user/ngie/more-tests2/sbin/geom/class/tests/uzip/2.sh =================================================================== --- user/ngie/more-tests2/sbin/geom/class/tests/uzip/2.sh (revision 291273) +++ user/ngie/more-tests2/sbin/geom/class/tests/uzip/2.sh (nonexistent) @@ -1,18 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# -# prepare - -UUE=$(dirname $0)/1.img.uzip.uue - -kldload geom_uzip -uudecode $UUE -num=`mdconfig -an -f $(basename $UUE .uue)` || exit 1 -sleep 1 - -# -# destroy -kldunload geom_uzip Property changes on: user/ngie/more-tests2/sbin/geom/class/tests/uzip/2.sh ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: user/ngie/more-tests2/sbin/geom/class/tests/uzip/1_test.sh =================================================================== --- user/ngie/more-tests2/sbin/geom/class/tests/uzip/1_test.sh (nonexistent) +++ user/ngie/more-tests2/sbin/geom/class/tests/uzip/1_test.sh (revision 291274) @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +mntpoint="/mnt/test-1" + +# +# prepare +kldload geom_uzip +UUE=$(dirname $0)/1.img.uzip.uue +uudecode $UUE +num=`mdconfig -an -f $(basename $UUE .uue)` || 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: user/ngie/more-tests2/sbin/geom/class/tests/uzip/1_test.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: user/ngie/more-tests2/sbin/geom/class/tests/uzip/2_test.sh =================================================================== --- user/ngie/more-tests2/sbin/geom/class/tests/uzip/2_test.sh (nonexistent) +++ user/ngie/more-tests2/sbin/geom/class/tests/uzip/2_test.sh (revision 291274) @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# +# prepare + +UUE=$(dirname $0)/1.img.uzip.uue + +kldload geom_uzip +uudecode $UUE +num=`mdconfig -an -f $(basename $UUE .uue)` || exit 1 +sleep 1 + +# +# destroy +kldunload geom_uzip Property changes on: user/ngie/more-tests2/sbin/geom/class/tests/uzip/2_test.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: user/ngie/more-tests2/sbin/geom/class/tests/uzip/Makefile =================================================================== --- user/ngie/more-tests2/sbin/geom/class/tests/uzip/Makefile (revision 291273) +++ user/ngie/more-tests2/sbin/geom/class/tests/uzip/Makefile (revision 291274) @@ -1,34 +1,34 @@ # # $FreeBSD$ # # Regression test for geom_uzip. # IMAGE= 1.img ZIMAGE= ${IMAGE}.uzip UZIMAGE= ${ZIMAGE}.uue CLEANFILES+= ${IMAGE} ${UZIMAGE} ${ZIMAGE} ${IMAGE}: makefs -s 1048576 ${.TARGET} ${.CURDIR}/etalon ${ZIMAGE}: ${IMAGE} mkuzip -o ${.TARGET} ${.ALLSRC} ${UZIMAGE}: ${IMAGE} ${ZIMAGE} printf "#\n# $$" >${.TARGET} printf "FreeBSD$$\n#\n\n" >> ${.TARGET} uuencode ${ZIMAGE} ${ZIMAGE} >>${.TARGET} FILES+= ${UZIMAGE} FILESDIR= ${TESTSDIR} FILESGROUPS= FILES etalon etalon+= etalon/etalon.txt etalonDIR= ${TESTSDIR}/etalon -PLAIN_TESTS_SH+= 1 -PLAIN_TESTS_SH+= 2 +PLAIN_TESTS_SH+= 1_test +PLAIN_TESTS_SH+= 2_test .include