blob: d913840ca60c7ecea883002edda74769364281c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $OpenBSD: Makefile,v 1.11 2023/04/26 10:14:21 dv Exp $
VMD ?= /usr/sbin/vmd
VMD_PASS=boot-keyword memory-round memory-just-enough cdrom-keyword \
format-keyword
VMD_FAIL=kernel-keyword too-few-ram too-many-ifs too-many-disks \
switch-no-interface switch-no-add bad-format missing-format
.for n in ${VMD_PASS}
REGRESS_TARGETS += run-pass-$n
run-pass-$n:
${VMD} -n -f ${.CURDIR}/vmd-pass-$n.conf 2>&1 | \
diff -u ${.CURDIR}/vmd-pass-$n.ok /dev/stdin
.endfor
.for n in ${VMD_FAIL}
REGRESS_TARGETS += run-fail-$n
run-fail-$n:
${VMD} -n -f ${.CURDIR}/vmd-fail-$n.conf 2>&1 | \
cut -d : -f 2,3,4 | \
diff -u ${.CURDIR}/vmd-fail-$n.ok /dev/stdin
.endfor
run-fail-too-many-disks: disk0.img disk1.img disk2.img disk3.img disk4.img
run-fail-bad-format run-fail-missing-format run-pass-format-keyword: foo.img
foo.img disk0.img disk1.img disk2.img disk3.img disk4.img:
touch $@
clean:
rm -f -- *.img
rm -rf some
.include <bsd.regress.mk>
|