xref: /openbsd-src/regress/sys/arch/amd64/vmm/Makefile (revision 7775ce89e745a07a23fcc8caced22a296c5f331d)
1# $OpenBSD: Makefile,v 1.2 2022/04/21 19:21:05 bluhm Exp $
2
3.if "${MACHINE_ARCH}" != amd64
4regress:
5	# MACHINE_ARCH is not amd64
6	@echo SKIPPED
7.else
8
9PROGS =			vcpu
10WARNINGS =		yes
11
12REGRESS_TARGETS =	run-regress-vcpu
13run-regress-vcpu: vcpu
14	${SUDO} ./vcpu
15
16.if ! (make(clean) || make(cleandir) || make(obj))
17.include <bsd.own.mk>
18VMMDEV_FAIL !=		${SUDO} /bin/sh -c 'true </dev/vmm'; echo $$?
19
20.if "${VMMDEV_FAIL}" != 0
21REGRESS_SKIP_TARGETS =		${REGRESS_TARGETS}
22.endif
23.endif
24.endif
25
26.include <bsd.regress.mk>
27