Commit Graph

46 Commits

Author SHA1 Message Date
kamil
97a670fdb7 Remove tests/kernel/t_ptrace* from the tree
ptrace(2) tests have been moved to tests/lib/libc/sys

Sponsored by <The NetBSD Foundation>
2017-04-03 05:06:28 +00:00
kamil
cc4260326d Remove kernel/arch/{amd64,i386,x86} tests
These files were merged with kernel/t_ptrace_wait*

This removes MD test files.

Sponsored by <The NetBSD Foundation>
2017-04-02 01:49:51 +00:00
kamil
15bac0f54a Define -D_KERNTYPES in CPPFLAGS unconditionally to fix MKRUMP=no build
Reported by Robert Swindells

Sponsored by <The NetBSD Foundation>
2016-12-14 06:19:59 +00:00
kamil
96cf2030eb 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>
2016-12-02 05:54:14 +00:00
kamil
6df343d465 Add new test file t_ptrace_amd64_wait.c and refactor t_ptrace_*wait* tests
Clone t_ptrace_wait.c to t_ptrace_amd64_wait.c and put common parts to
t_ptrace_wait.h.

The t_ptrace_amd64_wait.c file is dedicated to hold amd64-specific tests
for the ptrace(2) interface.

Add new basic test dbreg1 in t_ptrace_amd64_wait{,3,4,6,id,pid}:
    Verify plain PT_GETDBREGS with printing Debug Registers

Fix evbarm64-aarch64 issue pointed by <christos>, kill1 and kill2 tests
must be defined without PT_STEP guards.

Sponsored by <The NetBSD Foundation>
2016-12-01 20:11:17 +00:00
kamil
5cc56ca0a8 Add new tests for combination of wait(2) interfaces with ptrace(2)
Move out wait(2) specific tests from t_ptrace and put them to t_ptrace_wait

Add generic code fragments to reuse the same source-code for every member
of the wait(2) family, namely:
 - wait(2)
 - waitpid(2)
 - waitid(2)
 - wait3(2)
 - wait4(2)
 - wait6(2)

Currently in the new test-suite there are the following tests:
 - traceme1
 - traceme2
 - traceme3
 - traceme4
 - attach1

Not all tests are possible to be executed against every wait(2)-like
interface, therefore they will be disabled in such case. Currently this
limits attach1 to waitpid(2), waitid(2), wait4(2), wait6(2), while the
other tests (traceme 1-4) run with all of the interfaces.

The construct of this file is dedicated for addition of new tests in the
close future.

As of now all of the tests pass correctly.

Thanks for Robert Elz for suggestions on improving the code (earlier draft
of this new form).

Sponsored by <The NetBSD Foundation>.
2016-11-07 21:09:03 +00:00
kamil
46910e0e26 Add new test t_ptrace with traceme1
This test is a placeholder for further checks of the native ptrace(2)
function calls.

XXX: Is it safe to call ATF functions from a child? FreeBSD seems to
     construct dedicated asserts for them.

XXX: printf(3) calls from a child are not intercepted by atf-run(1)

Sponsored by <The NetBSD Foundation>.
2016-11-02 12:51:22 +00:00
christos
cfb3849454 This needs _KERNTYPES on some platforms. 2016-02-15 14:59:38 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
matt
b9e582e94c Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined. 2015-06-22 00:05:23 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
gson
643acb6d0e Test that reading a CTLTYPE_INT sysctl variable into a buffer that is
too small returns ENOMEM, and that reading it into a buffer that is
large enough returns the expected sizeof(int) bytes of data.
2014-08-09 07:04:03 +00:00
he
f693807fd8 Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser.  Fixes build for sun2.
2014-06-10 04:28:39 +00:00
mlelstv
86479a1389 First attempt at stress testing umount of a busy disk. 2013-04-16 22:05:44 +00:00
martin
f368c7a2de Add a testprogram for PR 47598. 2013-02-28 15:31:22 +00:00
pgoyette
8b483e6488 Add missing '+' so we include t_lock as well as t_lockf and others.
Should fix the build break.
2012-11-07 16:36:49 +00:00
pgoyette
7206730159 Add ATF version of the file locking test 2012-11-07 14:00:38 +00:00
nakayama
b826e4d970 Fix MKRUMP=no build.
librt is unrelated to rump.
2012-11-07 05:13:45 +00:00
pgoyette
c168fbbf95 Convert to ATF format the old src/regress/ style tests for Sys V IPC 2012-11-05 04:09:14 +00:00
pgoyette
938a6ff547 Convert the old src/regress/mqueue test to ATF 2012-11-03 05:19:33 +00:00
christos
cb461c6808 Exclude tests that use rump 2012-08-08 13:57:05 +00:00
jruoho
0a082b37fe Move the _lwp_ctl(2) preemption counter check to the right place. 2012-03-17 17:23:34 +00:00
martin
0ce98f42a7 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
2012-02-13 21:03:06 +00:00
martin
19f52532ad Add userland part of posix_spawn. Libc functions imported from FreeBSD.
Based on Charles Zhang's summer of code project.
2012-02-11 23:31:22 +00:00
christos
408524dea5 Add a test for the kernel snprintf. 2011-11-24 01:46:40 +00:00
jruoho
d79436d44f Move the sigaction(2) test to the right place. 2011-10-15 07:00:48 +00:00
jruoho
d7cfdec1a4 Move the ucontext(2) test to the right place. 2011-10-15 06:54:52 +00:00
jruoho
e6064fc127 Move the writev(2) test to the right place. 2011-10-15 06:50:52 +00:00
jruoho
2a39986da0 Move the clock_gettime(2) timer test to the right place. 2011-10-15 06:42:16 +00:00
jruoho
175ae78538 Follow the design principles of tests(7) by merging 't_poll3w' to 't_poll'
as a test case instead of separate file.
2011-10-15 06:33:45 +00:00
jruoho
04c8b02c8d Move the mkdir(2) test to the right place. 2011-10-15 06:26:33 +00:00
jruoho
599acddbd9 Move the pipe(2) test to the right place. 2011-10-15 06:17:02 +00:00
jruoho
45e23a6a46 Move the posix_fadvise(2) test to the right place. 2011-10-15 06:10:26 +00:00
christos
6f52d919ef Add a pty test, written by Matthew Mondor 2011-09-24 15:53:01 +00:00
tron
3256d5bc1c Move regression test for PR kern/44986 from "kernel" to "syscalls" as
the later directory seems to be a better fit.
2011-05-28 16:12:56 +00:00
tron
3b708a2134 Add two test cases for pollts(2):
- The first tests basic functionality e.g. timeouts and correct events.
- The second tests whether pollts(2) correctly restores the signal mask.
  This test currently fails because of PR kern/44986.
2011-05-28 15:24:49 +00:00
pgoyette
107fdb641e Add tests for verifying the recent changes to ps_strings
From joerg@ with atf-ification from myself.
2011-03-05 18:14:33 +00:00
pooka
44198575b7 add necessary libs for t_posix_fadvise 2010-11-11 17:36:57 +00:00
pooka
a8c7d81755 test case for PR kern/43694 2010-08-02 10:29:48 +00:00
jmmv
fc6db98b3b Add a couple of simple tests for sigaction(2): one for the case where flags
is set to 0 and the other for the case where we set SA_RESETHAND.

The latter test is intended to expose PR port-macppc/43619 and is marked as
an expected failure on such platform.
2010-07-14 21:47:06 +00:00
jmmv
9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
pooka
59b613aa00 xfail test for kernel panicky in PR kern/40688 2010-06-28 19:03:59 +00:00
pooka
d377aeaac4 test extattrctl kernel panic (kern/43328) 2010-05-21 16:47:45 +00:00
uebayasi
75fe826dc9 CPPFLAGS.* is per *.c, not per ${PROG} or ${LIB}. 2009-12-08 15:20:20 +00:00
pooka
1b05a6d80a Add test case for PR kern/42020:
t_rnd (1/1): 1 test cases
    RNDADDDATA: Failed: Test case did not exit cleanly: Abort trap (core dumped)

Failed test cases:
    t_rnd:RNDADDDATA
2009-09-08 20:37:45 +00:00
jmmv
99635d94f8 Add the kernel-level tests developed by Lukasz Strzygowski as part of the
atfify GSoC 2008 project.
2009-02-20 21:39:57 +00:00