Hook up iocond regress.
authorvisa <visa@openbsd.org>
Fri, 24 Dec 2021 10:25:36 +0000 (10:25 +0000)
committervisa <visa@openbsd.org>
Fri, 24 Dec 2021 10:25:36 +0000 (10:25 +0000)
regress/sys/kern/poll/Makefile
regress/sys/kern/select/Makefile

index 2db888b..ef5758b 100644 (file)
@@ -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>
index b66af23..028aa13 100644 (file)
@@ -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>