History log of /src/etc/mtree/NetBSD.dist.tests
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.211 06-Oct-2025 riastradh

libpthread: Test pthread stubs in threaded vs non-threaded programs.

PR lib/59685: libcrypto should not depend on libpthread


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.210 18-Jan-2025 rillig

tests/gcov: demonstrate wrong coverage report after vfork/exec

Discovered in usr.bin/make, function Cmd_Exec.

The coverage test I ran on 2024-07-13 was still good. I don't remember
the exact version of NetBSD-current I was running back then.

With NetBSD-current from 2025-01-17, gcov does not report full coverage
data after a vfork/exec call. Running the test program inside ktrace
shows that after a vfork call, the child process writes its coverage data
back, probably right before the exec call, but the parent process
doesn't.

Running a child process through system(3) is not affected; there,
posix_spawn is used instead of vfork/exec.


# 1.209 18-Oct-2024 christos

Add makefs test


# 1.208 12-Oct-2024 riastradh

ftp(1): Add test for custom HTTP header fields.

Based on a patch from Sunil Nimmagadda <sunil@nimmagadda.net>.

PR bin/58581: ftp(1) should allow specifying header fields in http
requests


# 1.207 02-Sep-2024 ozaki-r

distrib, etc: install shmif_pcapin and its tests


# 1.206 20-Aug-2024 ozaki-r

tests: add tests for shmif

The test file is placed under tests/net, not tests/rump/rumpnet,
to leverage utility functions provided for tests in there.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.205 28-Apr-2024 rillig

branches: 1.205.2;
tests/cd9660: replace compressed blob with readable hexdump

This test is skipped in most circumstances because it creates a file
whose apparent size is 4.5 GB. It's an ISO 9660 image though,
containing mostly null bytes. Nevertheless, tmpfs doesn't allow such a
big file to be created, so this test is skipped in settings where /tmp
is on a tmpfs.

If the test is run, the ISO image is uncompressed, which takes several
minutes. Replace bzip2 with direct file creation from a hex dump of
that disk image, which is easier to inspect manually and also faster by
about 3 magnitudes.


# 1.204 28-Apr-2024 riastradh

libstdc++: Add test for PR lib/58206, sync_with_stdio busted.


# 1.203 14-Mar-2024 rillig

tests/stat: test the left-aligned and right-aligned 'S' format


# 1.202 25-Jan-2024 riastradh

mtree(8): Test the installed sets.

Except etc and xetc, which likely won't match for reasons that aren't
great, like etc including empty log files which in an installed
system have probably changed.

This test will probably fail, but we should make sure it doesn't!

PR misc/57877


# 1.201 26-Aug-2023 rillig

tests/usr.bin/error: add basic tests for several error message styles


# 1.200 26-Aug-2023 riastradh

certctl(8): New tool for managing OpenSSL CA certificates.

Same command-line syntax as FreeBSD, clearer semantics about which
parts are config and which parts are cache.


# 1.199 20-Aug-2023 riastradh

etc/mtree/NetBSD.dist.tests: Update for new compat linux tests.


# 1.198 15-Jan-2023 rillig

tests/lint: add basic tests for lint (not lint1 or lint2)


Revision tags: netbsd-10-base
# 1.197 21-Nov-2022 christos

branches: 1.197.2;
lua libm API from Phil Rulon


# 1.196 17-Nov-2022 ozaki-r

tests: build and install added test files


# 1.195 04-Nov-2022 ozaki-r

tests: add tests for invalid extra operations on a shutdown socket

The tests cover some error paths that normally happen.


# 1.194 02-Nov-2022 ozaki-r

tests: add tests for TCP with nc


# 1.193 21-Jul-2022 kre

Add ATF tests for realpath(1)

Note that realpath can act differently for root than for other users
(where an ordinary user will see EACCESS root just barrels right through).

The tests adapt themselves, when run as root, less error cases can be
tested than when run as some other user.


# 1.192 22-May-2022 rillig

tests/compress: demonstrate truncation of target file

Reported by Giorgos Keramidas in PR#19722.


# 1.191 29-Apr-2022 pgoyette

Add a new test for PR kern/56713 and set to expected_failure for now.


# 1.190 08-Apr-2022 riastradh

membar_ops(3): Add some automatic tests.

These tests run two threads for five seconds each to try to trigger
races in the event of broken memory barriers. They run only on
machines with at least two CPUs; on uniprocessor systems there's no
point -- the membars can correctly just be (instruction barrier)
no-ops.


# 1.189 08-Apr-2022 riastradh

etc: Sort NetBSD.dist.tests.


# 1.188 29-Aug-2021 christos

Inetd enhancements by James Browning, Gabe Coffland, Alex Gavin, Solomon Ritzow
Described in:
https://www.mail-archive.com/tech-userlevel@netbsd.org/msg03114.html
And developed in:
https://github.com/ritzow/src/pull/1

From their notes:

All new functionality should be explained by the updated manpage.

The manpage has been refactored a bit: A new section "Directives"
has been added and the information about default hostnames and
IPsec directives has been moved there, and the new file include
directive information is also there.

getconfigent has the most major changes. A newline is no longer
read immediately, but is called only by a "goto more" (inside an
if(false) block). This allows multiple definitions or directives
to exist on a single line for anything that doesn't terminate using
a newline. This means a key-values service definition can be followed
by another key-values service definition, a positional definition,
or an ipsec, hostname, or .include directive on the same line.

memset is no longer used explicitly to clear the servtab structure,
a function init_servtab() is used instead, which uses a C struct
initializer.

The servtab se_group field is its own allocation now, and not just
a pointer into the user:group string.

Refactored some stuff out of getconfigent to separate functions
for use by parse_v2.c. These functions in inetd.c are named with
the form parse_*()

parse_v2.c only has code for parsing a key-values service definition
into a provided servtab. It should not have anything that affects
global state other than line and line_number.

Some function prototypes, structures, and #defines have been moved
from inetd.c to inetd.h.

The function config_root replaces config as the function called on
a config file load/reload. The code removed from the end of
config(void) is now called in config_root, so it is not run on each
recursive config call.

setconfig(void) was removed and its code added into config_root
because that is the only place it is called, and redundant checks
for non-null globals were removed because they are always freed by
endconfig. The fseek code was also removed because the config files
are always closed by endconfig.

Rate limiting code was updated to add a per-service per-IP rate
limiting form. Some of that code was refactored out of other places
into functions with names in the form rl_*()

We have not added any of the license or version information to the
new files parse_v2.c, parse_v2.h, and inetd.h and we have not
updated the license or version info for inetd.c.

Security related:

The behavior when reading invalid IPsec strings has changed. Inetd
no longer exits, it quits reading the current config file instead.
Could this impact program security?

We have not checked for memory leaks. Solomon tried to use dmalloc
without success. getconfigent seemed to have a memory leak at each
"goto more". It seems like inetd has never free'd allocated strings
when throwing away erroneous service definitions during parsing
(i.e. when "goto more" is called when parsing fields). OpenBSD's
version calls freeconfig on "goto more"
(https://github.com/openbsd/src/blob/c5eae130d6c937080c3d30d124e8c8b86db7d625/usr.sbin/inetd/inetd.c#L1049)
but NetBSD only calls it when service definitions are no longer
needed. This has been fixed. freeconfig is called immediately before
any "goto more". There shouldn't be any time when a servtab is in
an invalid state where freeconfig would break.


# 1.187 12-Aug-2021 martin

Add directory for new mkdep test binaries


# 1.186 05-Aug-2021 rillig

tests/lint: add test skeletons for messages from lint2


# 1.185 14-Jul-2021 ozaki-r

tests: add tests for ALTQ CBQ


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.184 17-May-2021 yamaguchi

Add a new link-aggregation pseudo interface named lagg(4)

- FreeBSD's lagg(4) based implementation
- MP-safe and MP-scalable


Revision tags: cjep_staticlib_x-base
# 1.183 12-Dec-2020 pgoyette

branches: 1.183.2;
Add directory entry for new libossaudio test


# 1.182 01-Nov-2020 christos

Add col tests


# 1.181 15-Oct-2020 mgorny

Add tests for process_xmm_to_s87() and process_s87_to_xmm()


# 1.180 30-Sep-2020 roy

Add if_tap directory for DEBUG builds.


# 1.179 30-Sep-2020 martin

Revert previous - test is a shell script, no debug info installed


# 1.178 30-Sep-2020 martin

Add if_vether debug dir


# 1.177 30-Sep-2020 mrg

add missing new if_vether subdir.


# 1.176 26-Aug-2020 riastradh

Clarify wg(4)'s relation to WireGuard, pending further discussion.

Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c. This just
clarifies the current state of affairs as it exists in the development
tree for now.

Mark the man page EXPERIMENTAL for extra clarity.


# 1.175 20-Aug-2020 riastradh

[ozaki-r] Add wg files


# 1.174 26-Jul-2020 riastradh

Add /usr/tests/sys/crypto/chacha to etc/mtree/NetBSD.dist.tests.


# 1.173 03-Jul-2020 jruoho

Add a check for PR bin/54692.


# 1.172 03-Jul-2020 jruoho

Add a check for the overflow noted in PR lib/46542.


# 1.171 30-Jun-2020 riastradh

New test sys/crypto/aes/t_aes.

Runs aes_selftest on all kernel AES implementations supported on the
current hardware, not just the preferred one.


# 1.170 30-Jun-2020 jruoho

Check that DTrace's execsnoop and opensnoop work (cf. PR kern/53417).


# 1.169 27-Jun-2020 jruoho

Add a test case for PR kern/53767.


# 1.168 25-Jun-2020 jruoho

Verify that PR kern/52150 is no longer present.


# 1.167 25-Jun-2020 jruoho

Add a test case for PR kern/53410.


# 1.166 24-Jun-2020 jruoho

Check that fstat(1) works (cf. PR kern/55407).


# 1.165 24-Jun-2020 jruoho

Add a few checks for stdethers(8) and stdhosts(8).


# 1.164 24-Jun-2020 jruoho

Add few basic tests for cpuctl(8). These cover PR kern/45117 and PR bin/54220.
Though, the former is not explicitly tested as it hangs the system.


# 1.163 24-Jun-2020 jruoho

Add a test case for bin/54620.


Revision tags: phil-wifi-20200421
# 1.162 19-Apr-2020 maxv

Add tests for USER_LDT.


Revision tags: phil-wifi-20200411 phil-wifi-20200406
# 1.161 08-Mar-2020 mgorny

Add tests for missing libc catalog entries


Revision tags: is-mlppp-base
# 1.160 17-Jan-2020 christos

Add more test directories


Revision tags: phil-wifi-20191119
# 1.159 05-Oct-2019 jhigh

adding full scheme comparison to libcrypt:crypt and pwhash tests


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.158 04-Apr-2019 kamil

branches: 1.158.2;
Register ./usr/tests/usr.bin/indent


# 1.157 04-Apr-2019 kamil

Sort ./usr/tests/usr.bin/netpgpverify


# 1.156 18-Feb-2019 rin

Belatedly add debugging symbols for t_atomic_*.


# 1.155 17-Feb-2019 isaki

Add ATF tests for atomic_ops(3).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.154 23-Dec-2018 jakllsch

Add /usr/tests/lib/libnvmm and related debug paths to the directory list.


Revision tags: pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.153 05-Sep-2018 kre

Add ATF tests for printf(1)

Two new test programs, one for the version of printf in /bin/sh
and one for the command /usr/bin/printf (t_builtin and t_command)

Each test program has 28 test cases (the same in each) of which
currently 27 pass, and 1 is skipped.

See the test scripts themselves for more information.


# 1.152 03-Aug-2018 kamil

Register micro-UBSan ATF tests in the distribution

Populate distrib files, mtree lists and add the entry in Makefile to
include the new code.


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.151 15-Jun-2018 yamaguchi

branches: 1.151.2;
Add if_vlan directory to lists to fix the build failure

build.sh was failed when using "-V MKDEBUG=yes"


Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.150 10-Jan-2018 knakahara

branches: 1.150.2;
add ipsec(4) interface ATF.


# 1.149 01-Nov-2017 martin

Add net/ipsec debug lib directory


Revision tags: perseant-stdc-iso10646-base
# 1.148 15-Jun-2017 kamil

G/C libpthread_dbg from mtree

Remove entries:
- ./usr/libdata/debug/usr/tests/lib/libpthread_dbg
- ./usr/tests/lib/libpthread_dbg

Noted by <Herbert J. Skuhra> via private mail.


Revision tags: netbsd-8-base
# 1.147 27-May-2017 bouyer

branches: 1.147.2;
merge the bouyer-socketcan branch to HEAD.

CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.


Revision tags: prg-localcount2-base3
# 1.146 14-May-2017 kamil

Add new c++ ATF tests in usr.bin/c++: t_hello

This is a copy of t_hello from usr.bin/cc.

Added tests:
- hello
- hello_pic
- hello_pie
- hello32

These tests do not use c++ runtime library functions.

Protect these tests with MKCXX.


Revision tags: prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.145 14-Apr-2017 ozaki-r

branches: 1.145.2;
Add tests for ipsec

- Check if setkey correctly handles algorithms for AH/ESP
- Check IPsec of transport mode with AH/ESP over IPv4/IPv6
- Check IPsec of tunnel mode with AH/ESP over IPv4/IPv6


# 1.144 03-Apr-2017 kamil

Remove tests/kernel/arch from mtree entries

The tests/kernel/arch directory has been removed. The t_ptrace files have
been merged and moved to tests/lib/libc/sys.

Sponsored by <The NetBSD Foundation>


Revision tags: pgoyette-localcount-20170320
# 1.143 22-Feb-2017 kamil

Add new directory usr/tests/kernel/arch/x86 in mtree

Sponsored by <The NetBSD Foundation>


# 1.142 21-Feb-2017 kre

PR bin/50934

Add a test program for the bug described in this PR.
This is the first pkill/pgrep/prenice test (more would be good!)

This test has been confirmed to work once the bug described in the PR
has been fixed, so the test is not marked "expected to fail" even
though initially that is what should happen.

Note: the test cana also fail if the system running the tests happens
to be running processes with names that match the patterns searched for
by the test, other than the test program itself. This is expected to be
unlikely.


# 1.141 20-Feb-2017 kamil

Remove tests/lib/libc/gen/exect paths from mtree and sets

The exect tests have been removed from the distribution.

Requested by Thomas Klausner.


# 1.140 16-Feb-2017 knakahara

add l2tp(4) basic test.


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107
# 1.139 02-Jan-2017 martin

branches: 1.139.2;
Add mixerctl test directory


# 1.138 13-Dec-2016 kamil

Add regs1 in arch/i386/t_ptrace_wait*

regs1:
Call PT_GETREGS and iterate over General Purpose registers

Sponsored by <The NetBSD Foundation>


# 1.137 09-Dec-2016 kamil

Attach t_exect to ATF tests and distribution

Add missing SIGTRAP handler. Assert there that the signal is SIGTRAP as
expected and si_code TRAP_TRACE.

This test will break on some ports that have dummy or incomplete
implementation of exect(2).

This test works on amd64 correctly.

Sponsored by <The NetBSD Foundation>


# 1.136 02-Dec-2016 kamil

Refactor location of amd64-specific ATF tests to new dir kernel/arch/amd64

Rename
- tests/kernel/t_ptrace_amd64_wait.c
to
- tests/kernel/arch/amd64/t_ptrace_wait.c
and adapt appropriate files accordingly.

New directory will be used for more amd64-specific tests, verifying the
MD parts of the kernel.

Remove old entries from distrib/sets/lists as they were added a while ago.

Sponsored by <The NetBSD Foundation>


# 1.135 26-Nov-2016 ozaki-r

Add basic tests for vlan(4)


# 1.134 16-Nov-2016 kamil

Add new test-suite t_dummy for libpthread_dbg

At the moment this test does nothing except reports failure from td_open()
for overloaded (implemented) dummy1_proc_lookup() (.proc_lookup from
td_proc_callbacks_t) of the following form:

static int
dummy1_proc_lookup(void *arg, const char *sym, caddr_t *addr)
{
return TD_ERR_ERR;
}

This file and directory with tests is placeholder for new ones, without
further need to alter mtree and distribution sets.

The libpthread_dbg interface and library is used by gdb(1) to handle
threads in applications.

Sponsored by <The NetBSD Foundation>


# 1.133 15-Nov-2016 skrll

Fix librefuse falout.... Hi pho


Revision tags: pgoyette-localcount-20161104
# 1.132 22-Oct-2016 abhinav

Add tests for uniq(1) based on the example test cases provided in the POSIX man page.
Ok christos


Revision tags: localcount-20160914
# 1.131 05-Sep-2016 ozaki-r

Add very basic tests for tun devices


# 1.130 14-Aug-2016 jakllsch

tests for sys/dev/clock_subr.c


Revision tags: pgoyette-localcount-20160806
# 1.129 29-Jul-2016 pgoyette

Add the real directory as well as the debug directory.


# 1.128 29-Jul-2016 pgoyette

Add destination directory for new dev/fss test


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.127 15-Apr-2016 ozaki-r

branches: 1.127.2;
Add a new test case for PPPoE using PAP

From s-yamaguchi@IIJ (with some tweaks by me)


# 1.126 08-Apr-2016 gson

Add regression tests for some past gdb bugs.


# 1.125 04-Mar-2016 ozaki-r

Add tests for tap(4)


# 1.124 05-Jan-2016 jakllsch

Add some tests for the kernel HID parser.


# 1.123 01-Jan-2016 jakllsch

tests for libusbhid (many of which fail)


# 1.122 04-Dec-2015 christos

Add gpt tests


# 1.121 05-Nov-2015 knakahara

add basic if_gif tests to ATF.


# 1.120 24-Sep-2015 christos

debug for libproc tests


# 1.119 24-Sep-2015 christos

add new libproc test stuff


# 1.118 03-Aug-2015 ozaki-r

Add tests for NDP


# 1.117 29-Jul-2015 ozaki-r

Add tests for ARP


# 1.116 06-Jan-2015 christos

Missed one


# 1.115 06-Jan-2015 christos

new tests directory


# 1.114 03-Dec-2014 christos

more test directories.


# 1.113 03-Dec-2014 christos

add new test directories


# 1.112 14-Nov-2014 uebayasi

Minimal linker script test.


# 1.111 12-Oct-2014 uebayasi

Dig mcast test directories.


# 1.110 18-Sep-2014 ozaki-r

Add net/if_bridge test


# 1.109 22-Aug-2014 apb

Test make(1) by running the maintained tests, not unmaintained
copies of them.

* Remove all old tests from src/tests/usr.bin/make/d_*. These tests
were unmaintained old copies of the actual tests which are maintained
under src/usr.bin/make/unit-tests. One exception is the test in
d_unmatchedvarparen.mk, which was new, but has nw been added to
src/usr.bin/make/unit-tests/varmisc.mk.
* In src/tests/usr.bin/make/Makefile, copy all
the tests from src/usr.bin/make/unit-tests to
${DESTDIR}/usr/tests/usr.bin/make/unit-tests.
* In src/tests/usr.bin/make/t_make.sh, run the tests installed above,
instead of the old tests.
* In etc/mtree/NetBSD.dist.tests, create the
usr/tests/usr.bin/make/unit-tests diectory.
* Update the set lists for all the above.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.108 30-Jun-2014 alnsn

Add new net/t_bpfjit test.


# 1.107 31-May-2014 christos

add one more directory.


# 1.106 31-May-2014 christos

add new directory


Revision tags: yamt-pagecache-base9
# 1.105 10-May-2014 martin

Add a test case for PR kern/48787.


# 1.104 29-Apr-2014 uebayasi

Minimal execve(2) ATF test.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.103 08-Feb-2014 jmmv

branches: 1.103.2;
Adjust directories for atf 0.19 import.


# 1.102 15-Jan-2014 martin

Backout previous, now that the makefile glitch causing population of
the tests/opencrypto directory has been fixed


# 1.101 15-Jan-2014 martin

Add usr/tests/opencrypto


# 1.100 14-Jan-2014 pgoyette

Create new directory for the opencrypto tests


# 1.99 07-Jan-2014 gson

Add some minimal tests of vmstat(1), to serve as regression tests
for PR bin/44518.


# 1.98 11-Aug-2013 dholland

more dark ATF rituals are required


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1
# 1.97 19-Jul-2013 kefren

Add a couple of basic IP/MPLS forwarding tests


Revision tags: riastradh-drm2-base agc-symver-base
# 1.96 21-Mar-2013 christos

branches: 1.96.6;
new test directories


# 1.95 25-Feb-2013 jmmv

Add new directories for kyua-atf-compat.


# 1.94 23-Feb-2013 jmmv

Register directories and files provided by kyua-cli.


# 1.93 19-Feb-2013 jmmv

Enable the build of kyua-testers and register its files and directories.
This is conditional on MKKYUA.


# 1.92 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.91 16-Feb-2013 jmmv

Move tests for examples from tests/examples to tests/share/examples.

This is to match the layout of the installed and source files more closely.
While doing this, honor the MKSHARE variable, as the files these tests
validate are only installed when MKSHARE=yes.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.90 23-Nov-2012 njoly

Adjust for usr/tests/lib/libc/c063 debug entries.


# 1.89 20-Nov-2012 pgoyette

Also give install a place to put the atf tests for netpgpverify


# 1.88 18-Nov-2012 manu

Add most system calls for POSIX extended API set, part 2, with test cases:
faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2),
mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2),
utimensat(2), openat(2).

Also implement O_SEARCH for openat(2)

Still missing:
- some flags for openat(2)
- fexecve(2) implementation


# 1.87 12-Nov-2012 njoly

Adjust for tests/lib/{libbpfjit,libsljit} debug entries.


# 1.86 11-Nov-2012 alnsn

Build libbpfjit test to the build.


# 1.85 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


Revision tags: yamt-pagecache-base6
# 1.84 12-Sep-2012 martin

New test directory for npf


# 1.83 26-Aug-2012 jmmv

branches: 1.83.2;
Add placeholder test programs for share/mk files.

The main goal of this change is to simplify the further addition of test
cases for the share/mk infrastructure by adding a few placeholder test
programs to the tests tree.

To not leave these test programs empty, I have added a bunch of extremely
simple test cases to them.


# 1.82 14-Aug-2012 alnsn

Build and install t_bpfilter.


# 1.81 13-Aug-2012 christos

add fdpass directories


# 1.80 28-Jul-2012 njoly

Add testcase for PR/46743


# 1.79 22-Jul-2012 joerg

+ /usr/tests/usr.bin/nbperf


# 1.78 06-Jun-2012 martin

Add a basic test for infocmp - this would have cought todays terminfo
lossage (PR lib/46553).


# 1.77 27-May-2012 martin

Add new test directory


Revision tags: yamt-pagecache-base5
# 1.76 18-May-2012 jruoho

Add a test case for PR kern/46463. From Richard Hansen.


# 1.75 19-Apr-2012 jruoho

Add a test case for PR bin/39546.


Revision tags: yamt-pagecache-base4
# 1.74 14-Apr-2012 jruoho

Add a test case for PR kern/46328 (tested naively with tcpdump(8)).


# 1.73 14-Apr-2012 pgoyette

Revert previous - k_helper3 does not get installed in a subdirectory.

Doing it this way will prevent us from creating the subdirectory on
non-MODULAR systems. That would have caused a build break due to the
unexpected empty directory.


# 1.72 14-Apr-2012 pgoyette

Create the directory for the helper program; hopefully fixes the build
break.

XXX It's odd that k_helper3 needs to have its directory pre-created, when
XXX k_helper, k_helper2, and k_uvm don't need it...


# 1.71 30-Mar-2012 jruoho

Add regression tests for PR bin/3914 and PR bin/27140.


# 1.70 27-Mar-2012 jruoho

Add regression tests for the 1990s bugs PR bin/3538 and PR bin/4841.


# 1.69 20-Mar-2012 jruoho

Add regression tests for PR bin/12424, PR bin/12316, and PR bin/14253,
all fixed long time ago.


# 1.68 19-Mar-2012 njoly

Adjust to unbreak mkdebug build.


# 1.67 19-Mar-2012 jruoho

Add regression tests for PR bin/2642 and PR bin/23836, both fixed long ago.


# 1.66 18-Mar-2012 jruoho

Add a case for PR bin/44973.


# 1.65 18-Mar-2012 jruoho

Add a test case for PR bin/28126. Does not fail with GNU sed.


# 1.64 17-Mar-2012 jruoho

Adjust set lists and mtree.


# 1.63 17-Mar-2012 jruoho

Adjust set lists and mtree.


# 1.62 11-Mar-2012 jruoho

Adjust set lists and mtree.


# 1.61 10-Mar-2012 christos

add awk test directory


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.60 13-Feb-2012 martin

Move posix_spawn tests to lib/libc/gen/posix_spawn - they test both libc
and kernel, but that is an implementation detail unrelated to the tests
themselfs.
Ok: releng


# 1.59 11-Feb-2012 martin

Add userland part of posix_spawn. Libc functions imported from FreeBSD.
Based on Charles Zhang's summer of code project.


# 1.58 27-Dec-2011 pgoyette

Add directory for libcrypt tests


# 1.57 21-Dec-2011 christos

add fifofs


# 1.56 12-Nov-2011 jmmv

Register directories for the new asm examples and their tests.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.55 07-Nov-2011 njoly

+./usr/libdata/debug/usr/tests/lib/libtre


# 1.54 06-Nov-2011 christos

add libtre test directories


Revision tags: yamt-pagecache-base
# 1.53 19-Sep-2011 jruoho

branches: 1.53.2;
Move the tests/libc/ieeefp to tests/libc/gen to match the structure of libc.
Also rename the test files to gain functional scope.


# 1.52 27-Aug-2011 dyoung

Straggler from last: add the directory for ppath(3) tests.


# 1.51 07-Jul-2011 jruoho

Remove ../tests/syscall.


# 1.50 25-Jun-2011 nonaka

PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.


Revision tags: cherry-xenmp-base
# 1.49 30-May-2011 njoly

Add testcase for PR bin/45004, to exercize suffixes lists for
mkdep(1).


# 1.48 09-May-2011 jruoho

Add a test case for PR kern/44946. This tests that common first level sysctl
nodes (ddb, hw, machdep, etc.) are not writable by a normal user.


# 1.47 05-May-2011 jruoho

Follow the real tree with the test directory structure.


# 1.46 03-May-2011 jruoho

Add a test case for PR bin/26453.


# 1.45 03-May-2011 jruoho

Add a test for PR bin/41880.


# 1.44 03-May-2011 jruoho

A test for non-critical/low PR bin/42179.


# 1.43 03-May-2011 jruoho

Verify that PR bin/42628 is no longer an issue.


# 1.42 03-May-2011 jruoho

Add a test for non-critical/low PR bin/43141.


# 1.41 02-May-2011 njoly

Add back usr/libdata/debug/usr/tests/lib/libc/termios, needed for
debug builds.


# 1.40 02-May-2011 pgoyette

Get this right. It was not the debugdata directory that was missing...


# 1.39 02-May-2011 pgoyette

Add tests/lib/libc/termios subdirectory to accomodate jruoho's new test
t_tcsetpgrp


# 1.38 12-Apr-2011 matt

Add missing ./usr/libdata/debug/usr/tests/lib/libcurses


# 1.37 10-Apr-2011 blymn

Add libcurses to tests.


# 1.36 09-Apr-2011 pgoyette

atf-ify the various locale tests


# 1.35 07-Apr-2011 plunky

link libbluetooth tests to the build


# 1.34 10-Mar-2011 pooka

tests/fs/zfs


# 1.33 10-Mar-2011 pooka

rumpnet tests


# 1.32 10-Mar-2011 pooka

shmif_dumpbus tests


# 1.31 09-Mar-2011 joerg

Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.


# 1.30 06-Mar-2011 bouyer

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.


Revision tags: bouyer-quota2-nbase
# 1.29 24-Feb-2011 pooka

new testdirs


# 1.28 18-Feb-2011 pooka

hfs


Revision tags: bouyer-quota2-base
# 1.27 09-Feb-2011 pooka

more testies


# 1.26 08-Feb-2011 pooka

oh no, more tests


# 1.25 06-Feb-2011 pooka

librumphijack build infra


# 1.24 03-Feb-2011 pooka

+ tests/usr.bin
+ tests/usr.bin/rump_server


# 1.23 14-Jan-2011 pooka

branches: 1.23.2;
h_server is back, now testier than ever


# 1.22 13-Jan-2011 pgoyette

Sets-list and mtree dance for t_inet_network


# 1.21 13-Jan-2011 pgoyette

sets-list and mtree dance for moving t_mktime & t_strptime


# 1.20 12-Jan-2011 pgoyette

Hook up the getaddrinfo test in its new location


# 1.19 11-Jan-2011 pgoyette

sets-list dance for getaddrinfo test


# 1.18 11-Jan-2011 pooka

+tests/net/net


# 1.17 10-Jan-2011 njoly

Add lib/libc/sys test dirs.


# 1.16 08-Jan-2011 pgoyette

sets-list dance for atf version of regex test


# 1.15 08-Jan-2011 pgoyette

mtree and set-list games for xdr test


# 1.14 07-Jan-2011 pgoyette

Hook the new atf db test


# 1.13 07-Jan-2011 pgoyette

Hook t_cerror and t_ttyio into the build


# 1.12 02-Jan-2011 pgoyette

Add the new directory for hash test data


Revision tags: matt-mips64-premerge-20101231
# 1.11 02-Jan-2011 dbj

add usr/tests/lib/libc/ieeefp and ./usr/libdata/debug/usr/tests/lib/libc/ieeefp


# 1.10 02-Jan-2011 dbj

add missing ./usr/tests/lib/libc/ieeefp


# 1.9 27-Dec-2010 pgoyette

Move the various setjmp tests from regress to atf


# 1.8 27-Dec-2010 pgoyette

Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.


# 1.7 25-Dec-2010 pgoyette

Migrate J.T.Conklin's public-domain str* tests from regress to atf.

While here, do some clean-up and knf.


# 1.6 20-Dec-2010 pgoyette

Move the only regress/lib/libm test to the new atf format


# 1.5 15-Dec-2010 pooka

goop for initial raidframe test


# 1.4 15-Dec-2010 pooka

usr.sbin/traceroute


# 1.3 15-Dec-2010 pooka

don't create h_img2cgd dirs anymore since they'll just be harvested by obsolete


# 1.2 13-Dec-2010 pooka

directory not used anymore


# 1.1 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.