summaryrefslogtreecommitdiff
path: root/tests/net
AgeCommit message (Collapse)Author
2023-06-19Repair test coverage. I revert by proxy as the committer seems too busy to ↵knakahara
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-04The ATF design is O(N^2) in the number of TCs in one TP, which on somechs
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-05-21s/thar/that/ in comments.andvar
2023-03-26fix various typos in documentation, comments and sysctl device description.andvar
mainly aion -> ation and inlude -> include.
2022-12-01tests: fix Makefile and lists for MKRUMP=noozaki-r
Pointed out by Michael Scholz, thanks.
2022-11-30tests: restore a line removed accidentallyozaki-r
2022-11-30tests: build and install t_ip_reass.cozaki-r
2022-11-30tests: tweak t_ip_reass.c for NetBSDozaki-r
The test is modified to run on rump kernels.
2022-11-30tests: import ip_reass_test.c from FreeBSD as t_ip_reass.cozaki-r
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-25Add ATF for unnumbered interfaces.knakahara
2022-11-24clean upknakahara
2022-11-17tests: build and install added test filesozaki-r
2022-11-17tests: add t_broadcast_bind.shozaki-r
2022-11-17tests: tweak broadcast_bind.c for NetBSDozaki-r
2022-11-17tests: import broadcast_bind.c from OpenBSDozaki-r
As of $OpenBSD: broadcast_bind.c,v 1.2 2015/12/02 20:45:00 mpi Exp $
2022-11-17tests: add t_inpcb_bind.shozaki-r
2022-11-17tests: make inpcb_bind.c buildableozaki-r
2022-11-17tests: import in_pcbbind/runtest.c from OpenBSD as inpcb_bind.cozaki-r
As of $OpenBSD: runtest.c,v 1.7 2022/04/10 14:08:35 claudio Exp $
2022-11-17tests: make t_tcp_connect_port.c run on rump kernelozaki-r
2022-11-17tests: import tcp_connect_port_test.c from FreeBSD as t_tcp_connect_port.cozaki-r
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-17tests: make t_socket_afinet.c run on rump kernelozaki-r
2022-11-17tests: import socket_afinet.c from FreeBSD as t_socket_afinet.cozaki-r
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-09Add test for sys/netipsec/ipsec.c:r1.176.knakahara
2022-11-04tests: add tests for invalid extra operations on a shutdown socketozaki-r
The tests cover some error paths that normally happen.
2022-11-02tests: add tests for TCP with ncozaki-r
2022-11-02tests: enable start_nc_server to have extra options for ncozaki-r
2022-10-11Add test for sadb_x_policy->sadb_x_policy_flags.knakahara
2022-09-20tests: add tests for automatic route deletions on an address removalknakahara
2022-09-10fix misspellings of 'available' and nearby typosrillig
2022-06-13PR 56879: bump timeout for the wg_malformed test to 100 seconds,martin
as suggested by Tom Lane - the test takes ~32 seconds on my unloaded sh4 machine.
2022-03-31Add tests for MTU of lagg(4)yamaguchi
2022-03-31Added waiting for distributing state after attaching vlanyamaguchi
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-01-07s/udpate/update/andvar
2022-01-07tests: skip ndp_cache_state on qemuozaki-r
2021-12-05s/encript/encrypt/ in comment.msaitoh
2021-11-26The wg_handshake_timeout test case was failing because it containedgson
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-26Delete trailing whitespacegson
2021-11-25Consistently use "drvctl -l qemufwcfg0" to check ifhannken
running under qemu in general.
2021-11-08Fix (a kind of) violation of strict aliasing rule.rin
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-08Added tests for lagg(4) about MAC addressesyamaguchi
2021-11-02Added tests of combination of lagg(4), vlan(4), and l2tp(4)yamaguchi
2021-11-02Use IPv6 addresses, not IPv4, in combination test of IPv6, lagg and vlanyamaguchi
2021-10-19added test cases for lagg(4) on l2tp(4)yamaguchi
2021-08-20fix various typos in comments and log messages.andvar
2021-08-19Added description of licenseyamaguchi
2021-08-19Make the test program run in background after doing BIOCPROMISCyamaguchi
t_vlan has rarely failed by checking IFF_PROMISC before the test program do BIOCPROMISC. To solve this, BIOCPROMISC is done in the foreground. fixes PR/56357
2021-08-17fix multiplei repetitive typos in comments, messages and documentation. ↵andvar
mainly because copy paste code big amount of files are affected.
2021-08-08introduce a SOL_LOCAL for unix-domain socket level socket optionsnia
as an alias of the current 0 used for these options, as in FreeBSD. reviewed by many.
2021-07-16tests, altq: fix checks of altqd startupozaki-r
Hopefully the fix stabilizes test results on qemu/anita.
2021-07-14vlan: Added missing $HIJACKING before brconfigyamaguchi