summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2021-12-24 10:25:37 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2021-12-24 10:25:37 +0000
commit9919988063805078b3f10fd4232370b7712f055d (patch)
treeb11c740f02cc8f26c34e9cc1a12bf10bb422d40b /regress
parentc4a55f57c17f26f959fe06fa9db745a01dfff001 (diff)
Hook up iocond regress.
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/kern/poll/Makefile19
-rw-r--r--regress/sys/kern/select/Makefile17
2 files changed, 30 insertions, 6 deletions
diff --git a/regress/sys/kern/poll/Makefile b/regress/sys/kern/poll/Makefile
index 2db888bb7b9..ef5758b2d48 100644
--- a/regress/sys/kern/poll/Makefile
+++ b/regress/sys/kern/poll/Makefile
@@ -1,7 +1,20 @@
-# $OpenBSD: Makefile,v 1.6 2021/11/29 16:11:46 visa Exp $
+# $OpenBSD: Makefile,v 1.7 2021/12/24 10:25:36 visa Exp $
-PROGS= poll_close poll_regevent pollnval pollretval
-LDADD= -lpthread
+PROGS= poll_close poll_iocond poll_regevent pollnval pollretval
+LDADD= -lpthread -lutil
WARNINGS= yes
+REGRESS_TARGETS+= run-regress-poll_close
+REGRESS_TARGETS+= run-regress-poll_regevent
+REGRESS_TARGETS+= run-regress-pollnval
+REGRESS_TARGETS+= run-regress-pollretval
+
+IOCOND_TESTS= fifo pipe pty socket-tcp socket-udp socket-unix
+.for t in ${IOCOND_TESTS}
+run-regress-poll_iocond-${t}: poll_iocond
+ ./poll_iocond ${t}
+REGRESS_TARGETS+= run-regress-poll_iocond-${t}
+.endfor
+CLEANFILES+= iocond_fifo
+
.include <bsd.regress.mk>
diff --git a/regress/sys/kern/select/Makefile b/regress/sys/kern/select/Makefile
index b66af2368bf..028aa1334e5 100644
--- a/regress/sys/kern/select/Makefile
+++ b/regress/sys/kern/select/Makefile
@@ -1,7 +1,18 @@
-# $OpenBSD: Makefile,v 1.2 2021/11/29 16:11:46 visa Exp $
+# $OpenBSD: Makefile,v 1.3 2021/12/24 10:25:36 visa Exp $
-PROGS= select_close select_regevent
-LDADD= -lpthread
+PROGS= select_close select_iocond select_regevent
+LDADD= -lpthread -lutil
WARNINGS= yes
+REGRESS_TARGETS+= run-regress-select_close
+REGRESS_TARGETS+= run-regress-select_regevent
+
+IOCOND_TESTS= fifo pipe pty socket-tcp socket-udp socket-unix
+.for t in ${IOCOND_TESTS}
+run-regress-select_iocond-${t}: select_iocond
+ ./select_iocond ${t}
+REGRESS_TARGETS+= run-regress-select_iocond-${t}
+.endfor
+CLEANFILES+= iocond_fifo
+
.include <bsd.regress.mk>