summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-07-16 21:07:09 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-07-16 21:07:09 +0000
commit1de837f0997a04fb331a6dac06b70cca221fdbc6 (patch)
tree6e93b029bee6f3511d442186dc50ee01392802c3 /regress
parentd2026e1834bf12902d9c0a87da24c33571f2d9a9 (diff)
New realpath(3) requires existing files. Create fake disk images
that are used in vmd(8) config parser.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.sbin/vmd/config/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/regress/usr.sbin/vmd/config/Makefile b/regress/usr.sbin/vmd/config/Makefile
index 0f3b8ba8a74..fdbe4072260 100644
--- a/regress/usr.sbin/vmd/config/Makefile
+++ b/regress/usr.sbin/vmd/config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.8 2018/10/23 14:25:43 bluhm Exp $
+# $OpenBSD: Makefile,v 1.9 2019/07/16 21:07:08 bluhm Exp $
VMD ?= /usr/sbin/vmd
@@ -30,6 +30,12 @@ vmd-fail-${n}:
diff -u ${.CURDIR}/vmd-fail-${n}.ok /dev/stdin
.endfor
+vmd-fail-too-many-disks: disk0.img disk1.img disk2.img disk3.img disk4.img
+vmd-fail-bad-format vmd-fail-missing-format vmd-pass-format-keyword: foo.img
+
+foo.img disk0.img disk1.img disk2.img disk3.img disk4.img:
+ touch $@
+
PATH_LONG = some/relativepath/somewhere/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789
BOOT_PATH_LONG = ${PATH_LONG}/bsd.rd
DISK_PATH_LONG = ${PATH_LONG}/bsd.img
@@ -42,6 +48,7 @@ ${BOOT_PATH_LONG} ${DISK_PATH_LONG}:
touch $@
clean:
+ rm -f -- *.img
rm -rf some
.PHONY: ${REGRESS_TARGETS}