jruoho
06b5587b18
Few naive checks for time(3).
2011-11-05 18:07:15 +00:00
jruoho
cc7aae5d85
Add printfs to see where TNF's qemu/sparc fails.
2011-11-05 08:49:24 +00:00
jruoho
fbcca3ea0f
Fix some typos.
2011-11-05 08:47:54 +00:00
jruoho
62a65142c3
Add 21 unit tests for the XSI message queues.
2011-11-05 07:45:40 +00:00
christos
fcc088cd59
stylistic improvements.
2011-11-04 15:48:10 +00:00
christos
94a17dd165
socketpair test.
2011-11-04 02:23:39 +00:00
jruoho
cc154478ac
Fix a test case to test what the comment says.
2011-11-02 06:04:48 +00:00
pgoyette
b9c0a62ba4
atf-ify ether_aton test
2011-11-01 22:36:53 +00:00
christos
9c67f9d994
make this work
2011-10-31 21:30:16 +00:00
pgoyette
7726fd7693
No need to keep on trying when this fails in the expected manner. We
...
really don't need to have 32k failures.
OK jruoho@
2011-10-31 18:37:01 +00:00
christos
eba0b3c2fd
Move all pipe2 tests to a separate file.
2011-10-31 15:41:31 +00:00
mrg
f3383e2258
fix a build issue with MKCRYPTO=no.
2011-10-22 21:13:25 +00:00
christos
2bfe4d4dcb
simplify.
2011-10-21 00:41:34 +00:00
njoly
0ab97f9b6a
New testcase that check for close-on-exec flag on pipe2 syscall.
2011-10-20 18:20:30 +00:00
jruoho
ab2f2845b8
Add few basic checks.
2011-10-19 16:19:30 +00:00
njoly
ef82a331aa
Add basic fpsetmask test to exercize setting/clearing bits.
2011-10-19 15:27:16 +00:00
jruoho
11bceb6a8a
Reduce tolerance even more.
2011-10-18 14:16:42 +00:00
jruoho
b2508f4f43
Adjust and add some printfs.
2011-10-18 04:51:01 +00:00
njoly
d057ee05a2
Remove unneeded uneeded err.h include.
2011-10-17 17:58:43 +00:00
mbalmer
24e4901256
There is no doubt whether whether should have a 'h' after the 'w'.
2011-10-17 16:35:21 +00:00
jruoho
09e0db7e84
Remove 't_rint' as it was committed accidentally.
2011-10-16 13:43:26 +00:00
jruoho
720d37c338
As couple of checks fails on i386/qemu, reduce tolerance.
2011-10-16 13:42:22 +00:00
jruoho
b338bf9392
Remove atf_tc_skip() to see whether this still panics i386/qemu.
2011-10-16 08:28:10 +00:00
jruoho
d8db378021
Add t_sqrt and t_cbrt.
2011-10-16 08:25:55 +00:00
jruoho
9a2c9f3246
Basic checks for the root functions.
2011-10-16 08:25:40 +00:00
jruoho
a684ed294b
Basic IEEE tests for the hyperbolic sine and cosine.
2011-10-16 07:40:47 +00:00
gson
4b51693338
Fix cut-and-paste-o that casused the raid1_normal test case to have no
...
cleanup function defined, resulting in a rump_server process hanging
around after the tests completed.
2011-10-15 11:31:40 +00:00
jruoho
45bcb64b3b
Add few basic checks.
2011-10-15 07:38:31 +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
plunky
f65a48c2ec
max WARNS is 4
2011-10-13 17:23:28 +00:00
dholland
2dc4a881d5
Don't use 'nul' in filenames as windows will belch.
...
(Caught by importing the tree into mercurial)
2011-10-11 23:04:21 +00:00
christos
5b9dde0010
- Use PROGS instead of PROG so that we can co-exist with TESTS_C
...
- Make the helper program compile again.
2011-10-10 04:32:41 +00:00
christos
80ee4a02c3
Add a test to check for DoS attacks against regcomp/regexec. From
...
Maksymilian Arciemowicz.
2011-10-09 18:21:08 +00:00
njoly
7557af291b
Slightly adjust skipped messages, makes output more consistent.
2011-10-08 13:08:54 +00:00
njoly
0a1fcf8f89
USE_OWNER -> USES_OWNER for consistency with other macros.
2011-10-08 13:00:55 +00:00
joerg
26b851df1f
Fix off-by-one error and simplify at the same time.
2011-10-07 13:39:33 +00:00
njoly
07e6e433cf
Fix lint unrelated "set but not used" warning, to unbreak test.
2011-10-05 21:30:50 +00:00
christos
5d5cd00fc9
Fixed reversed/child parent and check the right variable for failure from
...
gson@
2011-10-04 16:28:26 +00:00
christos
4962000a12
Add new test.
2011-10-04 16:24:27 +00:00
martin
aeeeb7017f
Fix typo in diagnostic output
2011-10-04 12:01:21 +00:00
christos
3608a76ca2
Fix the exceed test.
2011-10-03 14:55:23 +00:00
christos
07f6e1d3b5
remove stray underscore.
2011-10-02 18:34:17 +00:00
christos
4e3d131fd2
add a missing E
2011-10-01 21:47:08 +00:00
christos
0dd4f3a513
disable test on the vax until we fix it.
2011-10-01 18:38:39 +00:00
christos
1ef7da4f3d
Undo previous, Checking for vax is more appropriate.
2011-10-01 17:56:11 +00:00
christos
2cbc70fcc3
no more ifdef vax
2011-10-01 17:54:13 +00:00
christos
789b17ab02
use _FLOAT_IEEE754 instead of vax.
2011-10-01 17:46:10 +00:00
christos
879077c683
add more tests.
2011-09-30 23:51:50 +00:00
christos
0abddc98e9
add symbolic name printing.
2011-09-30 23:46:15 +00:00
njoly
0ddf58db65
Do not try to open files up to the RLIMIT_NOFILE limit, which fails
...
when process limit is identical to the whole system limit. Just do it
for a small fixed value, and adjust the limit accordingly instead.
2011-09-30 21:08:19 +00:00
christos
4bea49e915
use ATF_CHECK_MSG instead of err() in atf.
2011-09-30 19:12:35 +00:00
christos
83ade10494
print stderr, when things go wrong.
2011-09-30 18:27:18 +00:00
christos
eb5e1b5450
Make the rounding test work properly, and actually test the rounding modes.
2011-09-30 17:44:58 +00:00
jruoho
cbbf4a4b63
Add expected failures for Qemu.
2011-09-30 14:50:20 +00:00
christos
216c13827a
add back the raw test and fix typo in the libraries.
2011-09-28 23:11:12 +00:00
christos
2a89e8adcf
revert part of previous that was wrong.
2011-09-28 22:19:52 +00:00
christos
e244cf19e9
fix error message
2011-09-28 22:08:12 +00:00
christos
9d31325887
Add a unix socket pathname size limit test.
2011-09-28 16:13:03 +00:00
jruoho
be8b5eb28c
Define _PATH_CPUCTL.
2011-09-27 11:24:20 +00:00
christos
b0aa149fb2
Add an rfc6056 test.
2011-09-24 18:34:18 +00:00
christos
6f52d919ef
Add a pty test, written by Matthew Mondor
2011-09-24 15:53:01 +00:00
jruoho
b78b168963
More bugs in pow(3); cases for PR port-amd64/45391.
2011-09-23 13:48:28 +00:00
mrg
520e58c432
only decent into crypto/tests if ${MKCRYPTO} != "no". (sets are probably
...
also broken, but i didn't get that far yet.)
2011-09-21 02:14:38 +00:00
jruoho
354930c19a
Point to PR misc/44708 when failing. XXX: Remove once the test is fixed.
2011-09-19 06:38:02 +00:00
jruoho
6337efd6b4
Remove ieeefp subdirectory.
2011-09-19 05:42:13 +00:00
jruoho
9ebeca8a64
Move duplicate ldexp(3) test out from the tests/libc.
2011-09-19 05:40:38 +00:00
jruoho
4a45a29ad9
Move the tests/libc/ieeefp to tests/libc/gen to match the structure of libc.
...
Also rename the test files to gain functional scope.
2011-09-19 05:25:50 +00:00
jruoho
81fd6738d6
IEEE checks for the exponential family.
2011-09-18 05:19:18 +00:00
jruoho
9273f704b7
Add few basic checks.
2011-09-18 04:49:11 +00:00
jruoho
abfe6bc07d
Reduce tolerance to see whether still acosf(cosf(x)) != x on i386/qemu.
2011-09-18 04:48:38 +00:00
jruoho
2b1d7604bf
Remove ptrace(2) tests that are not yet ready but were accidentally
...
committed.
2011-09-17 18:53:31 +00:00
jruoho
9cbb4897e9
Simplify.
2011-09-17 18:52:21 +00:00
jruoho
e0a0895c11
IEEE checks for the arcus functions.
2011-09-17 18:08:35 +00:00
jruoho
6c414326e6
Add more cases.
2011-09-17 12:12:19 +00:00
jruoho
99d89af157
Few tests for the error functions.
2011-09-17 12:00:50 +00:00
jruoho
719ceba55f
IEEE corner case tests for the pow(3) family (incl. PR lib/45372).
2011-09-17 08:15:43 +00:00
jruoho
ca5cfe7128
Reduce the powers.
2011-09-17 06:21:19 +00:00
joerg
301722b440
Do not care about dead functions for test cases, in this case it is
...
often enough just noise.
2011-09-16 16:30:18 +00:00
plunky
2b8aaed8cd
NULL does not need a cast, here
2011-09-16 16:13:16 +00:00
blymn
2494728ef8
- Update the check files due to a bug fix in the slave code
2011-09-16 08:05:28 +00:00
jruoho
6ceed68f62
Adjust to see where this fails on i386/qemu.
2011-09-16 04:54:46 +00:00
christos
d4800a215d
fix printf format strings
2011-09-15 16:25:17 +00:00
christos
a2221b9cd5
add the reentrant function tests (copies of the non-reentrant one).
2011-09-15 14:51:06 +00:00
blymn
6f8e29ad78
- Add erase and kill to the terminal attributes so we can test
...
fetching them
- Remove functions from the input_functions array that don't really do
input
- Re-enable the reporting of poll events after a function call
- Check that the return_type from the slave matches the expected one
- If verbose then print out the byte streams being compared in
validate_byte
- When reporting a length mismatch during a byte validation, report
the actual lengths.
2011-09-15 11:53:12 +00:00
blymn
f47c5ad589
- add support for getparyx and getyx calls
...
- allow a NULL pointer to be returned to the director
- add support for passing back a single chtype character
- fix some indentation
- fix a lot of curses command calls that were just plain wrong
- don't try to allocate storage for a NULL parameter, it doesn't need it
2011-09-15 11:46:19 +00:00
blymn
82260c6d75
Remove the beep test for the moment, the return code does not conform
...
to SUSv2. An update to the slave code will break this test until
beep() is fixed but that will require a major bump on the libcurses
library due to the interface change which is being deferred until all
the tests are done and all the interface changes can be batched up.
2011-09-15 11:36:43 +00:00
he
e2734790d2
#ifdef on __vax__ one more place, to avoid reference to tanf() for vax.
2011-09-15 11:05:50 +00:00
martin
2f1110cffe
A test case may not assume opening /dev/tty does something sensible.
2011-09-14 14:34:37 +00:00
jruoho
484972bd18
Fix bug/oversight.
2011-09-14 13:47:40 +00:00
jruoho
ea461b7aa2
Additions to PR lib/45362: the float variants cosf(3), sinf(3), and tanf(3)
...
do not detect NaN for positive and negative infinity on i386 (qemu).
2011-09-14 13:29:58 +00:00
jruoho
8c901a0444
Use fabsf(3) when appropriate.
2011-09-14 06:50:43 +00:00
jruoho
8f667ecf71
Some tests for sine, cosine, and tangent.
2011-09-14 05:18:18 +00:00
jruoho
2cae26a144
Assign missing copyright to TNF.
...
XXX: If these originated from you, please modify accordingly.
2011-09-13 08:58:41 +00:00
jruoho
95a05df276
Improve metadata once again.
2011-09-13 07:07:32 +00:00
jruoho
95fc86fc91
Test ldexp(x, n) == x * exp2(n) && ldexpf(x, n) == x * exp2f(n).
2011-09-13 07:03:36 +00:00
jruoho
8fa0fcafcb
Test that scalbn(x) == ldexp(2) whenever FLT_RADIX == 2 (like it should be
...
on all systems except exotic relics such as IBM 360).
2011-09-13 06:50:41 +00:00
jruoho
a5f70e6aac
When failing, point to the tracker PR lib/45362.
2011-09-13 04:24:30 +00:00
jruoho
7638c70b09
Expand the test file to contain 48 individual test cases.
2011-09-12 18:07:29 +00:00
jruoho
f006ee10dc
Improve the metadata descriptions.
2011-09-12 17:45:51 +00:00
jruoho
5fe096344e
Fix typo.
2011-09-12 17:15:54 +00:00
jruoho
bfd4049668
Merge 't_floor' to 't_ceil', and simplify.
2011-09-12 16:48:48 +00:00
jruoho
1701dae929
Happiness of VAX implies ugliness of the code.
2011-09-12 16:28:37 +00:00
jruoho
9a0782c38b
Be more systematic and coarse-grained.
2011-09-12 16:00:56 +00:00
jruoho
173345a5e4
Add more assertions.
2011-09-12 15:47:14 +00:00
jruoho
e409403697
Start systematic testing of libm(3) by first evaluating the corner cases
...
(NaN, +0.0, -0.0, +Inf, -Inf) for the ldexp(3) and scalbn(3) families.
2011-09-12 15:27:40 +00:00
jruoho
3ace9e826f
Add one more case. Also remove a double fclose(3) and do not
...
steal stderr(3) as atf(7) may use it in case of failures.
2011-09-12 04:23:29 +00:00
jruoho
f972aad29e
See that system(3) works.
2011-09-11 10:32:23 +00:00
jruoho
6629be1b13
Naive tests for the naive putc(3) family.
2011-09-11 09:02:45 +00:00
jruoho
4c55f62c75
Few unit tests for the fopen(3) family.
2011-09-11 07:31:20 +00:00
jruoho
1c183744f5
Couple of unit tests for fflush(3).
2011-09-11 05:15:55 +00:00
jmmv
7970eac628
It's ATFFILE=no, not NOATFFILE=true. This fixes the contents of the
...
installed Atffile, and allows the tests to actually run.
2011-09-08 18:44:38 +00:00
jmmv
5de965f758
Remove temporary file committed by mistake.
2011-09-08 18:27:01 +00:00
blymn
14cd7a9b79
- Add a delay just after the function is passed to the slave, this
...
gives the slave time to process the command and produce output before
the director drains output from the slave. This is particularly
important when the slave is set up for timed input because the ioctl
used by curses to set the tty parameters waits for pending output to
drain.
- make a debug statement conditional on verbose again
- make a warning about output from the slave conditional on verbose
- fix setting the minimum input delay, it should be milliseconds not
nanoseconds.
- Handle nanosleep returning early due to a signal, restart the sleep
with the remaining time.
2011-09-08 10:56:49 +00:00
plunky
87d4f6076b
Apply casts to cases where xdrproc_t is expected but is not
...
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
jruoho
537167411c
Remove some cruft that is no longer needed.
2011-08-29 17:39:54 +00:00
gson
4d457a688d
Track spacing changes of df.c 1.89
2011-08-29 17:31:41 +00:00
jruoho
86cc76e795
Remove Xfails that are related to the infamous qemu/amd64 floating point
...
bugs. It appears to be quite difficult to identify the exact Qemu version
and setup. These do not fail on the TNF's qemu/amd64 setup, which can be
taken as a reference point for expected failures.
2011-08-29 12:50:50 +00:00
christos
010ceb7a08
- err -> errx mistakes
...
- make sure that -v does not change the program behavior
- don't set revents in poll
- add more debugging
- only call read when we have POLLIN
- don't mix I/O from master while processing input
2011-08-29 12:49:37 +00:00
christos
45c0e7eb0b
fix bug where we read the same argument twice. Name the timeout val the
...
same 'tval' in both timeout routines.
2011-08-29 12:46:03 +00:00
christos
ee83fe41db
comment out racy test that I will not bother fixing for now.
2011-08-29 12:44:35 +00:00
christos
6247ed98ed
change comparend to compare so that this passes now.
2011-08-29 12:43:51 +00:00
christos
4ac2ea1b30
This could have never worked before since the syntax was wrong. Unfortunately
...
since I added the error checking, I was blamed for it failing. Go figure.
2011-08-29 12:42:57 +00:00
christos
e23c9e7ff0
we never get the b character since we timeout and drain!
2011-08-29 12:41:38 +00:00
christos
c029707cf1
make sure that our terminal has a consistent size now that terminfo obeys
...
the environment variables.
2011-08-29 12:40:59 +00:00
gson
364b5325bc
Fix remaining misaligned columns in golden output, missed in previous commit
2011-08-29 04:55:58 +00:00
gson
61dd722e5c
Golden output was not so golden after all
2011-08-28 19:09:34 +00:00
christos
df4f0e8339
remove strpct copts
2011-08-28 09:39:44 +00:00
mbalmer
c33b991f31
Fix build (strcpt fallout).
2011-08-28 09:02:51 +00:00
dyoung
dd4d60eb36
Build and install ppath(3) tests.
2011-08-27 18:55:51 +00:00
dyoung
199cc6c15a
Add tests for ppath(3).
...
TBD: hook into build and update set lists.
2011-08-25 19:09:46 +00:00
hannken
92eca745a6
t_fd/sigio: pass test if we receive at least one SIGIO signal.
...
While a real kernel collects these signals until the connect() returns and
then delivers one signal rump delivers every signal so we get more than one.
Ok: Antti Kantee <pooka@netbsd.org>
2011-08-25 18:46:01 +00:00
dholland
ef311a878c
Requires stdint.h.
2011-08-22 00:33:16 +00:00
riastradh
0ed1cdc740
Add test for `ln -s / foo && cd foo'.
2011-08-19 01:25:27 +00:00
riastradh
4b12d41728
No more xfail for PR kern/36681.
2011-08-18 21:44:55 +00:00
dholland
f5e6253528
Fix the errno tests so if someone messes up permission checks and it
...
fails, it won't trash your /root/profile. Instead, the victim will be
/usr/bin/fpr. This way it at least won't break the world.
XXX: this test should probably be testing such things in a rump namespace.
2011-08-18 19:48:03 +00:00
christos
3cb2c388bf
Fix enums confusion.
2011-08-18 02:44:45 +00:00
christos
7c3932bf25
document non-literal format strings
2011-08-17 16:57:13 +00:00
gson
e5c97dbc4f
As the sigio test case is currently failing with "sigcnt != 1", print the
...
actual sigcnt value to aid in diagnosing the problem.
2011-08-15 15:19:08 +00:00
riastradh
772f45cfc9
Cache vattr in psshfs's setattr.
...
This means within the cache window, a setattr that wouldn't change the
remote file's attributes from our current view of them will not be
relayed to the server and wait for the server to answer. Thus, e.g., a
process with a periodic timer interrupt that calls open(2) in a loop
can make progress with much higher probability than without caching.
XXX The test case doesn't work, so it's currently disabled. It needs
to stop the child of sshd that is handling an sftp session, not sshd
itself, and it's not obvious how to do that.
ok pooka
2011-08-12 04:14:00 +00:00
riastradh
c0f2eaa637
Need root for /dev/power.
2011-08-12 03:59:44 +00:00
uch
154297fd6a
add ATF tests for v7fs. patch by njoly@. thank you.
2011-08-11 10:52:12 +00:00
hannken
b80057eeb2
For devices, sockets and fifos ignore setting the file size to zero to make
...
open(..., O_TRUNC) happy and allow them to write through the lower layer.
Fixes PR #43560 (writing to null device in unionfs fails)
2011-08-10 06:27:02 +00:00
martin
2e58500e62
Add missing RUMP_SERVER export, so the "normal" test does not fail with
...
a stupid error.
2011-08-09 13:48:55 +00:00
rmind
a0ffc02ab8
Rename slightly misleading KTHREAD_JOINABLE to KTHREAD_MUSTJOIN.
2011-08-07 14:03:15 +00:00
hannken
342315ffad
Change union rmdir semantics to fail directory removal for
...
non-empty directories like all other file systems do.
Change test accordingly.
2011-08-07 06:01:51 +00:00
hannken
efc3d2ec25
When union_lookup() creates a shadow directory and nameiop is not LOOKUP
...
it has to restart the lookup to get the componentname right.
Fixes PR #44383 (an endless stream of whiteout and opaque dir problems ...)
2011-08-05 08:17:47 +00:00
hannken
e8c9988bef
Make whiteouts work on journaling ffs file system by adding the missing
...
UFS_WAPBL_BEGIN() / UFS_WAPBL_END() around CREATE and DELETE ops.
Fixes PR #44377 (union whiteouts don't work on ffs -o log)
2011-08-03 10:03:51 +00:00
oster
bfb5c54728
Note that PR kern/44251 is fixed.
...
Add tests for normal configuration of RAID 1 and RAID 5 sets.
2011-07-29 19:57:38 +00:00
jruoho
16327d2721
As per PR bin/45180, do not traverse too deep.
2011-07-27 05:04:11 +00:00
christos
b7b6a059c7
make sum volatile to avoid printing
2011-07-24 14:00:36 +00:00
martin
04bb4b5206
gcc optimizes away the side effect free call to the "poke" function which
...
is supposed to smash our stack in this test case.
So: make it print out some dummy value based on the smashing changes.
2011-07-23 22:17:43 +00:00
hannken
1db98a4a6d
putter_fop_stat(): set st_mode to S_IFCHR.
...
Fixes PR #44807 : something broken in stat(2).
2011-07-23 14:28:28 +00:00
alnsn
f60611afcd
Don't assume that "first lock that blocks" is a lock with the lowest
...
start offset and change the test to work when F_GETLK returns any
lock that blocks.
2011-07-23 09:59:14 +00:00
jym
3c92ae0499
Modify exec test to be more resilient regarding partial exec protection:
...
skip test instead of returning a failure that could be misinterpreted.
Suggested by Jukka in private mail.
2011-07-20 22:53:44 +00:00
hannken
9f9c02f1cd
Even though msdosfs never truncates file names it advertises _PC_NO_TRUNC
...
as zero. Make it advertise one (no_trunc == true).
Names longer than NAME_MAX (255) will never pass namei() btw.
Fixes PR #43670 (msdosfs claims support for filenames longer than {NAME_MAX},
but fails)
2011-07-20 11:52:00 +00:00
dholland
0d0aaf26a0
Remove nonexistent include directory from CPPFLAGS.
...
PR 45068 from Henning Petersen.
2011-07-19 03:30:46 +00:00
jym
ca453df649
Add a simple test case to check executable mapping rights for mprotect(2).
...
- provide an exec_prot_support() routine so $ARCH can indicate whether
it supports execution protection or not, and skip test accordingly.
- have a trivial 'return_one' shellcode to copy anywhere in a page, and
call it. The decision to keep the assembly solution is mine, reasons are
twofold:
- all pure-C implementations cannot be controlled easily:
bounds detection (beginning/end) of return_one is unpredictable,
or requires the use of overkill solutions like libelf. Using
dlsym(3) was a good proposal, however I can't use it to know the
end address of the payload. It makes copying of the shellcode a bit
more difficult: using a constant may be too small (code has not been
entirely copied, and can lead to errors that can be erroneously
detected as "test passed"), or too big (depending on where it is mapped
in memory, copying past the end of the function may trigger SIGSEGV).
- I have to ensure that the resulting assembly is the most compact
possible, especially as it will be reused to test other parts of
memory (stack, data, rodata, etc.).
Only i386 and amd64 are implemented so far. Others will come in due time.
FWIW, writing the exec_prot_support() callback and the return_one payload
should be enough. Writing callback requires good knowledge of the platform,
depending on chip revision, CPU, board, MMU... the protection level may vary.
Current files are put under lib/libc/arch/* and lib/libc/common/. Feel free to
move them around the tests/ tree. Keep in mind that the common/ and arch/ code
will be used outside of libc, so please do not hide them too deep in the tree.
I checked a few architectures via build.sh cross-compile, and will keep an
eye on buildbot for potential build breakage. Feel free to contact me in
case you see any, of course.
2011-07-18 23:16:08 +00:00
dholland
5b854a1a07
ffs and ffslog are no longer xfail.
2011-07-18 06:47:08 +00:00
jruoho
650c5cb762
Verify that dup2(2) and dup3(2) fail with EBADF if the "new descriptor" is
...
specified to be larger than RLIMIT_NOFILE.
2011-07-18 04:29:37 +00:00
jruoho
ce5544e745
PR lib/45148 was fixed; remove xfail.
2011-07-16 14:29:15 +00:00
jruoho
450530506c
Fix wrong linker flag that has always been lurking here.
2011-07-15 14:00:41 +00:00
jruoho
dacd6ba8f0
Split out the -lpthread tests to a separate file.
...
XXX: The only thing gained from this is seeing whether -lpthread breaks
the getenv(3) family. Yet, a strict hypothesis about this would require
that the two test files are identical, which they are not.
2011-07-15 13:54:31 +00:00
jruoho
11ee5754de
Add two more naive tests.
2011-07-15 11:27:23 +00:00
jruoho
844c18226d
Add some cases for dup2(2) and dup3(2).
2011-07-15 09:40:16 +00:00
jruoho
31e0c3fb7c
Split the test to two contextually different tests.
2011-07-15 07:39:26 +00:00
jruoho
1ea16e5059
Rename two test files to get functional scope (and avoid confusion
...
with ctype(3)). No functional change.
2011-07-15 07:35:21 +00:00
jruoho
8a16de8dc8
Few naive unit tests for the getprotoent(3) family.
2011-07-15 06:41:29 +00:00
jruoho
943257c643
Move the uvm "loan" test to tests(7).
2011-07-14 11:08:44 +00:00
jruoho
fba4fe8aa3
Remove the 't_mincore' test case, as it is essentially a less elegant
...
version of the recently added page residency checks.
2011-07-14 10:24:56 +00:00
jruoho
c198c89355
Add the test cases from the old ../regress/sys/uvm/mmap/mmap.c.
2011-07-14 08:09:48 +00:00
jruoho
99db6ea634
Use ATF_CHECK() when appropriate.
2011-07-14 07:33:20 +00:00
jruoho
5fb118d0d5
Add few simple test cases.
2011-07-14 05:46:04 +00:00
jruoho
717eba57b8
Adjust.
2011-07-14 04:59:14 +00:00
jruoho
d808fe5f3c
Rename few test case names. No functional change.
2011-07-13 11:17:03 +00:00
njoly
247e3a69b7
Fix off-by-one in strlen_huge testcase.
2011-07-12 12:08:07 +00:00
njoly
730b47d6fe
Convert some more ATF_REQUIRE calls to ATF_CHECK.
2011-07-11 17:51:48 +00:00
njoly
1732ed7d11
Make types_signed/types_unsigned testcases use ATF_CHECK instead of
...
ATF_REQUIRE.
2011-07-11 16:12:56 +00:00
jruoho
aa3f9890b8
Split out 't_printf' and 't_scanf' from 't_format' to gain the common
...
"functional scope" for the test files.
2011-07-08 06:38:03 +00:00
jruoho
8caf60c4cf
Remove the amd64-part from the Qemu checks. The following tests fail also on
...
i386/qemu: 'strtold_inf', 'strtold_nan', and 'infinity_long_double'. It seems
that more than anything else, these are dependent on the used Qemu version.
2011-07-08 05:10:05 +00:00
jruoho
8b5271a3be
Fix previous.
2011-07-07 19:29:58 +00:00
jruoho
b238e6b2f8
Rename test case names.
2011-07-07 16:31:11 +00:00
jruoho
cc0041648e
Move 't_glob_star' to 't_glob' for glob(3).
2011-07-07 15:53:27 +00:00
jruoho
9b5c52594e
Merge 't_environment' and 't_environment_pth'.
2011-07-07 15:50:23 +00:00
jruoho
6836bf7807
Rename some test case names. No functional change.
2011-07-07 11:12:18 +00:00
jruoho
f7ca1d1262
Improve the QEMU/amd64 detection.
2011-07-07 11:04:30 +00:00
jruoho
34b08852ac
Rewrite the limit-test.
2011-07-07 10:27:31 +00:00
jruoho
1b9f2dc9c1
Move 't_syslog_pthread' to 't_syslog' for consistency with libc.
2011-07-07 10:02:52 +00:00
jruoho
9a514225a1
Rename some test case names for consistency. No functional change.
2011-07-07 09:49:59 +00:00
jruoho
2b91d03e47
Few basic checks, including a case for strnlen(3).
2011-07-07 09:31:27 +00:00
jruoho
b34acef418
Add one simple test case.
2011-07-07 09:16:06 +00:00
jruoho
54bb10746c
Split out the string tests from t_string.c for consistency.
2011-07-07 08:59:30 +00:00
jruoho
1c3ef2c741
Rename some test case names for consistency.
2011-07-07 08:27:36 +00:00
jruoho
7e7bf0e2e7
Remove syscall SUBDIR.
2011-07-07 07:31:29 +00:00
jruoho
4f84d54f76
Add some errno-checks.
2011-07-07 07:27:49 +00:00
jruoho
e32f731829
Remove 't_cerror' (this is tested by numerous individual tests).
...
Rename 't_context' to 't_getcontext' for consistency.
2011-07-07 07:06:21 +00:00
jruoho
068fb4f133
Add the syscall tests back. Couple of files and tests were also renamed for
...
consistency. All of these now mimic the libc structure.
2011-07-07 06:57:53 +00:00
jruoho
5152b0c082
Deprecate tests/sycall. The tests will be added back to tests/libc/sys.
2011-07-07 06:16:59 +00:00
jruoho
b54ff1eb07
Move the 'syscall/t_cmsg' test to 'include/sys/t_socket'.
2011-07-07 05:50:26 +00:00
spz
8efcedf571
give the idea, rc5 and mdc2 checks a chance of working if they are defined
...
to be compiled
2011-07-05 10:03:09 +00:00
jruoho
5e197927a8
Remove the xfail check after all (PR kern/45113 is bogus or fs-dependent).
2011-07-05 04:33:23 +00:00
mrg
8aa4955581
XXX: ugly hack to make these valid for vax fp.
...
XXX: could consolidate some of this into a common header, but i'll
leave that clean up for another time.
2011-07-04 22:33:29 +00:00
jruoho
e2676bb856
As the Qemu clocks are not accurate, switch the usleep(3) delays to sleep(1).
2011-07-04 20:09:28 +00:00
jruoho
9b1f3701bf
Few tests for mkfifo(2).
2011-07-04 15:46:09 +00:00
jruoho
d9922f893e
Adjust the EEXIST-check once more. (This failed incorrectly in the Qemu-runs.)
2011-07-04 09:29:37 +00:00
jruoho
c9cfc0c76b
Few fundamental checks for chroot(2) and fchroot(2).
2011-07-04 08:09:11 +00:00
jruoho
c9b92f91be
Basic tests for issetugid(2).
2011-07-04 05:10:23 +00:00
jruoho
60c15c9c00
For granularity, split the EEXIST-check to a separate test case.
...
It appears that yet another bug was caught.
2011-07-04 04:10:34 +00:00
jruoho
fd6ab578e9
Put the previous check back and point to PR kern/45113. Also check whether
...
_PATH_DEVNULL exists before attempting to obtain EEXIST from mknod(2).
2011-07-04 03:52:11 +00:00
jruoho
1ab726096b
Require an unprivileged run.
2011-07-04 03:23:31 +00:00
jruoho
a3b49d7e2f
Three simple unit tests for revoke(2).
2011-07-03 21:06:56 +00:00
jruoho
33e373ef8e
Remove wrong check.
...
XXX: Why does this fail on tmpfs but not ffs?
2011-07-03 20:22:51 +00:00
jruoho
3b8e98cd4e
Fix copy-pasto.
2011-07-03 19:02:00 +00:00
jruoho
81ab4d12a9
Few naive test cases for link(2).
2011-07-03 17:47:15 +00:00
jruoho
5b70ae820d
The PR was fixed. Remove atf_tc_skip().
2011-07-03 15:42:07 +00:00
mrg
6520ba9809
avoid building stuff that depends upon pic objects if MKPIC == no.
2011-07-03 15:28:25 +00:00
jruoho
85c7095d12
Few naive tests for unlink(2).
2011-07-03 15:05:43 +00:00
jruoho
fa196d116d
Do not play with master.passwd(5). Just in case the test actually succeeds...
2011-07-03 14:45:07 +00:00
jruoho
8ce73eddfe
Few simple tests for mknod(2), including a skipped one for PR kern/45111.
2011-07-03 14:34:21 +00:00
mrg
8ab8bb438f
only build the ld.elf_so tests if MKPIC != no.
2011-07-03 06:46:49 +00:00
mrg
634f9d1313
apply some -Wno-enum-compare.
2011-06-29 02:36:26 +00:00
mrg
8f5647d330
apply some -fno-strict-aliasing
...
XXX -- someone please fix this properly.
2011-06-29 02:36:13 +00:00
christos
88d695edac
fix fallout from including signal.h in rump_syscallargs.h
2011-06-26 13:17:36 +00:00
christos
60e8629a5d
fix fallout from including signal.h from rump_syscallargs.h
2011-06-26 13:15:22 +00:00
christos
5c85f3b56b
fix fallout from including signal.h in rump_syscallargs.h
2011-06-26 13:13:31 +00:00
christos
360b33ff11
more fallout from rump_syscallargs.h including <signal.h>
2011-06-26 13:08:08 +00:00
christos
01c7e2ef5b
ggr, how many of those I will need to fix. Fallout from the bogus inclusion
...
of <signal.h> in rump_syscallargs.h.
2011-06-26 13:06:00 +00:00
christos
7933a8d7d6
need signal.h for kill()
...
this is why it was wrong for rump_syscalls.h to include this.
2011-06-26 12:14:59 +00:00
nonaka
c52f9a5df2
PR/45015: ld.elf_so: support ELF symbol versioning
...
Applied latest patch.
2011-06-25 05:45:10 +00:00
jruoho
013b7b496e
Require unprivileged runs when appropriate.
2011-06-21 01:45:26 +00:00
jruoho
f0756496ab
Few naive tests for truncate(2).
2011-06-20 18:03:41 +00:00
joerg
208082f32c
Try to initialize retval to something sensible.
2011-06-18 20:05:56 +00:00
joerg
2df16a8d62
input() isn't used
2011-06-18 20:05:28 +00:00
christos
355eb06ba8
Remove environment variable settings.
...
Now that we are not abusing $HOME to get to the terminfo db, make it visible.
2011-06-17 16:59:51 +00:00
christos
046bfa491c
vis'ify the excess byte printing so that xstlproc does not barf.
2011-06-17 16:32:31 +00:00
christos
ab526f5155
turn off verbose
2011-06-17 16:30:58 +00:00
christos
e8b3e7091a
turn on warnings
2011-06-17 16:30:30 +00:00
christos
23bea5092d
- pass things in arguments instead of environment
...
- sanity check arguments
- disable extra data warning, old tests gave it too
- print more detailed errors
- use err/warn more
*some tests still fail; more than they used to*
2011-06-17 02:15:28 +00:00
joerg
afc8527716
Use proper format strings.
2011-06-16 15:33:24 +00:00
mrg
c25406cbc7
evbppc can do modules now.
2011-06-15 23:45:45 +00:00
jmmv
cb5d8fbf8d
Fix definition of the plus_tflag test case. Uncovered by atf 0.14.
2011-06-15 07:58:03 +00:00
jmmv
884a148d21
Fix obvious typo in test case name. Uncovered by atf 0.14.
2011-06-15 07:54:32 +00:00
plunky
e19d93dc5d
gcc seems to pad small character arrays, use an array of ints
...
while here, make the poke function non-static, so that it doesnt
get optimised away
2011-06-15 06:09:21 +00:00
njoly
e792323b22
Avoid printf(3) directive interpretation in long_format testcase
...
description.
2011-06-14 12:17:57 +00:00