Commit Graph

2684 Commits

Author SHA1 Message Date
kre
976d7ab300 + -lrumpdev 2016-08-10 23:25:39 +00:00
kre
e9acd28970 + -lrumpdev 2016-08-10 23:07:57 +00:00
roy
e746a65f68 Add -lrumpdev so that tests work again. 2016-08-10 23:00:39 +00:00
kre
fa3392f086 + -lrumpdev 2016-08-10 22:45:39 +00:00
kre
d5417f3297 Move -lrumpdev so it is effective.
This test still fails (as does another using tap interfaces) ...

tc-se:rump.ifconfig: clone_command: Device not configured
tc-se:rump.ifconfig: exec_matches: Device not configured

Something is wrong with rumpnet_tap ...
2016-08-10 22:42:21 +00:00
kre
e416c313ce + -lrumpdev (and avoid doing stuff twice). 2016-08-10 22:37:07 +00:00
kre
113943956a + -lrumpdev 2016-08-10 22:30:02 +00:00
kre
c7f69180d5 + -lrumpdev 2016-08-10 22:17:44 +00:00
kre
71c9d3421c + -lrumpdev 2016-08-10 22:05:07 +00:00
kre
02ef134954 + -lrumpdev 2016-08-10 21:33:52 +00:00
kre
b95a77e39c Extra libs for rump. 2016-08-10 21:10:18 +00:00
ozaki-r
a0b47389e9 Add rumpdev library for config_cfdriver_attach 2016-08-10 07:50:37 +00:00
kre
28a5575028 This test should be testing how the kernel should behave, not how
it actually (used to) behave when it was incorrect...   Aside from
a possible EPERM (which is not tested) the only error possible from
mlock() is ENOMEM.   POSIX also allows EINVAL if the address is not
page aligned and the implementation does not round down to the previous
page boundary, but NetBSD does.

The kernel was recently fixed to return the correct errors for mlock()
so now we really need the test to be checking them, and not expecting
the incorrect errno values that the kernel used to return.

Same for munlock() - there ENOMEM is the only possible error, again,
EINVAL cannot happen as the kernel rounds to page boundaries.
For munlock() the kernel has not yet been corrected (that is coming
real soon...) and one of the munlock() tests will currently fail
(as of the time this commit is made, hopefully not for much longer)
as it should - it is indicating a kernel bug.

Note that NetBSD mlock(2) talks about EINVAL for cases where the length
parameter is negative ... but that is a size_t - good luck having that
ever occur (the man page will soon be corrected as well.)
2016-08-09 12:02:44 +00:00
pgoyette
e9b0487b4a This now needs librumpdev and librumpvfs to work. 2016-08-08 15:01:59 +00:00
pgoyette
9d0547e2ff Need librumpdev and librumpvfs 2016-08-08 14:58:40 +00:00
pgoyette
95d2314211 This one needs librump dev (and librumpvfs) too 2016-08-08 14:54:27 +00:00
pgoyette
b28fefb558 And this one also needs librumpvfs 2016-08-08 14:49:35 +00:00
pgoyette
00d0208049 More need for librumpdev 2016-08-08 14:46:35 +00:00
pgoyette
08db8f650e No underscore needed 2016-08-08 14:40:19 +00:00
pgoyette
64515c0f48 We also need librump_vfs
While here, remove duplicate entry for librump
2016-08-08 14:34:02 +00:00
pgoyette
c33a62fd17 And yet another one 2016-08-08 14:22:43 +00:00
pgoyette
03427d6925 Another place where we need librumpdev 2016-08-08 14:16:32 +00:00
pgoyette
e140ba111a We now need librumpdev to resolve rumpns_config_cfdriver_attach which
is now used in a bunch of network modules/components
2016-08-08 14:11:08 +00:00
pgoyette
2c49ff4a48 Add rumpdev library since we're now calling config_cfdriver_attach()
Should fix the newly-introduced test failure.
2016-08-07 23:34:31 +00:00
scole
d68880c4ee PR port-ia64/51261
Fix for ia64
2016-08-05 15:02:29 +00:00
scole
ea5cb0d634 PR port-ia64/51261
Make this compile for ia64
2016-08-05 15:01:39 +00:00
jakllsch
cfdb571b53 use __dead 2016-08-04 11:49:07 +00:00
christos
c10c4abe0f Realtime signal support from GSoC 2016, Charles Cui. 2016-08-04 06:43:43 +00:00
pgoyette
8d18247504 We don't have any FILES, so no need for a FILESDIR 2016-08-03 23:53:50 +00:00
christos
59c5c6b5ef we require root for sched_fifo, and more verbose messages. 2016-07-31 13:01:29 +00:00
njoly
d3e4dbe2f3 New getsockname(2) testcase for UNIX domain sockets. 2016-07-30 11:03:54 +00:00
pgoyette
64222d3a12 Mount the snapshot read-only; otherwise we get a nasty panic.
Re-order the clean-up steps to properly undo what we did.
2016-07-29 20:27:37 +00:00
pgoyette
0c0a621f71 Add a basic test for fss(4)
XXX For now, we just create required files (including mount-points)
XXX in the test's working directory.  Eventually someone with more
XXX rump-foo than I should create a fss rump-component and then update
XXX the test to run under rump.
2016-07-29 06:13:39 +00:00
pgoyette
7dc153cb5a Remove. Nothing here (or below) seems to refer to it, and it won't
work anyway due to the case of the 'l' in CPPFlAGS
2016-07-29 06:11:12 +00:00
pgoyette
3ff4e5ad94 Update the test - the "official" name of the vnd configuration utility
was changed in NetBSD 7 to vndconfig(8).
2016-07-29 05:23:24 +00:00
ozaki-r
3db8106383 Add some tests for route change 2016-07-21 02:02:30 +00:00
ozaki-r
852524ba75 Remove extra grep 2016-07-21 01:56:54 +00:00
ozaki-r
261b1cf92f Make the test name self-descriptive 2016-07-21 01:56:27 +00:00
christos
4d8445a4a7 Not designed for PIE 2016-07-18 12:17:39 +00:00
njoly
9c5f636bf3 Add testcase that ensure that stack hard limit is never smaller than
soft limit.
2016-07-13 09:53:16 +00:00
ozaki-r
bdcbfcd17f Fix test names 2016-07-08 08:27:07 +00:00
christos
82732dd294 fix uninitialized var. 2016-07-06 14:42:53 +00:00
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
ozaki-r
095fdb0468 Add a test case for static ARP
It tests receiving an ARP request that has a spa (i.e., IP address) whose
ARP entry already exists in the table as a static ARP entry.
2016-04-18 02:27:34 +00:00
ozaki-r
c73a69e593 Add a new test case for PPPoE using PAP
From s-yamaguchi@IIJ (with some tweaks by me)
2016-04-15 01:38:16 +00:00
riastradh
4f7dd3337d Introduce pserialize-safe linked lists.
These are like LIST_* from queue(3), but issue the appropriate memory
barriers for pserialize readers and writers.

Discussed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2016/04/03/msg020365.html
2016-04-09 04:39:46 +00:00
riastradh
2233768047 Make this list diff- and sort-friendlier.
No functional change.
2016-04-08 21:53:10 +00:00
gson
5973801c0c Add regression tests for some past gdb bugs. 2016-04-08 10:09:16 +00:00
christos
e533605fa6 Use WIFCONTINUED. 2016-04-06 03:52:27 +00:00
christos
bd76bbe652 Fix ATF_REQUIRE(false) 2016-04-06 00:52:45 +00:00
christos
8283334aac Add wait6(2) tests. 2016-04-06 00:45:53 +00:00