summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2023-08-21 15:59:39 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2023-08-21 15:59:39 +0000
commit3626809c1cec5506984d108d71f690379344311e (patch)
tree5534c3df52f923de5851641af3f63fdecc5c6a00 /regress/sbin
parente3f84da62059d233c4179cbe4848a0681f22aa23 (diff)
cover expected failures for volume recreation and the empty passphrase
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/bioctl/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/regress/sbin/bioctl/Makefile b/regress/sbin/bioctl/Makefile
index 837fa50fc8c..69b48da4a07 100644
--- a/regress/sbin/bioctl/Makefile
+++ b/regress/sbin/bioctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.2 2023/08/21 05:10:25 anton Exp $
+# $OpenBSD: Makefile,v 1.3 2023/08/21 15:59:38 kn Exp $
BIOCTL ?= /sbin/bioctl
@@ -17,9 +17,10 @@ create-chunk:
echo 'RAID *' | ${SUDO} disklabel -wAT- -- "$$(<${CHUNKDEVFILE})"
-REGRESS_TARGETS = scripted-create-volume \
+SUCCESS_TESTS = scripted-create-volume \
scripted-change-passphrase
-REGRESS_ROOT_TARGETS = ${REGRESS_TARGETS}
+REGRESS_TARGETS = ${SUCCESS_TESTS}
+REGRESS_ROOT_TARGETS = ${SUCCESS_TESTS}
scripted-create-volume:
printf '%s\n' '${OLDPW}' | \
@@ -31,6 +32,19 @@ scripted-change-passphrase:
${SUDO} ${BIOCTL} -s -P -- "$$(<${VOLDEVFILE})"
+FAILURE_TESTS = recreate-existing-volume \
+ set-empty-passphrase
+REGRESS_EXPECTED_FAILURES += ${FAILURE_TESTS}
+REGRESS_TARGETS += ${FAILURE_TESTS}
+REGRESS_ROOT_TARGETS = ${FAILURE_TESTS}
+
+recreate-existing-volume:
+ ${SUDO} ${BIOCTL} -cC -l"$$(<${CHUNKDEVFILE})a" -- softraid0
+
+set-empty-passphrase:
+ printf '\n' | ${SUDO} ${BIOCTL} -s -P -- "$$(<${VOLDEVFILE})"
+
+
CLEANFILES = *.txt *.img
REGRESS_CLEANUP = cleanup