summaryrefslogtreecommitdiff
path: root/regress/sys/kern
AgeCommit message (Collapse)Author
2017-04-30Check that unsupported operation returns ENOSYS.Martin Pieuchot
2017-04-30Regression tests for futex(2).Martin Pieuchot
2017-04-12Add comment what the test does.Alexander Bluhm
2017-04-12The pledge sigkill test is an outdated copy of sigabrt. Remove theAlexander Bluhm
former and activate the latter. OK semarie@
2017-04-12Add comment how the test works.Alexander Bluhm
2017-03-28Make the test also work with obj directory.Alexander Bluhm
from semarie@
2017-03-28Link pledge sockopt regression tests to build.Alexander Bluhm
2017-03-28Call get/setsockopt(2) with various sockets and check which optionsAlexander Bluhm
cause aborts due to pledge(2) restrictions.
2017-03-24correct my email address. thanks fcambus@Sebastian Benoit
2017-03-08warning cleanups; ok guentherTheo de Raadt
2017-03-08don't use __syscall to emulate _exit, just call _exitTheo de Raadt
2017-03-08fix comment blockTheo de Raadt
2017-02-25Add missing includes to avoid implicit function declarations.Jonathan Gray
2017-02-22Enable semarie's sendrecvfd testsTheo Buehler
2017-02-22Add regress tests for fd passing and pledge. Check sending and receivingTheo Buehler
all 7 types of vnodes as follows: - nopledge: no pledge - verify that send/recv work as expected - sendfd: pledge the sender with "stdio sendfd" - recvfd: pledge the receiver with "stdio recvfd" - nosendfd: pledge the sender with "stdio" (it is expected to fail) - norecvfd: pledge the receiver with "stdio" (it is expected to fail) This results in 35 possible combinations with different semantics depending on the vnode type. From semarie, many thanks!
2017-02-21Remove SUDO=doas in regress Makefile. The test developer must notAlexander Bluhm
set the SUDO variable. The tester may decide wether he runs doas, sudo or the whole test as root. discussed with tb@ semarie@ benno@
2017-02-21Make test_request_tty() also pass in environments without tty by opening aTheo Buehler
pseudo-tty and testing on the slave instead of stderr. nicm confirms that this approach is fine bluhm tested in his environment and the tests now pass from semarie
2017-02-19re-enable generic pledge testsTheo Buehler
2017-02-19Clean up regress/sys/kern/pledge/generic tests: many tests failed becauseTheo Buehler
wlpaths is disabled in GENERIC kernels: remove or disable failing test cases. Also remove the test_mmap() function testing the prot_exec promise since it would need to be run on a wxallowed partition. from semarie
2017-02-16Fix type of argv. Found by clang.Patrick Wildt
ok bluhm@
2017-01-26deactivate the existing pledge regress tests, they needSebastian Benoit
some changes to work again. activate new ioctl subdirectory.
2017-01-26add check for pledge(pf), and pledge(pf) + fd passingSebastian Benoit
2017-01-26enable compiler warnings and fix them.Sebastian Benoit
2017-01-18Do not unconfigure mount points, vnd devices and NFS daemons duringAlexander Bluhm
"make clean". "make build" does a recursive "make cleandir" and there this behavior is undesired unexpected. reported by naddy@
2017-01-13Make mount points and makefiles for file system tests consistent.Alexander Bluhm
Link tests to the build.
2017-01-11Add a test that creates a nested tree of mount points. All partitionsAlexander Bluhm
of a vnd(4) device are mounted under /mnt. A single umount(8) of /mnt should unmount all of them.
2017-01-11Add a test that creates a nested tree of mount points. All partitionsAlexander Bluhm
of a vnd(4) device are mounted under /mnt. A single umount(8) of /mnt should unmount all of them.
2016-11-28The setuid regression test builds and runs a binary that is setuidAlexander Bluhm
or setgid nobody. Since /usr/obj is 0770, user nobody cannot access other files there anymore. Install all programs into a temporary directory and run them there. Check that /tmp is mounted without nosuid.
2016-10-05Link the setuid regress test to the build in a way that the objAlexander Bluhm
directory gets created. But do not run the test during a global make regress, as the test puts a setuid binary into the object directory. Also remove the setuid bit after the test has been run manually. OK otto@
2016-10-03The setuid tests needs an obj directory that allows to run programsAlexander Bluhm
with set user id. Skip the test if the current filesystem has set the nosuid mount option. OK otto@
2016-09-28If stdout is not line buffered, messages got lost when assert() wasAlexander Bluhm
called. Print errors to stderr instead.
2016-09-24On sparc64 we need "retl" not "ret" to do an immediate return.Mark Kettenis
ok deraadt@, tedu@
2016-09-24recpect W^X, sparc64 still has a problem: non-exec mmap: executeOtto Moerbeek
#1 is done, the others not. ok kettenis@ millert@
2016-09-23Making the regress target depends on building PROG.Alexander Bluhm
2016-09-23Zap mquery test for goodOtto Moerbeek
2016-09-23Zap. Has been disabled for a long time and makes unholy assumptions aboutOtto Moerbeek
the address pace layout. ok bluhhm@
2016-09-21Use /dev/console as a template for the pseudo tty, stdin may be notAlexander Bluhm
a terminal. Check wether tcgetattr() can read the values. Do not only verify that kqueue does not report unwanted events but also that expected events exist.
2016-09-20To make debugging the kqueue test easier, always print the assertionAlexander Bluhm
failure before returning.
2016-09-04When passing the (1ULL << 32) to EV_SET, it gets casted to __uintptr_t.Alexander Bluhm
On 32 bit architectues, the high bit is lost and the test fails. Create an invalid pid in the lower 32 bits. OK guenther@
2016-09-01remove references to sparc (and even a vax ref that escaped notice)Ted Unangst
2016-08-29Make socket splicing performance test pass in multiple environments.Alexander Bluhm
When running the setup over two machines, build required binaries on remote machine. Avoid localhost nameserver lookup, just use 127.0.0.1. Use greater timeout.
2016-08-27Pull in <sys/time.h> for struct timevalPhilip Guenther
<sys/*.h> includes go before <*.h> includes ok deraadt@
2016-08-25Fix sosplice tests on 32 bit systems by putting the correct numberAlexander Bluhm
of bytes into the time_t Perl pack template. Also fix error messages.
2016-08-19Add support for arm and enable on armv7.Mark Kettenis
2016-07-14Prevent silly states via knotes on pids > 2^32 and on nonexistent signals.Philip Guenther
ok tedu@
2016-06-13Test that splicing loops are aborted with ELOOP.Alexander Bluhm
2016-05-03Fix some Perl statements perlcritic was bitching about: VariableAlexander Bluhm
declared in conditional statement.
2016-04-27unbreak pledge/generic test (breaked since ?)Sebastien Marie
it still requires a pledge(2) with wlpath enable.
2016-04-25remove systraceTed Unangst
2016-03-17Last parameter to execl[e]() functions *must* be cast to a pointer.Kenneth R Westerback
Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@