NetBSD/tests
riastradh 1cac5d57e4 certctl(8): Avoid clobbering prepopulated /etc/openssl/certs.
Also avoid clobbering some other edge cases like symlinks or
non-directories there.

This way, we have the following transitions on system updates:

- If /etc/openssl/certs is empty (as in default NetBSD<10 installs):
  quietly populated on rehash.

- If /etc/openssl/certs is nonempty (you've added things to it,
  e.g. by hand or with mozilla-rootcerts) and has never been managed
  by certctl(8): left alone on rehash, with an error message to
  explain what you need to do.

- If /etc/openssl/certs has been managed by certctl(8): quietly
  updated on rehash.

Note: This means current installations made since certctl(8) was
added will be treated like /etc/openssl/certs is nonempty and has
never been managed by certctl(8).  To work around this, you can just
delete /etc/openssl/certs and rerun `certctl rehash'.
2023-08-28 22:25:49 +00:00
..
bin Fix building the debugging tarball of the directory tree created for 2023-05-11 10:08:34 +00:00
compat tests/compat/linux: fix typo in comment 2023-08-23 20:05:05 +00:00
crypto Remove PROGDPLIBSSTATIC from ec and threads; dh still needs it because it 2023-08-22 17:27:48 +00:00
dev audiotest: Appease GCC 12.3.0 -Wmisleading-indentation 2023-08-03 08:36:38 +00:00
fs fix typos in comments and one definition, mainly s/sucket/socket/. 2023-08-03 20:45:49 +00:00
games
include tests/include/t_paths: Test all paths, nonfatally. 2023-08-05 12:11:05 +00:00
ipf s/endianess/endianness/ 2021-11-10 17:19:29 +00:00
kernel memfd(2): Run all tests; don't stop after the first failure. 2023-08-05 08:05:16 +00:00
lib t_ptrace_core_wait.h: Increment PC after trap, also for riscv 2023-08-24 05:55:25 +00:00
libexec ld.elf_so: Add some known-answer tests for hash functions. 2023-07-30 09:22:02 +00:00
modules delete attribution per request of contributor 2023-03-01 21:06:41 +00:00
net t_ipsec_{gif,l2tp}: Adjust for tcpdump 4.99.4 2023-08-22 05:40:50 +00:00
rump workqueue(9) tests: Fix mistake in rev. 1.9. 2023-08-10 22:20:20 +00:00
sbin PR 57284: rewrite test to extract all temperaturs from all local sensors 2023-03-23 11:32:49 +00:00
share
sys introduce new GCC 12 warning disables and use them in a few places 2023-08-08 06:27:31 +00:00
usr.bin lint: make diagnostics about ANSI C more international 2023-08-26 10:43:53 +00:00
usr.sbin certctl(8): Avoid clobbering prepopulated /etc/openssl/certs. 2023-08-28 22:25:49 +00:00
Makefile Tests for the compat_linux inotify framework from GSoC 2023 (Theodore Preduta) 2023-08-19 22:56:43 +00:00
Makefile.inc tests: trim down the list of LIBRUMPBASE libraries 2023-04-24 20:35:49 +00:00
README
h_macros.h

README

$NetBSD: README,v 1.4 2012/05/18 15:36:21 jruoho Exp $

When adding new tests, please try to follow the following conventions.

1. For library routines, including system calls, the directory structure of
   the tests should follow the directory structure of the real source tree.
   For instance, interfaces available via the C library should follow:

	src/lib/libc/gen -> src/tests/lib/libc/gen
	src/lib/libc/sys -> src/tests/lib/libc/sys
	...

2. Equivalently, all tests for userland utilities should try to follow their
   location in the source tree. If this can not be satisfied, the tests for
   a utility should be located under the directory to which the utility is
   installed. Thus, a test for env(1) should go to src/tests/usr.bin/env.
   Likewise, a test for tcpdump(8) should be in src/tests/usr.sbin/tcpdump,
   even though the source code for the program is located under src/external.

3. Otherwise use your own discretion.