Commit Graph

5918 Commits

Author SHA1 Message Date
blymn c6e199d915 Update check files due to reversion of a libcurses change. 2022-12-05 21:15:07 +00:00
jschauma de630815c5 allow testing of files other than those in /etc
To test e.g., the file "/some/where/protocols" instead of "/etc/protocols",
set TEST_FILE=/some/where/protocols in your environment.

Note: this now compares the contents of the file you gave versus what
getprotoent(3)/getservent(3) uses (which still is /etc/protocols via
h_protoent.c / /etc/services or /var/db/services.cdb via h_servent.c).

When you have expected changes in the services or protocols file that
you're generating, this necessarily produces a difference.  To really
allow testing the file versus what the library function returns, you'd
have to install the file on the system running the test, but at least
with this change you can now generate the file and verify that it didn't
caused unexpected differences.
2022-12-04 02:53:17 +00:00
jschauma 76292795b2 whitespace 2022-12-04 02:42:39 +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
martin 062f53e0d1 Avoid explicitly naming the raw part device with a partition letter - use
the non-partition letter variant instead.
2022-11-30 17:49:59 +00:00
martin 8693f01d5f Unfortunately rump does not provide the same magic as MAKEDEV does
for native /dev and create an alias for disk devices w/o partition
latter pointing at the raw partition, so for rump based tests we
actually have to calculate the concrete device name.

Use an idiom suggested by kre for this which also works for ports that
have kern.rawpartition > 4.
2022-11-30 17:49:09 +00:00
ozaki-r 2c37112bef tests: restore a line removed accidentally 2022-11-30 07:48:43 +00:00
martin 2e1faf8f64 Simplify: avoid use of the explicit raw partition, MAKDEV does
all the needed magic for us already. Pointed out by kre
2022-11-30 07:20:36 +00:00
blymn 731bbb483f Update the check files due to bug fix in libcurses. 2022-11-30 06:20:17 +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
martin e04aecab2f Avoid dependence on details of the MD synthesized disklabel for
the vnd after mounting the single filesystem image.
2022-11-29 20:06:24 +00:00
jschauma 0adaf508e8 whoops, we don't want an extra space here
(erroneously introduced in my previous commit)
2022-11-28 17:41:00 +00:00
jschauma a8b3b3348f whitespace 2022-11-28 17:09:52 +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
christos 902698381c fix vax 2022-11-23 18:18:57 +00:00
rin 867b834377 Sync style between Lua script and C source code.
Fix false positive for some tests.
2022-11-22 15:57:03 +00:00
christos ae082add65 lua libm API from Phil Rulon 2022-11-21 22:01:32 +00:00
martin f202639d6b vnconfig is used in this tests, so require user root. 2022-11-21 19:07:36 +00:00
kre c01cab9c1c Adapt to recent gpt(8) change which now issues a message when
the secondary GPT header is moved.   Do it this way rather than
just using -q to suppress the message, so the test verifies that
the appropriate action was taken.
2022-11-21 16:06:00 +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
chs 87ba0e2a31 Restore backward compatibility of UFS2 with previous NetBSD releases by
disabling support in UFS2 for extended attributes (including ACLs).
Add a new variant of UFS2 called "UFS2ea" that does support extended attributes.
Add new	fsck_ffs operations "-c	ea" and	"-c no-ea" to convert file systems
from UFS2 to UFS2ea and	vice-versa (both of which delete all existing extended
attributes in the process).
2022-11-17 06:40:38 +00:00
blymn a90239df44 Uncomment the waddstr call that was returning ERR, this is actually
correct so make the expected return ERR then repeat the call with
scrollok set to true to validate.

Do refreshes on the window instead of stdscr so we get the window
contents reported and update the check files with the expected
output.
2022-11-10 06:13:29 +00:00
knakahara 9d1cf4af54 Add test for sys/netipsec/ipsec.c:r1.176. 2022-11-09 08:21:20 +00:00
blymn ea7ddd486e * Uncomment the slk_wset test which was previously commented out due
to incorrect output as this bug has been fixed.
* Added a check file to verify the slk_wset output.
2022-11-08 06:06:54 +00:00
msaitoh 175c89d22f Sync with if_dl.h rev. 1.31's change. 2022-11-07 08:34:30 +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
blymn a3f4239604 Update check files to allow for changes due to fixes to libcurses. 2022-11-04 06:17:58 +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
msaitoh 838c32b638 Revert for if_dl.h's change. 2022-10-27 12:59:59 +00:00
msaitoh 5b130b9d06 Sync with if_dl.h rev. 1.29's change. 2022-10-24 13:42:55 +00:00
blymn 7adc35708b Updates to account for changes resulting from fixes to libcurses. 2022-10-19 06:10:43 +00:00
rillig ce87d2e53b tests/lint: add more examples for 'extra bits set to 0'
Seen in sys/external/bsd/compiler_rt/dist/lib/builtins/fp_lib.h:88.
2022-10-15 21:19:15 +00:00
knakahara ae6e8d4c4e Add test for sadb_x_policy->sadb_x_policy_flags. 2022-10-11 09:55:21 +00:00
ryo f5b5fa5b34 add tests for PR/57046. 2022-10-06 06:05:31 +00:00
rillig 55d487c96b lint: miscellaneous cleanup
No functional change.
2022-10-01 10:04:06 +00:00
rillig bb8d02713c lint: add hyphen to adjective 'old-style' 2022-10-01 09:42:40 +00:00