1# $NetBSD: Makefile,v 1.3 2003/02/03 07:45:05 perseant Exp $ 2 3NOMAN= # defined 4 5TMPMP= /tmp/lfsregresstest_mount 6TMPIM= /var/tmp/lfsregresstest.im 7SRCDIR?= ${.CURDIR} 8 9VND?= vnd0 10MPART?= a 11.if (${MACHINE_ARCH} == "i386") 12RPART?= d 13.else 14RPART?= c 15.endif 16BVND= /dev/${VND} 17CVND= /dev/r${VND} 18 19CLEAN= clean 20 21regress: test_mkfs_mount .WAIT test_smallfiles .WAIT test_rename_hardlink .WAIT ${CLEAN} 22 23# 24# Basic regression tests for LFS. 25# 26 27test_smallfiles: 28 @echo "*** Basic small files test" 29 ./smallfiles ${TMPMP} 30 ${MAKE} TMPMP=${TMPMP} VND=${VND} MPART=${MPART} fsck 31 32# rename(a, b) where a is a hard-link to b. 33test_rename_hardlink: 34 @echo "*** Hard link rename" 35 cd ${TMPMP} && : > foo && ln foo bar && mv foo bar 36 sync 37 rm -f bar 38 ${MAKE} TMPMP=${TMPMP} VND=${VND} MPART=${MPART} fsck 39 40# Trivial newfs & fsck test 41test_mkfs_mount: 42 VND=${VND} TMPMP=${TMPMP} TMPIM=${TMPIM} SRCDIR=${SRCDIR} MPART=${MPART} RPART=${RPART} ./mkfs_mount 43 44# 45# Utility targets. 46# 47fsck: 48 umount ${TMPMP} 49 fsck_lfs -f -n ${CVND}${MPART} 50 mount ${BVND}${MPART} ${TMPMP} 51 52clean: 53 -umount ${TMPMP} 54 sleep 2 55 vnconfig -u ${BVND}${RPART} 56 rmdir ${TMPMP} 57 rm -f ${TMPIM} 58 59.include <bsd.prog.mk> 60