summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add ATF_REQUIRE_FEATURE and PLAIN_REQUIRE_FEATURE macros forngie2015-12-161-0/+15
| | | | | | | | | | | testing for kernel features via the feature_present(3) libcall The semantics are similar to the other macros in the header (skip testcase with ATF macro; exit with appropriate exit code with the PLAIN macro) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix LDADD/DPADD that should be LIBADD.bdrewery2015-12-044-14/+8
| | | | Sponsored by: EMC / Isilon Storage Division
* Disable mqueue test # 3 and # 4 until __mq_oshandle is properly publicizedngie2015-12-011-2/+2
| | | | | | This will unbreak the test script and make things green again after r291440 Sponsored by: EMC / Isilon Storage Division
* Disable a couple of tests, perhaps temporarily, since they use privatedeischen2015-11-291-2/+2
| | | | symbols that are not exported from librt.
* Avoid requiring 'make depend' here.bdrewery2015-11-251-0/+1
| | | | | | | | Really this should not be a DPSRCS. The acct_test.c should not #include convert.c, but just link it in as a normal SRCS. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate contrib/netbsd-tests/kernel/t_mqueue into the FreeBSD testngie2015-11-231-0/+5
| | | | | | suite as tests/sys/kern/mqueue_test MFC after: 1 week
* Fix up convert.c generationngie2015-11-231-2/+3
| | | | | | | | | | - Use a temporary file for convert.c to reduce likelihood of an interrupted build resulting in bad code being written to convert.c - Truncate the file instead of appending to it to ensure that the file being touched will not result in duplicate declarations/definitions from kern_acct.c if/when kern_acct.c changes. MFC after: 1 week
* Copy README into /usr/testsrodrigc2015-11-202-3/+15
| | | | | | | Add a few sentences describing how to run the tests. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D4224
* Integrate tools/regression/pipe in to the FreeBSD test suite asngie2015-11-1610-0/+799
| | | | | | | | | | | | | | tests/sys/kern/pipe - Fix style(9) bugs - Fix compiler warnings - Use `nitems(x)` instead of `sizeof(x) / sizeof(*x)` pattern The testcases will be converted over to ATF eventually, but for now will be integrated in as plain C tests MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate contrib/netbsd-tests/kernel/t_lockf.c into the FreeBSD test suite asngie2015-11-161-0/+6
| | | | | | | tests/sys/kern/lockf_test MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate acct(2) testcase in as tests/sys/kern/acct/acct_testngie2015-11-163-0/+255
|\ | | | | | | | | | | | | | | | | The :encode_tv_random_million testcase fails the epsilon tests a few thousand times out of one million, so expect the testcase to fail MFC after: 1 week Submitted by: keramida Sponsored by: EMC / Isilon Storage Division
| * Integrate kern/kern_acct.c testcase in as tests/sys/kern/acct/acct_testngie2015-11-163-0/+255
| | | | | | | | | | | | | | | | | | The :encode_tv_random_million testcase fails the epsilon tests few thousand times out of one million, so expect the testcase to fail MFC after: 1 week Submitted by: keramida Sponsored by: EMC / Isilon Storage Division
| * Enable pjdfstest in the FreeBSD test suite by default to get somengie2015-11-161-3/+1
|/ | | | | | coverage on the root file system Sponsored by: EMC / Isilon Storage Division
* Add tests for the copyin(9) handling of illegal buffers.kib2015-10-192-0/+87
| | | | | | Reviewed by: emaste, ngie Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D3925
*-. Integrate tools/regression/acltools into the FreeBSD test suite as tests/sys/aclngie2015-10-1715-0/+3343
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make the requirements more complete for the testcases - Detect prerequisites so the tests won't fail (zfs.ko is loaded, zpool(1) is available, ACL support is enabled with UFS, etc). - Work with temporary files/directories/mountpoints that work with atf/kyua - Limit the testcases to work on temporary filesystems to reduce tainting the test host MFC after: 2 weeks Reviewed by: trasz (earlier version) Differential Revision: https://reviews.freebsd.org/D3810
| \ \
| \ \
*-. \ \ Integrate tools/test/posixshm and tools/regression/posixshm into the FreeBSDngie2015-10-173-0/+637
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test suite as tests/sys/posixshm Some other highlights: - Convert the testcases over to ATF - Don't use hardcoded paths to /tmp (which violate the ATF/kyua samdbox); use mkstemp to generate temporary paths for non-SHM_ANON shm objects. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
| | * | | Unify posixshm.c and shm_test.cngie2015-10-176-983/+740
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | Convert both testcases over to ATF Don't use hardcoded paths to /tmp; use mkstemp to generate temporary paths for non-SHM_ANON created shm objects.
| | * | Add Makefile missed in r289236ngie2015-10-141-0/+29
| | | |
| | * | Redirect all stdout from run to stderr so failures can be debuggedngie2015-10-145-7/+7
| | |/
| | * Integrate tools/regression/acltools into tests/sys/aclngie2015-10-1314-0/+3314
| | |\ | | | | | | | | | | | | Apply patches I've been running for months on my GitHub project
| | | * Integrate tools/regression/acltools into tests/sys/aclngie2015-10-0514-0/+3314
| | | | | | | | | | | | | | | | Apply patches I've been running for months on my GitHub project
| | | * Fix compilation with -Werror + -Wsigned enabledngie2015-10-051-6/+4
| | | |
| | | * MFhead @ r288313ngie2015-09-272-24/+206
| | | |\
| | | * \ MFhead @ r286584ngie2015-08-104-98/+674
| | | |\ \
| | | * \ \ MFhead @ r285904ngie2015-07-273-13/+14
| | | |\ \ \
| | | * | | | Fix some -Wunused warningsngie2015-06-141-1/+1
| | | | | | |
| | | * | | | Fix Makefilengie2015-06-141-2/+2
| | | | | | |
| | | * | | | MF head @ r284358ngie2015-06-133-30/+54
| | | |\ \ \ \
| | | * \ \ \ \ Readd fresh copies of the directories from head using svn copyngie2015-05-3134-0/+7300
| | | |\ \ \ \ \
| | | * | | | | | Nuke some broken directoriesngie2015-05-3134-7300/+0
| | | | | | | | |
| | | * | | | | | MF head @ r283796ngie2015-05-311-0/+246
| | | |\ \ \ \ \ \ | | | | |/ / / / /
| | | * | | | | | MFhead @ r283351ngie2015-05-2421-43/+460
| | | |\ \ \ \ \ \
| | | * \ \ \ \ \ \ Try and fix filenames to diff reduce with headngie2015-04-272-0/+0
| | | |\ \ \ \ \ \ \
| | | * | | | | | | | Remove tests/sys/mmapngie2015-04-272-112/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I changed my mind and integrated it into tests/sys/kern instead of tests/sys/mmap, because the former location made more sense, and there was only 1 test program to account for in the latter (and original) location
| | | * | | | | | | | MFhead @ r282076ngie2015-04-273-1/+106
| | | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / /
| | | * | | | | | | | Add missing newline for SKIP planngie2015-04-251-1/+1
| | | | | | | | | | |
| | | * | | | | | | | MFhead @ r281924ngie2015-04-241-1/+1
| | | |\ \ \ \ \ \ \ \
| | | * | | | | | | | | sparc64 gcc has -Wcast-align issues as well on sparc64; disable the warning ↵ngie2015-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for all compilers
| | | * | | | | | | | | Fix a warning related to type sizes found by testing on a 32-bit OS ;) (powerpc)ngie2015-04-161-2/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Add more SUBDIR_PARALLEL.bdrewery2015-10-154-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
| | | | | | | | | | | |
| \ \ \ \ \ \ \ \ \ \ \
*-. \ \ \ \ \ \ \ \ \ \ \ Integrate tools/regression/vfs into the FreeBSD test suite as tests/sys/vfsngie2015-10-143-0/+50
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
| | * | | | | | | | | | | Add Makefile forgotten in r289224ngie2015-10-131-0/+7
| |/ / / / / / / / / / /
| * | | | | | | | | | | Integrate tools/regression/vfs into the FreeBSD test suite as tests/sys/vfsngie2015-10-132-0/+43
| |/ / / / / / / / / /
| * | | | | | | | | | Integrate tools/test/posixshm and tools/regression/posixshm into the FreeBSDngie2015-10-136-0/+990
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test suite as tests/sys/posixshm
* | | | | | | | | | Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-123-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* | | | | | | | | | Tweak: use 'mainlwp' instead of 'mainpid' since this is a thread (LWP)jhb2015-10-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identifier, not a pid.
* | | | | | | | | | Fix build with older GCC which, doesn't like 'main' being a variable name.bdrewery2015-10-061-3/+3
| | | | | | | | | |
* | | | | | | | | | Fix various edge cases related to system call tracing.jhb2015-10-062-15/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Always set td_dbg_sc_* when P_TRACED is set on system call entry even if the debugger is not tracing system call entries. This ensures the fields are valid when reporting other stops that occur at system call boundaries such as for PT_FOLLOW_FORKS or when only tracing system call exits. - Set TDB_SCX when reporting the stop for a new child process in fork_return(). This causes the event to be reported as a system call exit. - Report a system call exit event in fork_return() for new threads in a traced process. - Copy td_dbg_sc_* to new threads instead of zeroing. This ensures that td_dbg_sc_code in particular will report the system call that created the new thread or process when it reports a system call exit event in fork_return(). - Add new ptrace tests to verify that new child processes and threads report system call exit events with a valid pl_syscall_code via PT_LWPINFO. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D3822
* | | | | | | | | | Revert r288682ngie2015-10-0521-0/+2046
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I meant to do this on ^/user/ngie/more-tests Pointyhat to: ngie (use svn info next time...)
* | | | | | | | | | Remove some paths preparing for a re-copy from headngie2015-10-0521-2046/+0
| |_|_|_|_|_|_|_|/ |/| | | | | | | |
OpenPOWER on IntegriCloud