Hook test for command line arguments support.
authormpi <mpi@openbsd.org>
Thu, 9 Sep 2021 10:00:04 +0000 (10:00 +0000)
committermpi <mpi@openbsd.org>
Thu, 9 Sep 2021 10:00:04 +0000 (10:00 +0000)
regress/usr.sbin/btrace/Makefile
regress/usr.sbin/btrace/staticv.args [deleted file]

index 2173875..cd553a3 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.18 2021/09/09 09:56:32 mpi Exp $
+# $OpenBSD: Makefile,v 1.19 2021/09/09 10:00:04 mpi Exp $
 
 BTRACE?=                /usr/sbin/btrace
 ALLOWDT!=              sysctl -n kern.allowdt
@@ -21,6 +21,12 @@ run-$b:
                diff -u ${.CURDIR}/$b.ok /dev/stdin
 .endfor
 
+b=staticv
+REGRESS_TARGETS+=              run-$b
+run-$b:
+       ${BTRACE} ${.CURDIR}/$b.bt 42 1337 -2019 2>&1 | \
+               diff -u ${.CURDIR}/$b.ok /dev/stdin
+
 .for b in ${BT_KERN_SCRIPTS}
 REGRESS_TARGETS+=              run-$b
 REGRESS_ROOT_TARGETS+=         run-$b
diff --git a/regress/usr.sbin/btrace/staticv.args b/regress/usr.sbin/btrace/staticv.args
deleted file mode 100644 (file)
index 14646f2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-42 1337 -2019
\ No newline at end of file