summaryrefslogtreecommitdiff
path: root/regress/sys/dev/vnd/Makefile
blob: 99e2880670b39310d6d2da04ba87fa99ad37794d (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
#	$OpenBSD: Makefile,v 1.2 2022/07/26 13:20:16 krw Exp $

REGRESS_SETUP=		setup
REGRESS_CLEANUP=	cleanup
REGRESS_TARGETS=

setup:
	mkdir -p /mnt/regress-vnd

cleanup: unconfig
	-rmdir /mnt/regress-vnd 2>/dev/null || true

unconfig:
	-vnconfig -u vnd0 2>/dev/null || true
	-umount -f /mnt/regress-vnd 2>/dev/null || true

REGRESS_TARGETS+=	run-regress-async-mount
run-regress-async-mount: unconfig
	mount_mfs -s1M -oasync swap /mnt/regress-vnd
	dd if=/dev/zero of=/mnt/regress-vnd/disk.img count=1024
	vnconfig vnd0 /mnt/regress-vnd/disk.img
	fdisk -iy -b "960@64:0c" vnd0
	newfs -t msdos vnd0i

REGRESS_ROOT_TARGETS=	${REGRESS_TARGETS}

.include <bsd.regress.mk>