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