add regress tests for automatic port allocation.
authorvgross <vgross@openbsd.org>
Wed, 14 Oct 2015 12:47:07 +0000 (12:47 +0000)
committervgross <vgross@openbsd.org>
Wed, 14 Oct 2015 12:47:07 +0000 (12:47 +0000)
- enable ipv4
- leave ipv6 disabled

regress/sys/Makefile
regress/sys/netinet/Makefile [new file with mode: 0644]
regress/sys/netinet/autoport/Makefile [new file with mode: 0644]

index 045e46e..a1cdcf7 100644 (file)
@@ -1,7 +1,7 @@
-#      $OpenBSD: Makefile,v 1.19 2013/10/31 01:24:06 bluhm Exp $
+#      $OpenBSD: Makefile,v 1.20 2015/10/14 12:47:07 vgross Exp $
 #      $NetBSD: Makefile,v 1.4 1995/04/20 22:41:08 cgd Exp $
 
-SUBDIR+= copy crypto ddb fifofs kern net netinet6 ptrace sys uvm dev
+SUBDIR+= copy crypto ddb fifofs kern net netinet netinet6 ptrace sys uvm dev
 .if exists(arch/${MACHINE})
 SUBDIR+= arch/${MACHINE}
 .endif
diff --git a/regress/sys/netinet/Makefile b/regress/sys/netinet/Makefile
new file mode 100644 (file)
index 0000000..b9e9bbc
--- /dev/null
@@ -0,0 +1,5 @@
+#      $OpenBSD: Makefile,v 1.1 2015/10/14 12:47:07 vgross Exp $
+
+SUBDIR =       autoport
+
+.include <bsd.subdir.mk>
diff --git a/regress/sys/netinet/autoport/Makefile b/regress/sys/netinet/autoport/Makefile
new file mode 100644 (file)
index 0000000..e5fa932
--- /dev/null
@@ -0,0 +1,11 @@
+#      $OpenBSD: Makefile,v 1.1 2015/10/14 12:47:07 vgross Exp $
+
+DIR=   ../../netinet6/autoport
+
+REGRESS_TARGETS=       run-regress-autoport
+REGRESS_ROOT_TARGETS=  $(REGRESS_TARGETS)
+
+run-regress-autoport:
+       $(DIR)/autoport.pl 4 30000 31000 64
+
+.include <bsd.regress.mk>