1 # $NetBSD: Makefile,v 1.1 2006/04/17 20:02:35 perseant Exp $ 2 # 3 # Note: this test must be run with LFSDEV defined, e.g. "LFSDEV=wd0g". 4 # It will destroy the existing contents of $LFSDEV to perform the test. 5 # This test requires that Perl be installed to run. 6 # 7 8 NOMAN= # defined 9 TMPMP= /tmp/lfsregresstest_mount 10 SRCDIR?= ${.CURDIR} 11 CLEAN= clean 12 LFSBDEV="/dev/${LFSDEV}" 13 LFSCDEV="/dev/r${LFSDEV}" 14 COUNT?= 20 15 PLEX?= 2 16 17 regress: test_ckckp 18 19 test_ckckp: ckckp cleanalot_async run_ckckp 20 @echo "*** Checkpoint validity test" 21 @echo "*** WARNING: will newfs_lfs ${LFSCDEV} in 10 seconds" 22 @sleep 10 23 newfs_lfs ${LFSCDEV} 24 -mkdir ${TMPMP} 25 mount ${LFSBDEV} ${TMPMP} 26 ./run_ckckp ${TMPMP} ${LFSCDEV} ${PLEX} ${COUNT} 27 umount ${TMPMP} 28 rmdir ${TMPMP} 29 30 clean: 31 rm -f ckckp cleanalot_async *~ *.core 32 33 .include <bsd.prog.mk> 34