Commit Graph

2592 Commits

Author SHA1 Message Date
christos
7cf7644fc7 GSoC 2016 Charles Cui: Implement thread priority protection based on work
by Andy Doran. Also document the get/set pshared thread calls as not
implemented, and add a skeleton implementation that is disabled.
XXX: document _sched_protect(2).
2016-07-03 14:24:58 +00:00
christos
ac52a1e696 Add an hmac test. 2016-07-02 14:52:09 +00:00
ozaki-r
743750f2e4 Destroy interfaces at the end of tests
It's useful to know if interface destructions work correctly or not
with complex internal states (e.g., caches).
2016-06-29 07:29:04 +00:00
pgoyette
b1b83700cd Do this more cleanly - put the do-we-have-crypto check inside the actual
do-the-test code rather than in a test's head() code.  This way, if we
ever add more tests, we simply need to invoke the common do-the-test code
with an appropriate flag argument rather than duplicating the test.
2016-06-27 05:29:32 +00:00
pgoyette
7f7ba5ce4b Split each test into its own test case.
For test case loop2, where there are multiple prime factors greater
than 65535, skip the test if the program was not built with crypto
support.  We need crypto/openssl for large factors.

Should address PR bin/23663
2016-06-27 05:08:18 +00:00
sevan
efb5f2c4e7 PR bin/4841 was filed regarding the handling of blank lines when cat was invoked
with -be, the test case however did not utilise any blank lines, only testing
that the text was aligned.
2016-06-26 22:50:46 +00:00
kre
bd9b00916f Remove tests of "dawn" and "sunset" in preparation for removing
them from parsedate() itself sometime soon.
2016-06-22 15:01:38 +00:00
ozaki-r
e8cb777b69 Tweak route get outputs to make tests work
"expire" value of route get output is unexpectedly a negative value
on rump kernel for some reasons and the tests almost always fail
on babylon5. So just ignore it to make tests work for now. Should
fix it in the future.
2016-06-21 10:18:27 +00:00
ozaki-r
f91dfc925e Make a bunch of test names self-descriptive 2016-06-21 05:04:16 +00:00
joerg
12f813b23d Link static test program with LDSTATIC to deal with PIE. 2016-06-18 12:12:09 +00:00
pgoyette
aec3683782 When deadbeef is treated as a 32-bit signed integer, it actually has a
negative value.  So, if the value gets written into a sysctl variable,
and then is read back, the twos-complement value is displayed.

So, when checking for the value having been written, make sure we check
for the correct value!
2016-06-17 03:55:35 +00:00
sevan
17a9d10433 Add a unit test for PR bin/51250 called se_output. se_output checks the output of cat
when invoked with '-se', to ensure that a '$' is printed on blank lines.
2016-06-16 01:04:58 +00:00
agc
83432fa6b8 remove some unused test cases 2016-06-01 14:52:56 +00:00
agc
6d27eeee35 Use human2atf to generate a t_netpgpverify.sh script which is half the
size of the previous one (using on-the-fly gzip compression), and includes
more cases (including a gpg-signed file for cross-testing purposes).

Add the appropriate Testspec file.
2016-06-01 06:39:11 +00:00
pgoyette
9458f2be2e Fix testing of returned entptr, and fix three affected tests.
From kamil@ via PR lib/49632
2016-06-01 01:12:02 +00:00
christos
5cca8a9eaf Fix mprotect for the helper. 2016-05-28 14:38:29 +00:00
christos
ec3db6b7b6 Skip the mprotect_exec test if PaX MPROTECT restrictions are enabled. 2016-05-28 14:34:49 +00:00
hannken
6fc7edbd65 Disable PAX mprotect to make just-in-time-compile tests work again.
Ok: Christos Zoulas
2016-05-24 10:16:34 +00:00
riastradh
8338092962 Test for PR kern/51135 is no longer failing. 2016-05-22 04:34:44 +00:00
ozaki-r
7fa1e6be86 Adjust the tests for temp option that works now
See PR kern/50127
2016-05-20 06:48:52 +00:00
kre
c80063823d Use valid (standard) shell syntax, in anticipation of /bin/sh enforcing
it sometime soon (perhaps.)
2016-05-17 09:05:14 +00:00
kre
b752c81378 Add a new test case to validate N>&N redirect disables close-on-exec.
OK christos@
2016-05-15 15:44:43 +00:00
kre
cd13213fdd Add another test for the 48875 fix fallout... 2016-05-14 00:33:02 +00:00
pooka
0a4930ca68 mark read_random xfail kern/51135 2016-05-13 13:22:28 +00:00
kre
e588572b24 Grunge. I know I fixed this typo before... must have been in a different
couy of the test.
2016-05-12 14:25:11 +00:00
kre
2f35ca415e Verify that questionable characters don't have bad associates.
ok christos@
2016-05-12 13:34:23 +00:00
pooka
2d2ae8f1cf Test that reading /dev/random returns within a reasonable time. 2016-05-12 11:41:43 +00:00
kre
5ab36d6022 Add a test for fd redirections on functions in loops (the etcupdate issue)
and also fix a quoting bug which was causing a test to fail, though
ATF was ignoring (an ATF bug to be investigated later.)

OK christos@
2016-05-11 17:43:17 +00:00
kre
07e424459c PR bin/48875 PR bin/51123 This adds tests more that verify fide descriptor
redirection works correctly (including that the bugs reported in those PRs
are fixed.)  Note that the tests for 48875 are slow, so one of the new
test cases ends up running > 25 seconds (just doing sleeps) - each individual
test is just a few seconds, but there are several of them.

OK christos@
2016-05-09 22:34:37 +00:00
kre
44b3998960 Remove the trap_zero__explicit_return test case - it was testing undefined
behaviour (and failed with the NetBSD shell, and was marked as expected to
fail.)   Other shells do different things.   The test was worthless, and is
now gone.

OK christos@
2016-05-07 23:51:30 +00:00
jakllsch
2d9fbba46c Use rump_schedule() before calling things in the rump context.
Hopefully fixes these tests on all ports.
2016-05-05 17:40:26 +00:00
jakllsch
5c7aaf765b t_hid doesn't use rump correctly, and thus consistently fails; mark as such 2016-05-05 16:55:56 +00:00
kre
25d58d24b2 Make the 9 months ago test, when reverting from late November to the
end of Feburary just a little less bogus (stupid cut & paste error).
2016-05-05 02:12:21 +00:00
gson
85c4af6b99 Reduce the step size, exposing another bug. 2016-05-04 18:36:46 +00:00
dholland
a0feec40ce Cite a relevant PR for msdos_renamerace instead of one that was fixed
several years ago.
2016-05-04 08:30:22 +00:00
kre
e4edd6e6c4 PR bin/50574 - make the tests conform to what parsedate() actually
does, so they should no longer fail.   This needs parsedate.y 1.28
in order to work properly.

OK christos@
2016-05-03 18:18:15 +00:00
kre
97c9ae31d2 Whitespace. No changes. OK christos@ 2016-05-03 18:10:38 +00:00
jakllsch
ffe5c1f16e Call rump_init() before using rump functionality.
This change should make these test cases consistently fail on all ports.

Related to PR kern/51096.
2016-05-02 17:24:06 +00:00
christos
28ac500a6d More redirect tests, in particular, tests for redirects to/from
file descriptors outside the 0..9 range, and complex fd
reassignments.  Also test that the shell can cope with the
value of ulimit -n changing (downwards, up is harmless)
(Freom kre@)
2016-05-02 01:47:14 +00:00
gson
73fec7e59e In the "relative" test case, run the tests multiple times relative to
various dates over a span of a few decades, instead of just once
relative to the current date.  This makes the test fail consistently
instead of sometimes failing and sometimes not depending on when
it is run.  Makes PR lib/50574 consistently reproducible.
2016-05-01 16:39:47 +00:00
christos
c6dfc962be use "" so ${TEST_SH} is expanded. 2016-04-29 18:29:17 +00:00
ryoon
09a886100c Tab alignment 2016-04-29 07:12:34 +00:00
ozaki-r
743ec2bd92 Don't depend on the order of interfaces
Instead add tests of querying varying number of interfaces
and tests of checking if removing interfaces is reflected.
2016-04-28 01:57:45 +00:00
ozaki-r
b7e089f63a Don't depend on the order of interfaces
The kernel guarantees nothing about it.
2016-04-28 01:20:31 +00:00
christos
5befeffc11 - Adjust to the correct wait6 semantics (returns pid)
- Avoid race in setrlimit(2)
2016-04-27 21:14:24 +00:00
ozaki-r
8bb2f299cd Return 0 for $DEBUG=false case 2016-04-23 15:47:54 +00:00
ozaki-r
4b837129f9 Add more tests of RTF_REJECT 2016-04-23 08:54:20 +00:00
ozaki-r
0ba9b3455b Add more tests of RTF_REJECT 2016-04-22 06:24:10 +00:00
ozaki-r
e53ad40782 Fix tests for blackhole routes
The gateway of a blackhole route must be a loopback interface.
2016-04-21 09:46:49 +00:00
ozaki-r
2223b893c1 Add tests of route flags using IPv6 addresses 2016-04-21 05:10:15 +00:00