Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/tcp tests: build and install added test files



details:   https://anonhg.NetBSD.org/src/rev/bc53b0ffb654
branches:  trunk
changeset: 372352:bc53b0ffb654
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Nov 17 08:45:35 2022 +0000

description:
tests: build and install added test files

diffstat:

 distrib/sets/lists/debug/mi |   6 +++++-
 distrib/sets/lists/tests/mi |  11 ++++++++++-
 etc/mtree/NetBSD.dist.tests |   4 +++-
 tests/net/Makefile          |   4 ++--
 tests/net/inpcb/Makefile    |  21 +++++++++++++++++++++
 tests/net/net/Makefile      |   5 ++++-
 tests/net/tcp/Makefile      |   7 ++++++-
 7 files changed, 51 insertions(+), 7 deletions(-)

diffs (186 lines):

diff -r 379c446e34b8 -r bc53b0ffb654 distrib/sets/lists/debug/mi
--- a/distrib/sets/lists/debug/mi       Thu Nov 17 08:42:56 2022 +0000
+++ b/distrib/sets/lists/debug/mi       Thu Nov 17 08:45:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.390 2022/11/04 08:01:42 ozaki-r Exp $
+# $NetBSD: mi,v 1.391 2022/11/17 08:45:35 ozaki-r Exp $
 ./etc/mtree/set.debug                           comp-sys-root
 ./usr/lib                                      comp-sys-usr            compatdir
 ./usr/lib/i18n/libBIG5_g.a                     comp-c-debuglib         debuglib,compatfile
@@ -2421,6 +2421,8 @@
 ./usr/libdata/debug/usr/tests/net/if_tap/rump_open_tap.debug   tests-net-debug         debug,atf,rump
 ./usr/libdata/debug/usr/tests/net/if_vlan/bpfopen.debug                tests-net-debug         debug,atf,rump
 ./usr/libdata/debug/usr/tests/net/if_vlan/siocXmulti.debug     tests-net-debug         debug,atf,rump
+./usr/libdata/debug/usr/tests/net/inpcb/broadcast_bind.debug   tests-net-debug         debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/net/inpcb/inpcb_bind.debug       tests-net-debug         debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/net/in_cksum/in_cksum.debug      tests-net-debug         debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/net/ipsec/natt_terminator.debug  tests-net-debug         debug,atf,rump
 ./usr/libdata/debug/usr/tests/net/mcast/mcast.debug            tests-net-debug         debug,atf,rump
@@ -2430,6 +2432,7 @@
 ./usr/libdata/debug/usr/tests/net/net/t_pktinfo.debug          tests-net-debug         debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/net/net/t_pktinfo_send.debug     tests-net-debug         debug,atf,rump
 ./usr/libdata/debug/usr/tests/net/net/t_raw.debug              tests-net-debug         debug,atf,rump
+./usr/libdata/debug/usr/tests/net/net/t_socket_afinet.debug    tests-net-debug         debug,atf,rump
 ./usr/libdata/debug/usr/tests/net/net/t_tcp.debug              tests-net-debug         debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/net/net/t_udp.debug              tests-net-debug         debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/net/net/t_unix.debug             tests-net-debug         debug,atf,compattestfile
@@ -2438,6 +2441,7 @@
 ./usr/libdata/debug/usr/tests/net/sys/t_rfc6056.debug                  tests-net-debug         debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/net/sys/t_socketpair.debug               tests-obsolete          obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/net/tcp/tcp_shutdown.debug               tests-net-debug         debug,atf,rump
+./usr/libdata/debug/usr/tests/net/tcp/t_tcp_connect_port.debug         tests-net-debug         debug,atf,rump
 ./usr/libdata/debug/usr/tests/rump/modautoload/t_modautoload.debug     tests-syscall-debug     debug,atf,rump
 ./usr/libdata/debug/usr/tests/rump/rumpkern/h_client/h_forkcli.debug                   tests-syscall-debug     debug,atf,rump
 ./usr/libdata/debug/usr/tests/rump/rumpkern/h_client/h_reboot.debug                    tests-obsolete          obsolete
diff -r 379c446e34b8 -r bc53b0ffb654 distrib/sets/lists/tests/mi
--- a/distrib/sets/lists/tests/mi       Thu Nov 17 08:42:56 2022 +0000
+++ b/distrib/sets/lists/tests/mi       Thu Nov 17 08:45:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1231 2022/11/17 06:40:38 chs Exp $
+# $NetBSD: mi,v 1.1232 2022/11/17 08:45:35 ozaki-r Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -4204,6 +4204,13 @@
 ./usr/tests/net/if_wg/t_interoperability               tests-net-tests         atf,rump
 ./usr/tests/net/if_wg/t_misc                           tests-net-tests         atf,rump
 ./usr/tests/net/if_wg/t_tunnel                         tests-net-tests         atf,rump
+./usr/tests/net/inpcb                                  tests-net-tests         compattestfile,atf
+./usr/tests/net/inpcb/Atffile                          tests-net-tests         atf,rump
+./usr/tests/net/inpcb/Kyuafile                         tests-net-tests         atf,rump,kyua
+./usr/tests/net/inpcb/broadcast_bind                   tests-net-tests         atf,rump
+./usr/tests/net/inpcb/inpcb_bind                       tests-net-tests         atf,rump
+./usr/tests/net/inpcb/t_broadcast_bind                 tests-net-tests         atf,rump
+./usr/tests/net/inpcb/t_inpcb_bind                     tests-net-tests         atf,rump
 ./usr/tests/net/in_cksum                               tests-net-tests         compattestfile,atf
 ./usr/tests/net/in_cksum/Atffile                       tests-net-tests         compattestfile,atf
 ./usr/tests/net/in_cksum/Kyuafile                      tests-net-tests         compattestfile,atf,kyua
@@ -4264,6 +4271,7 @@
 ./usr/tests/net/net/t_pktinfo                          tests-net-tests         compattestfile,atf
 ./usr/tests/net/net/t_pktinfo_send                     tests-net-tests         atf,rump
 ./usr/tests/net/net/t_raw                              tests-net-tests         atf,rump
+./usr/tests/net/net/t_socket_afinet                    tests-net-tests         compattestfile,atf
 ./usr/tests/net/net/t_tcp                              tests-net-tests         compattestfile,atf
 ./usr/tests/net/net/t_udp                              tests-net-tests         compattestfile,atf
 ./usr/tests/net/net/t_unix                             tests-net-tests         compattestfile,atf
@@ -4291,6 +4299,7 @@
 ./usr/tests/net/tcp/Atffile                            tests-net-tests         atf,rump
 ./usr/tests/net/tcp/Kyuafile                           tests-net-tests         atf,rump,kyua
 ./usr/tests/net/tcp/tcp_shutdown                       tests-net-tests         atf,rump
+./usr/tests/net/tcp/t_tcp_connect_port                 tests-net-tests         atf,rump
 ./usr/tests/net/tcp/t_tcp_nc                           tests-net-tests         atf,rump
 ./usr/tests/net/tcp/t_tcp_shutdown                     tests-net-tests         atf,rump
 ./usr/tests/net/wireguard                              tests-obsolete          obsolete
diff -r 379c446e34b8 -r bc53b0ffb654 etc/mtree/NetBSD.dist.tests
--- a/etc/mtree/NetBSD.dist.tests       Thu Nov 17 08:42:56 2022 +0000
+++ b/etc/mtree/NetBSD.dist.tests       Thu Nov 17 08:45:35 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: NetBSD.dist.tests,v 1.195 2022/11/04 08:01:42 ozaki-r Exp $
+#      $NetBSD: NetBSD.dist.tests,v 1.196 2022/11/17 08:45:35 ozaki-r Exp $
 
 ./usr/libdata/debug/usr/tests
 ./usr/libdata/debug/usr/tests/atf
@@ -153,6 +153,7 @@
 ./usr/libdata/debug/usr/tests/net/if_tap
 ./usr/libdata/debug/usr/tests/net/if_vether
 ./usr/libdata/debug/usr/tests/net/if_vlan
+./usr/libdata/debug/usr/tests/net/inpcb
 ./usr/libdata/debug/usr/tests/net/in_cksum
 ./usr/libdata/debug/usr/tests/net/ipsec
 ./usr/libdata/debug/usr/tests/net/mcast
@@ -374,6 +375,7 @@
 ./usr/tests/net/if_vether
 ./usr/tests/net/if_vlan
 ./usr/tests/net/if_wg
+./usr/tests/net/inpcb
 ./usr/tests/net/in_cksum
 ./usr/tests/net/ipsec
 ./usr/tests/net/mcast
diff -r 379c446e34b8 -r bc53b0ffb654 tests/net/Makefile
--- a/tests/net/Makefile        Thu Nov 17 08:42:56 2022 +0000
+++ b/tests/net/Makefile        Thu Nov 17 08:45:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2022/11/02 09:37:56 ozaki-r Exp $
+# $NetBSD: Makefile,v 1.41 2022/11/17 08:45:35 ozaki-r Exp $
 
 .include <bsd.own.mk>
 
@@ -8,7 +8,7 @@
 .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
 TESTS_SUBDIRS+=                altq arp bpf bpfilter can carp icmp if if_bridge if_gif
 TESTS_SUBDIRS+=                if_ipsec if_l2tp if_lagg if_loop if_pppoe if_tap
-TESTS_SUBDIRS+=                if_tun if_vether if_vlan if_wg ipsec mcast mpls
+TESTS_SUBDIRS+=                if_tun if_vether if_vlan if_wg inpcb ipsec mcast mpls
 TESTS_SUBDIRS+=                ndp npf route tcp
 .if (${MKSLJIT} != "no")
 TESTS_SUBDIRS+=                bpfjit
diff -r 379c446e34b8 -r bc53b0ffb654 tests/net/inpcb/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/net/inpcb/Makefile  Thu Nov 17 08:45:35 2022 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2022/11/17 08:45:35 ozaki-r Exp $
+#
+
+.include <bsd.own.mk>
+
+TESTSDIR=      ${TESTSBASE}/net/inpcb
+
+.for name in inpcb_bind broadcast_bind
+TESTS_SH+=             t_${name}
+TESTS_SH_SRC_t_${name}=        ../net_common.sh t_${name}.sh
+.endfor
+
+PROGS=                 inpcb_bind
+MAN.inpcb_bind=        # empty
+BINDIR.inpcb_bind=     ${TESTSDIR}
+
+PROGS+=                        broadcast_bind
+MAN.broadcast_bind=    # empty
+BINDIR.broadcast_bind= ${TESTSDIR}
+
+.include <bsd.test.mk>
diff -r 379c446e34b8 -r bc53b0ffb654 tests/net/net/Makefile
--- a/tests/net/net/Makefile    Thu Nov 17 08:42:56 2022 +0000
+++ b/tests/net/net/Makefile    Thu Nov 17 08:45:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2020/09/08 14:13:50 christos Exp $
+# $NetBSD: Makefile,v 1.26 2022/11/17 08:45:36 ozaki-r Exp $
 #
 
 .include <bsd.own.mk>
@@ -11,6 +11,7 @@
 TESTS_C+=      t_tcp
 TESTS_C+=      t_udp
 TESTS_C+=      t_pktinfo
+TESTS_C+=      t_socket_afinet
 .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
 TESTS_C+=      t_pktinfo_send
 TESTS_C+=      t_raw
@@ -27,6 +28,8 @@
 LDADD.t_pktinfo_send+= ${LIBRUMPBASE}
 LDADD.t_raw+=  -lrumpnet_local -lrumpnet_netinet -lrumpnet_net
 LDADD.t_raw+=  -lrumpnet ${LIBRUMPBASE}
+LDADD.t_socket_afinet+=        -lrumpdev_bpf -lrumpdev -lrumpnet_netinet -lrumpnet_net
+LDADD.t_socket_afinet+=        -lrumpnet_local -lrumpnet ${LIBRUMPBASE}
 
 LDADD.t_mapped+=       -lutil
 
diff -r 379c446e34b8 -r bc53b0ffb654 tests/net/tcp/Makefile
--- a/tests/net/tcp/Makefile    Thu Nov 17 08:42:56 2022 +0000
+++ b/tests/net/tcp/Makefile    Thu Nov 17 08:45:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2022/11/04 08:01:42 ozaki-r Exp $
+# $NetBSD: Makefile,v 1.3 2022/11/17 08:45:36 ozaki-r Exp $
 #
 
 .include <bsd.own.mk>
@@ -14,4 +14,9 @@
 MAN.tcp_shutdown=      # empty
 BINDIR.tcp_shutdown=   ${TESTSDIR}
 
+TESTS_C=       t_tcp_connect_port
+
+LDADD.t_tcp_connect_port+=     -lrumpnet_netinet -lrumpnet_netinet6 -lrumpnet_net
+LDADD.t_tcp_connect_port+=     -lrumpnet_local -lrumpnet ${LIBRUMPBASE}
+
 .include <bsd.test.mk>



Home | Main Index | Thread Index | Old Index