1# 2# $FreeBSD$ 3# 4# Regression test for geom_uzip. 5# 6 7PACKAGE= tests 8FILESGROUPS= TESTS 9TESTSPACKAGE= ${PACKAGE} 10TESTSDIR= ${TESTSBASE}/sys/geom/class/${.CURDIR:T} 11TESTS+= ${FILES} 12 13IMAGE= 1.img 14ZIMAGE= ${IMAGE}.uzip 15UZIMAGE= ${ZIMAGE}.uue 16 17CLEANFILES+= ${IMAGE} ${UZIMAGE} ${ZIMAGE} 18 19${IMAGE}: 20 makefs -s 1048576 ${.TARGET} ${.CURDIR}/etalon 21 22${ZIMAGE}: ${IMAGE} 23 mkuzip -o ${.TARGET} ${.ALLSRC} 24 25${UZIMAGE}: ${IMAGE} ${ZIMAGE} 26 printf "#\n# $$" >${.TARGET} 27 printf "FreeBSD$$\n#\n\n" >> ${.TARGET} 28 uuencode ${ZIMAGE} ${ZIMAGE} >>${.TARGET} 29 30FILES+= conf.sh 31FILESNAME_conf.sh= conf.sh 32 33FILES+= ${UZIMAGE} 34FILESDIR= ${TESTSDIR} 35 36FILESGROUPS= FILES etalon 37etalon+= etalon/etalon.txt 38etalonDIR= ${TESTSDIR}/etalon 39 40TAP_TESTS_SH+= 1_test 41 42.for t in ${TAP_TESTS_SH} 43TEST_METADATA.$t+= required_user="root" 44.endfor 45 46.include <bsd.test.mk> 47