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