1# $OpenBSD: Makefile,v 1.4 2021/06/18 14:35:59 dv Exp $ 2 3# This regression test creates a raw disk image and a 4# qcow disk image, and scribbles the same data to both 5# of them. It verifies that they both have the same 6# result. 7VMD_DIR= usr.sbin/vmd 8.PATH: ${.CURDIR}/../../../../${VMD_DIR} 9 10VMCTL?= /usr/sbin/vmctl 11 12PROG= vioscribble 13SRCS= vioscribble.c vioqcow2.c vioraw.c log.c 14CFLAGS+= -I${BSDSRCDIR}/${VMD_DIR} 15LDADD+= -lpthread 16 17CLEANFILES= scribble.{raw,qcow2} 18REGRESS_CLEANUP= cleanup 19cleanup: 20 rm -f ${CLEANFILES} 21 22REGRESS_SETUP= setup 23setup: cleanup 24 ${VMCTL} create -s 4G scribble.raw 25 ${VMCTL} create -s 4G scribble.qcow2 26 27.include <bsd.regress.mk> 28