Commit Graph

2277 Commits

Author SHA1 Message Date
alnsn 86cd3d4d52 BPF_JMP+BPF_JEQ+BPF_X doesn't compare X with k, it compares X with A.
Fix it in the bpfjit_jmp_jeq_x_noinit_ax test.
2015-02-14 19:55:05 +00:00
alnsn 009978ddb6 Avoid testing for zero rv in bpfjit_jmp_x_uninitialised. Unitialised
X isn't a problem for bpf_validate().
2015-02-14 17:28:19 +00:00
alnsn 35489d090f Add bpfjit_jmp_x_uninitialised test.
Found by http://lcamtuf.coredump.cx/afl/.
2015-02-14 16:48:30 +00:00
isaki 76ca8ec888 uint64_t -> uint32_t. 32bit is sufficient in this case
and it improved the performance approx 7% on my 68030.
see also PR lib/49664.
2015-02-14 08:46:02 +00:00
martin 55ba2da403 Fix strange editor mishap and start block comment on its own line. 2015-02-13 16:56:57 +00:00
alnsn 542a94c076 Add bpfilternegjmp test. 2015-02-11 23:39:07 +00:00
alnsn bc33ca73a3 Add libbpfjit_jmp_ja_overflow test. 2015-02-11 23:33:16 +00:00
alnsn c57239cf9d Add bpfjit_jmp_ja_overflow test. 2015-02-11 23:29:48 +00:00
alnsn 9dc6430c3c Add libbpfjit_jmp_ja_invalid test. 2015-02-11 23:17:16 +00:00
alnsn b43344f3ff Add libbpfjit_ret_k and libbpfjit_bad_ret_k tests. 2015-02-11 23:00:41 +00:00
alnsn fe765d6008 Add bpfjit_ret_k, bpfjit_bad_ret_k, bpfjit_jmp_ja_invalid tests. 2015-02-11 22:37:55 +00:00
alnsn 8f06b72616 Add bpfilterbadjmp and bpfilterbadret tests. 2015-02-11 19:37:37 +00:00
martin d21477da21 Remove expected failure and references to port-alpha/46301, now that
it is fixed.
2015-02-09 19:39:48 +00:00
isaki 083cb7865f Skip kqueue_unsupported_fd test if /dev/drvctl is not configured
in the kernel.  PR bin/49644.

XXX Ideally, it's better to modify to use more generic device file.
2015-02-05 13:55:37 +00:00
christos e7149865f6 PR/49617: Kirk Russell: posix_fallocate() should be returning an error on
failure, without setting errno.
2015-01-31 23:06:57 +00:00
nakayama 11b2083df7 The test requires symbols, so put STRIPFLAG= explicitly to avoid
stripping them if STRIPFLAG?=-s is defined in /etc/mk.conf.
2015-01-31 20:55:43 +00:00
martin 5f67668838 Mark the failing tests as expected failure and point to PR toolchain/49085. 2015-01-27 12:57:14 +00:00
pooka fff8d9a1f5 call previous with the correct args too 2015-01-21 15:19:01 +00:00
pooka d08959252d check that setuid() works for procs with >1 lwp 2015-01-21 15:00:50 +00:00
snj 72e6061c7e Remove stale comment about ARM fenv support. 2015-01-20 20:43:10 +00:00
christos 7e4263ceda cast and mask is overkill. 2015-01-14 22:57:27 +00:00
christos d0b8ae57c5 bump warns. 2015-01-14 22:22:32 +00:00
christos f7afbc7f00 PR/48958: rudolf: EVFILT_VNODE filter miscounting hardlinks (add test) 2015-01-14 22:22:14 +00:00
christos 9861bac74f cast to destination type. 2015-01-14 22:16:04 +00:00
ozaki-r ac80d197aa Add tests for brconfig maxaddr 2015-01-08 06:33:11 +00:00
pooka c5d51f5087 one more MKZFS fix (how many subdirs does this place have?) 2015-01-08 04:00:31 +00:00
pooka e8f299cad3 fix MKZFS=yes ports 2015-01-08 03:50:56 +00:00
pooka f454f435c3 edit one more particularly well-hidden site needing -lrumpkern_sysproxy 2015-01-07 23:12:31 +00:00
pooka 0397f3a735 Move sysproxy support into a separate component, rumpkern_sysproxy,
instead of it being always provided by the rump kernel base.  This
move accomplishes two things:

1) it is no longer necessary to provide sysproxy hypercall stubs for
   platforms which do not want to use sysproxy
2) it is easier to reason about the security aspects, since configurations
   not linking the sysproxy component simply do not support remote
   system calls

discussed on rumpkernel-users
2015-01-07 22:24:03 +00:00
ozaki-r fdb884f32b Add some tests for rtable operations of if_bridge 2015-01-07 08:55:01 +00:00
joerg 707bb266b1 panic is printflike. 2015-01-06 21:36:38 +00:00
christos c8990bd93c need immediate assignment 2015-01-06 16:08:06 +00:00
christos d2c586bb77 simplify. 2015-01-06 16:04:58 +00:00
martin 87706a3247 Invoke the helper program from the test installation directory (instead
of the current/temporary).
Properly register failure.
2015-01-06 15:13:16 +00:00
christos 74e389883f fix helper program installation 2015-01-06 03:41:42 +00:00
christos 0900ce68ab fix directory 2015-01-06 03:20:24 +00:00
christos 2568fa481f assym.h moved. 2015-01-06 02:49:21 +00:00
christos 003f1382bf Form the sources in a better way. 2015-01-05 23:48:46 +00:00
christos 82329ad88d Too hard to cross-build mkassym.c correctly, use a standard assym.h 2015-01-05 23:46:49 +00:00
christos 6d5379c9ea add a dummy mkassym
look in more places for cpu_in_cksum
2015-01-05 23:25:10 +00:00
christos fca19cad2d Port the in_cksum test from regress. 2015-01-05 22:38:36 +00:00
christos 03f0cf7814 add proper include files. 2015-01-04 20:19:46 +00:00
gson 263eee9471 Mark the lib/libm/t_fmod test as an expected failure under QEMU,
with a reference to PR misc/44767.
2015-01-03 14:23:53 +00:00
gson 59b4f8a08b Need stdlib.h for EXIT_FAILURE 2015-01-03 14:21:05 +00:00
martin 719bfa7d23 Skip rounding mode tests on ARM FPUs that do not allow configuration of them. 2014-12-29 19:51:53 +00:00
martin ffed0c5e5a Include <ieeefp.h> even for the <fenv.h> case since we use fpsetmask()
to detect ARM Cortex NEON fpus.
2014-12-29 18:36:27 +00:00
hannken 08aa9f9f06 Test v7fs_lstat_symlink is no longer expected to fail. 2014-12-29 15:31:44 +00:00
martin ea1bc3e21f Move the list of <fenv.h> supporting architectures to the makefile and
sync it with other copies.
2014-12-27 18:03:41 +00:00
martin 619d31d686 Enable fenv for arm 2014-12-27 18:00:13 +00:00
martin 5fe2180eb8 Enable fenv.h on arm again 2014-12-27 17:55:05 +00:00
martin dce8d6f504 fenv(3) support for hppa 2014-12-27 16:54:02 +00:00
martin ca6af3dc0f Disabel fenv tests for arm, the implementation is incomplete. 2014-12-22 11:21:08 +00:00
martin dbdfb3d301 Add a test program for basic fenv.h rounding mode/exception mask testing. 2014-12-21 15:37:03 +00:00
uebayasi 867e9b4f2b config(1): Fix test breakage
Now config(1) checks the content of $S/conf/Makefile.kern.inc.  Install it
into config(1) test directory to fix test.  Noticed by Martin Husemann.
2014-12-20 07:02:25 +00:00
ozaki-r ba54e088ff Fix LDADD.t_compat
This unbreaks the build.
2014-12-08 07:34:31 +00:00
ozaki-r b5aa5c8930 Add basic tests for ifconf (SIOCGIFCONF) 2014-12-08 04:23:03 +00:00
dholland bbf415f038 Null commit, to note that the previous commit by darrenr (which said
just "PR kern/47462") didn't even have the right PR number. The correct
number, as far as I can tell, was PR 47262.

/brick
2014-12-06 19:31:25 +00:00
christos 1369c74b97 Add casts for big endian machines 2014-12-03 13:10:49 +00:00
ozaki-r 279c636338 Fix TESTSDIR 2014-12-03 08:14:26 +00:00
christos d36c52e73e tests for network address printers. 2014-12-02 19:48:21 +00:00
martin c8560b5aee Remove the "broken on BE" mark from the N14 testcase - ozaki-r fixed it
recently.
2014-12-01 19:46:29 +00:00
ozaki-r 9341145987 Fix wrong expected outputs
IP addresses in the expected outputs looks reversed (in byte order).
It seems the expected outputs had been generated based on source code
with a bug and the bug was fixed by a commit titled "#534 destination
list hashing not endian neutral" by darrenr@.
2014-11-25 08:25:46 +00:00
agc 996632d6d1 Since the netpgpverify rewrite to have no external pre-requisites, the
output format for signatures has changed cosmetically (mainly
whitespace changes).  Re-format all the test cases so that the tests
now pass again with the new output format:

	Tests root: /usr/tests/usr.bin/netpgpverify

	t_netpgpverify (1/1): 2 test cases
	    netpgpverify_dsa: [0.261980s] Passed.
	    netpgpverify_rsa: [0.237469s] Passed.
	[0.509571s]

	Summary for 1 test programs:
	    2 passed test cases.
	    0 failed test cases.
	    0 expected failed test cases.
	    0 skipped test cases.
2014-11-23 01:56:35 +00:00
christos e45a1decc7 test for c99 flexible packed arrays 2014-11-20 21:18:47 +00:00
christos e9101a47cf Add one more test 2014-11-20 20:52:15 +00:00
alnsn 215bab86a5 Add BPF_MOD tests. Plus one tiny change. 2014-11-20 11:36:13 +00:00
alnsn a234612ab2 Add BPF_MOD tests. Plus one tiny change. 2014-11-20 11:08:29 +00:00
uebayasi 2db56cefe0 Handle warning messages. 2014-11-20 09:02:00 +00:00
alnsn b61069b6e9 Add BPF_XOR tests. 2014-11-19 22:56:35 +00:00
martin dd702302a1 Skip the SIGFPE test on arm when the FPU does not provide exception handling. 2014-11-19 10:09:45 +00:00
martin 7a3fd5de1d Use machdep.unaligned_sigbus to skip the unaligned access test on arm
as well.
2014-11-19 10:03:51 +00:00
martin a471233800 Skip the tests on ARM if the NEON fpu does not support exceptions (Cortex). 2014-11-18 08:58:08 +00:00
uebayasi b8860b296b Minor tweaks. 2014-11-16 04:47:18 +00:00
uebayasi 41543d65fd Test SORT() command. 2014-11-16 03:49:09 +00:00
uebayasi ef5efd2fc9 Tweaks. 2014-11-15 04:47:11 +00:00
uebayasi 03a2e2df43 Test object reordering by script. 2014-11-15 04:23:48 +00:00
uebayasi 551b230b22 Test object ordering. 2014-11-15 03:47:29 +00:00
uebayasi b57644333c Merge tests. 2014-11-15 03:22:29 +00:00
uebayasi e6ae210ca4 Tweak. 2014-11-15 03:10:01 +00:00
uebayasi 29c8a787f1 Tweak previous. 2014-11-14 16:29:03 +00:00
uebayasi e0d81d86b9 Test orphan ELF section placement. 2014-11-14 16:21:12 +00:00
uebayasi 1fc7d1e960 Fix thinko in previous. 2014-11-14 16:20:42 +00:00
uebayasi 90e9fce862 Test __start_xxx/__stop_xxx symbol generation. 2014-11-14 13:30:48 +00:00
uebayasi 3dcb1bdb52 Minimal linker script test. 2014-11-14 09:03:39 +00:00
justin 97c0a6f647 PR misc/49356 remove unnecessary references to atf-c/config.h
The function included via this header is not used and is removed in
later versions of atf, so let us avoid it.
2014-11-04 00:20:19 +00:00
justin 4a3dd59305 PR misc/49342 fix issue where time can tick during tests
Note there are still potential issues as the clock being tested is not
monotonic but it should now not fail unless time is being adjusted.
2014-10-31 12:22:38 +00:00
uebayasi 76fdf39e44 config(1): Briefly test ioconf.c output 2014-10-31 09:11:42 +00:00
uebayasi c42523f496 config(1), config(5): Introduce "select"
o Introduce a new selection directive "select" to select an attribute (as a
  module) and its dependencies.
o Support "no select" too.
o Stop abusing "options" to select an attribute.
o Bump config(1) version.
2014-10-31 07:38:36 +00:00
uebayasi b9efa53115 config(1): Test undefined options behavior
- Test selecting an undefined options.
- Test negating an undefined options (failing).
- Fix typos in previous.
2014-10-31 04:54:17 +00:00
uebayasi c6cb06a0e3 config(1): Check minimal config(1) output files 2014-10-29 16:24:32 +00:00
christos 0e3249fea3 fix typo, use different address 2014-10-27 21:28:58 +00:00
christos c57b8469e4 - deal with MacOS/X not having clock_*()
- change multicast address
- set the interface
XXX: Now the ipv6 code works on MacOS/X but does not work for us still.
2014-10-26 18:33:43 +00:00
justin 7cbb46f7c6 Add negative offset checks to fseeko
These were not strictly needed before, as lseek would error on negative
arguments, but having added open_memstream we have a virtual file pointer
that assumes that it gets sane values, so we get an assertion triggered
on a negative value. Best to check in one place rather than at all the
relevant points.
2014-10-19 11:17:43 +00:00
snj f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
joerg 651137ad06 Explicitly link C++ test case with CXX. 2014-10-18 02:22:35 +00:00
justin a99ba75e46 PR standards/49279 add tests for open_memstream, ported from OpenBSD 2014-10-15 21:55:34 +00:00
martin a9cf99fd0c Fix include order, so the makefile actually does something again. 2014-10-13 11:07:38 +00:00
martin d7121a34a3 Do not try the C++ 2011 test with gcc < 4.8 2014-10-13 09:57:35 +00:00
martin cb0ae2ce0b timespec.tv_nsec is long, so use %ld instead of %jd as printf format. 2014-10-13 06:57:08 +00:00
christos 793de535ef typo 2014-10-13 04:57:11 +00:00