Commit Graph

718 Commits

Author SHA1 Message Date
yamaguchi 6aa7c5ec4b lagg(4) test: Fix typo and old comment 2024-04-05 07:04:17 +00:00
yamaguchi 63162a40fe Added the test for vlan over l2tp 2023-11-02 09:50:50 +00:00
yamaguchi e8037d3f57 Update the test case for MTU of lag to adapt new behavior 2023-10-18 06:41:00 +00:00
yamaguchi ca0a5f7dd4 Make the lagg interface up before change its MTU
This change is related to PR kern/57650
2023-10-16 07:57:40 +00:00
knakahara 4743d3462c Update for sys/net/if_ipsec.c:r1.35 2023-09-27 08:48:01 +00:00
gson d9ed1423c3 Don't expect the net/carp/t_basic/carp_handover_ipv6_halt_nocarpdevip
and carp_handover_ipv6_ifdown_nocarpdevip test cases to fail.  At
least on the TNF i386 and amd64 testbeds, they pass more often than
not since the commit of src/sys/netinet/ip_carp.c 1.119 by mlelstv on
2023.04.07.06.44.08.
2023-09-19 11:55:14 +00:00
rin 9b45ffed94 t_ipsec_{gif,l2tp}: Adjust for tcpdump 4.99.4
It does not longer output redundant `` (ipip-proto-4)'':
cba9b77a98

Now, these tests become passing again.

Thanks mlelstv@ for finding out upstream commit.
OK ozaki-r@
2023-08-22 05:40:50 +00:00
riastradh d493b3c627 tests/net/inpcb: Tests require root. 2023-08-05 13:25:26 +00:00
riastradh 5b1bee9cea tests/net/net/t_bind: IP_BINDANY and IPV6_BINDANY require root. 2023-08-05 13:22:49 +00:00
knakahara 8d5cb09c67 Repair test coverage. I revert by proxy as the committer seems too busy to even reply mail.
TODO:
Provide some way for small machines to run subset test so that they get
shorter run time at the expense of test coverage.
2023-06-19 08:28:09 +00:00
chs 3f4a55cf50 The ATF design is O(N^2) in the number of TCs in one TP, which on some
slower platforms causes the net/ipsec tests to take as much as 30% of
the total time to run all of the ATF tests.  Reduce the number of TCs
in various net/ipsec TPs by iterating over *_ALGORITHMS_MINIMUM rather
than *_ALGORITHMS.  Various of the net/ipsec tests already use the
smaller lists, so change the rest of them to do so as well.
2023-06-04 22:18:47 +00:00
andvar e7745f3aff s/thar/that/ in comments. 2023-05-21 18:01:38 +00:00
andvar 95f94af301 fix various typos in documentation, comments and sysctl device description.
mainly aion -> ation and inlude -> include.
2023-03-26 19:10:32 +00:00
ozaki-r 9ac30c6562 tests: fix Makefile and lists for MKRUMP=no
Pointed out by Michael Scholz, thanks.
2022-12-01 04:24:37 +00:00
ozaki-r 2c37112bef tests: restore a line removed accidentally 2022-11-30 07:48:43 +00:00
ozaki-r efcd8443e2 tests: build and install t_ip_reass.c 2022-11-30 06:07:51 +00:00
ozaki-r 67a880e0c1 tests: tweak t_ip_reass.c for NetBSD
The test is modified to run on rump kernels.
2022-11-30 06:06:36 +00:00
ozaki-r 34f02c31eb tests: import ip_reass_test.c from FreeBSD as t_ip_reass.c
As of:
	commit 9ed1e4ecd4e9eb3bde16f52a937a6fa86a971638
	Author: Mark Johnston <markj@FreeBSD.org>
	Date:   Tue Nov 20 18:13:18 2018 +0000

	    Plug a trivial memory leak.

	    CID:            1396911
	    MFC with:       r340485
2022-11-30 06:05:58 +00:00
knakahara d432a9d987 Add ATF for unnumbered interfaces. 2022-11-25 08:43:15 +00:00
knakahara 708e59eb6f clean up 2022-11-24 02:58:28 +00:00
ozaki-r a97d0b3002 tests: build and install added test files 2022-11-17 08:45:35 +00:00
ozaki-r 86fd57d8dd tests: add t_broadcast_bind.sh 2022-11-17 08:42:56 +00:00
ozaki-r eedb766f76 tests: tweak broadcast_bind.c for NetBSD 2022-11-17 08:42:06 +00:00
ozaki-r a86cd60e5f tests: import broadcast_bind.c from OpenBSD
As of $OpenBSD: broadcast_bind.c,v 1.2 2015/12/02 20:45:00 mpi Exp $
2022-11-17 08:41:16 +00:00
ozaki-r 3eb71caadc tests: add t_inpcb_bind.sh 2022-11-17 08:40:23 +00:00
ozaki-r ae0059cb30 tests: make inpcb_bind.c buildable 2022-11-17 08:38:58 +00:00
ozaki-r 0fca6c426e tests: import in_pcbbind/runtest.c from OpenBSD as inpcb_bind.c
As of $OpenBSD: runtest.c,v 1.7 2022/04/10 14:08:35 claudio Exp $
2022-11-17 08:38:08 +00:00
ozaki-r 87c661b6f4 tests: make t_tcp_connect_port.c run on rump kernel 2022-11-17 08:36:54 +00:00
ozaki-r ed458f0ba0 tests: import tcp_connect_port_test.c from FreeBSD as t_tcp_connect_port.c
As of:
	commit 36c52a52eecf1ed0232f9e138564009a85de76c2
	Author: Jonathan T. Looney <jtl@FreeBSD.org>
	Date:   Sat Nov 14 15:44:28 2020 +0000

	    Add a regression test for the port-selection behavior fixed in r367680.
2022-11-17 08:36:00 +00:00
ozaki-r 652168dc16 tests: make t_socket_afinet.c run on rump kernel 2022-11-17 08:34:39 +00:00
ozaki-r 7b795c7b93 tests: import socket_afinet.c from FreeBSD as t_socket_afinet.c
As of:
	commit 3aaaa2efde896e19d229ee2cf09fe7e6ab0fbf6e
	Author: Thomas Munro <tmunro@FreeBSD.org>
	Date:   Wed Apr 28 21:31:38 2021 +1200

	    poll(2): Add POLLRDHUP.
2022-11-17 08:33:27 +00:00
knakahara 9d1cf4af54 Add test for sys/netipsec/ipsec.c:r1.176. 2022-11-09 08:21:20 +00:00
ozaki-r 3df6c9b812 tests: add tests for invalid extra operations on a shutdown socket
The tests cover some error paths that normally happen.
2022-11-04 08:01:42 +00:00
ozaki-r c3619612ae tests: add tests for TCP with nc 2022-11-02 09:37:56 +00:00
ozaki-r a18735eded tests: enable start_nc_server to have extra options for nc 2022-11-02 09:35:12 +00:00
knakahara ae6e8d4c4e Add test for sadb_x_policy->sadb_x_policy_flags. 2022-10-11 09:55:21 +00:00
knakahara 34a1a4b9aa tests: add tests for automatic route deletions on an address removal 2022-09-20 02:25:07 +00:00
rillig 6c259f3957 fix misspellings of 'available' and nearby typos 2022-09-10 12:14:17 +00:00
martin d9e5a99cb7 PR 56879: bump timeout for the wg_malformed test to 100 seconds,
as suggested by Tom Lane - the test takes ~32 seconds on my unloaded sh4
machine.
2022-06-13 07:59:15 +00:00
yamaguchi 1c5c194e31 Add tests for MTU of lagg(4) 2022-03-31 03:26:33 +00:00
yamaguchi 9f8c3479a0 Added waiting for distributing state after attaching vlan
A lagg interface is reset on attaching vlan to enable
ETHERCAP_VLAN_MTU if the lagg I/F has it. Therefore,
it is necessary to wait for distributing.
2022-03-31 03:09:03 +00:00
andvar 000f65416a s/udpate/update/ 2022-01-07 22:59:32 +00:00
ozaki-r a349629228 tests: skip ndp_cache_state on qemu 2022-01-07 03:07:41 +00:00
msaitoh 14b13206bb s/encript/encrypt/ in comment. 2021-12-05 02:49:21 +00:00
gson 0d1c554f2b The wg_handshake_timeout test case was failing because it contained
atf_fail "failed to trigger PR kern/56252" without a corresponding
atf_expect_fail "PR kern/56252", which makes no sense.  Since the
test case does occasionally fail on real hardware, fix this by adding
the atf_expect_fail rather than by removing the atf_fail.
2021-11-26 20:02:35 +00:00
gson 6dc8853fd6 Delete trailing whitespace 2021-11-26 15:45:52 +00:00
hannken 36c3dfccee Consistently use "drvctl -l qemufwcfg0" to check if
running under qemu in general.
2021-11-25 14:17:22 +00:00
rin 3353f76b9d Fix (a kind of) violation of strict aliasing rule.
Due to the rule, "sin" and "sin6" can be treated as restrict pointers.
Compilers seem to be confused by structure copy for those pointed by
them before assignments.

For aarch64eb, GCC 9 and 10 compile t_tcp.c rev 1.11 into a code, where
fetch for "sin6->sin6_port" is preceding the structure copy "ss = bs".
This results in failure of connect(2) with EADDRNOOTAVAIL.
2021-11-08 10:57:09 +00:00
yamaguchi 84c7f50d5d Added tests for lagg(4) about MAC addresses 2021-11-08 06:24:11 +00:00
yamaguchi 4763054d94 Added tests of combination of lagg(4), vlan(4), and l2tp(4) 2021-11-02 01:57:16 +00:00