mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
regress: remove vmd path length tests.
These add no value and we'd now that we don't artificially limit path lengths just be updating them to check PATH_MAX.
This commit is contained in:
parent
a67e193f51
commit
eb18c5c166
@ -1,13 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.10 2020/12/16 22:59:55 bluhm Exp $
|
||||
# $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 vm-name-too-long too-many-ifs \
|
||||
boot-name-too-long disk-path-too-long too-many-disks \
|
||||
switch-no-interface switch-no-add cdrom-name-too-long \
|
||||
bad-format missing-format
|
||||
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
|
||||
@ -30,17 +28,6 @@ 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 $@
|
||||
|
||||
PATH_LONG = some/relativepath/somewhere/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789
|
||||
BOOT_PATH_LONG = ${PATH_LONG}/bsd.rd
|
||||
DISK_PATH_LONG = ${PATH_LONG}/bsd.img
|
||||
|
||||
run-fail-boot-name-too-long: ${BOOT_PATH_LONG}
|
||||
run-fail-disk-path-too-long: ${DISK_PATH_LONG}
|
||||
|
||||
${BOOT_PATH_LONG} ${DISK_PATH_LONG}:
|
||||
mkdir -p ${@:H}
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
rm -f -- *.img
|
||||
rm -rf some
|
||||
|
@ -1,6 +0,0 @@
|
||||
# $OpenBSD: vmd-fail-boot-name-too-long.conf,v 1.2 2018/10/22 16:45:24 bluhm Exp $
|
||||
# Fail on boot path (> 128)
|
||||
ramdisk="some/relativepath/somewhere/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/bsd.rd"
|
||||
vm "x" {
|
||||
boot $ramdisk
|
||||
}
|
@ -1 +0,0 @@
|
||||
5: kernel name too long
|
@ -1,6 +0,0 @@
|
||||
# $OpenBSD: vmd-fail-cdrom-name-too-long.conf,v 1.1 2018/01/07 22:59:57 ccardenas Exp $
|
||||
# Fail on cdrom path (> 128)
|
||||
iso="/some/absolutepath/somewhere/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/cd62.iso"
|
||||
vm "x" {
|
||||
cdrom $iso
|
||||
}
|
@ -1 +0,0 @@
|
||||
5: cdrom name too long
|
@ -1,6 +0,0 @@
|
||||
# $OpenBSD: vmd-fail-disk-path-too-long.conf,v 1.2 2018/07/20 22:18:49 bluhm Exp $
|
||||
# Fail on disk path (> 128)
|
||||
rdisk="some/relativepath/somewhere/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/bsd.img"
|
||||
vm "x" {
|
||||
disk $rdisk
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
disk path too long
|
||||
5: failed to parse disks: some/relativepath/somewhere/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/abcdefghijklmnopqrstuvwxyz0123456789/bsd.img
|
@ -1,4 +0,0 @@
|
||||
# $OpenBSD: vmd-fail-vm-name-too-long.conf,v 1.2 2019/03/04 21:36:21 bluhm Exp $
|
||||
# Fail on VM name (>= 64 chars)
|
||||
vm "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ__" {
|
||||
}
|
@ -1 +0,0 @@
|
||||
3: vm name too long
|
Loading…
Reference in New Issue
Block a user