NetBSD/tests
ad 2ddceed1d9 Hopefully fix some problems seen with MP support on non-x86, in particular
where curcpu() is defined as curlwp->l_cpu:

- mi_switch(): undo the ~2007ish optimisation to unlock curlwp before
  calling cpu_switchto().  It's not safe to let other actors mess with the
  LWP (in particular l->l_cpu) while it's still context switching.  This
  removes l->l_ctxswtch.

- Move the LP_RUNNING flag into l->l_flag and rename to LW_RUNNING since
  it's now covered by the LWP's lock.

- Ditch lwp_exit_switchaway() and just call mi_switch() instead.  Everything
  is in cache anyway so it wasn't buying much by trying to avoid saving old
  state.  This means cpu_switchto() will never be called with prevlwp ==
  NULL.

- Remove some KERNEL_LOCK handling which hasn't been needed for years.
2020-01-08 17:38:41 +00:00
..
bin Avoid symbol clashes in bin/df under MKSANITIZER 2019-08-15 08:24:11 +00:00
crypto Add HMAC-SHA-{256,384,512} test cases. 2019-12-03 04:20:45 +00:00
dev Gracefully skip test if not enough space in temporary directory. 2019-07-10 06:21:40 +00:00
fs introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
games
include Adapt <sys/pslist.h> to use atomic_load/store_*. 2019-12-01 15:28:19 +00:00
ipf
kernel opening a symlink with O_NOFOLLOW is expected to fail. 2019-10-20 16:02:11 +00:00
lib Add tests for reading registers from x86 core dumps 2020-01-08 17:23:34 +00:00
libexec return return atf_no_error() instead of 0 for consistency. 2019-07-09 16:24:01 +00:00
modules Drop no longer needed macros KCOV_STORE() KCOV_LOAD() in kcov(4) 2019-05-26 01:44:34 +00:00
net atf: add test cases for MTU that is increased on SIOCSETVLAN 2019-11-11 02:40:48 +00:00
rump Hopefully fix some problems seen with MP support on non-x86, in particular 2020-01-08 17:38:41 +00:00
sbin Make most of the resize_ffs tests skip if PUFFS is not configured 2017-10-08 21:12:27 +00:00
share
sys Fixed issues with uvm_page_physunload_delete_end test case. 2019-01-16 13:54:17 +00:00
usr.bin Add a missing ("quoting") '>' in an atf_fail error message string. 2019-11-12 18:59:51 +00:00
usr.sbin Get rid of all the -lrumpdev and -lrumpvfs that are no longer needed 2019-05-13 17:55:07 +00:00
Makefile Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
Makefile.inc
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.