Commit Graph

2352 Commits

Author SHA1 Message Date
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
christos
35954f72d1 Oops need to bind, also make the message more interesting and check that
it arrives correctly.
2014-10-13 04:56:26 +00:00
christos
caa27f65e4 You need double the number of backslashes in a pattern, since \\ -> '\' in
the string which means escape. Now the tests don't fail.
2014-10-12 22:33:41 +00:00
christos
76ec08071f Explain what works, what does not and why.
Provide compatible code so that it compiles on Linux and MacOS/X with -DTEST.
We should check more OS's and see if they are broken too.
2014-10-12 19:49:01 +00:00
justin
384bcc25f3 Add expect fail for PR lib/49278 2014-10-12 19:08:08 +00:00
justin
2c782285f6 Add some fnmatch test cases from other C library test suites 2014-10-12 18:59:35 +00:00
christos
0de04e721e now we support the v6 ioctls for mapped addresses too. 2014-10-12 18:56:57 +00:00
christos
3242dd1614 Explain a bit more what's going on with the multicast setsockopts. 2014-10-12 14:53:46 +00:00
christos
dce98dc1a7 Add the simple unconnected tests too. 2014-10-12 13:48:25 +00:00
martin
495b705095 If we don't have 64 bit atomic ops, also do not test "long long" and intmax_t
(and friends).
2014-10-12 12:26:41 +00:00
martin
0a9621aa77 Disable the <atomic> C++11 test for now, we are not ready for it. 2014-10-12 08:02:35 +00:00
christos
dec90ca99d add a multicast test (what to do with v6?) 2014-10-11 23:04:42 +00:00
martin
2d4c5dc1d5 If not __HAVE_ATOMIC64_OPS, do not force the test for 64bit types. 2014-10-11 17:46:58 +00:00
martin
069f2c5d29 Add a link time test to catch missing symbols in libc, as pointed
out in PR toolchain/49074.
2014-10-11 14:52:15 +00:00
apb
bc007038f7 Avoid literal <CR> in sed regular expression.
Instead, use printf(1) to save the regexp in a shell variable,
taking advantage of the fact that printf understands "\r".

This should fix a complaint from subversion, reported in PR 49249.
2014-10-09 06:52:37 +00:00
apb
4206688740 2013-07-09 was in British Summer TIme, so use tzoff=-60, not 0. 2014-10-08 17:23:03 +00:00
apb
5b0c63042a When tests fail, print all args, notjust the date string. 2014-10-08 17:21:40 +00:00
apb
4e0616873f Add tests for PR lib/47916. Some of these fail. 2014-10-08 13:26:47 +00:00
apb
cad616778a Adapt to a recent change in parsedate().
"9/10/69" still refers to 2069, and "9/10/70" still refers to 1970,
but "69-09-10" and "70-09-10" now refer to the years 69 and 70.
2014-10-07 22:33:52 +00:00
apb
cf077958e6 Add comments for some non-obvious cases.
Also add a test with year=70, which is documented to be treated as 1970.
2014-10-07 19:26:31 +00:00
apb
fc447ec4e5 Add local parsecheck() function and use it for several tests.
Instead of just checking that parsedate(3) does not return an error,
also pass the result through localtime_r(3) or gmtime_r(3) and check the
year/month/day/hour/minute/second fields in the resulting struct tm.
2014-10-07 19:20:28 +00:00
gson
660533ae91 In the exp2_values test case, provide separate expected return values
for the float case, reflecting the actual exp2f() argument value after
rounding to float precision.  Fixes PR lib/49256.  Thanks to Makoto
Kamada and Tetsuya Isaki for the analysis.
2014-10-07 16:53:44 +00:00
christos
b31841d3aa add a test for the bug I fixed yesterday, and explain the tests. 2014-09-26 15:27:12 +00:00
ozaki-r
80d9064ac0 t_tcpdump: skip bridges
tcpdump on a bridge definitely fails, so skip bridges
to make the test robust.

PR 49050
2014-09-20 06:08:07 +00:00
matt
6cf6fe02a9 New files for Userland support of UCB RISC-V (both 32-bit and 64-bit) 2014-09-19 17:36:24 +00:00
ozaki-r
5937935b47 Add net/if_bridge test 2014-09-18 15:13:27 +00:00
dholland
83a65169bb Visit the Bureau of Redundancy Department.
From Henning Petersen in PR 49191.
2014-09-11 18:25:30 +00:00
gson
76c3358a67 Mark v7fs_lstat_symlink as an expected failure, referencing PR kern/48864. 2014-09-09 06:51:00 +00:00
christos
3cfc969d61 add null and empty tests. 2014-09-08 19:01:03 +00:00
gson
dec58dec7c Add a test of symlinks with long targets. 2014-09-07 09:10:09 +00:00
matt
27620987b8 New files for OR1K support 2014-09-03 19:34:25 +00:00
matt
b0b2ad2060 The nop instruction on or1k is l.nop 2014-09-03 19:24:12 +00:00
gson
35cbd4f0ac The cond_timedwait_race test case is no longer expected to fail; it
has been consistently passing since CVS date 2014.01.31.19.22.00.
See also PR lib/44756.
2014-09-03 16:23:24 +00:00
gson
09436ed198 The t_ldp_regen test frequently fails under qemu, but reliably passes
on real hardware.  The failures are hardly surprising given that qemu
timing is off by a is off by a factor of two as reported in
PR kern/43997.  Disabling the test on qemu for now; it should be
re-enabled once 43997 has been fixed to see if it still fails then.
2014-09-01 06:38:35 +00:00
gson
56e22ea3cf On systems that have only 32M of memory, the stress_short and
stress_long tests thrash a lot, and the stress_long test sometimes
times out, so skip them if we don't have at least 64M.
2014-08-30 12:14:17 +00:00
gson
1beb02a6c3 Don't pass an uninitialized variable as the times[] argument of
rump_sys_utimes().  Instead, pass combinations of values representing
edge cases: the farthest possible past, the epoch, and the farthest
possible future.  Now the excessive runtime reported in PR bin/49144
occurs reliably, on multiple architectures, and not only with udf, but
also with msdosfs.
2014-08-29 17:39:18 +00:00
gson
3583bc35d3 The 4 second timeout of the invafd test case is not always enough when
running under qemu; increase it to 10 seconds.
2014-08-27 13:32:16 +00:00
joerg
6c18385369 Really revert to the original version. 2014-08-26 17:13:42 +00:00
joerg
497e202f2a Revert. There is no such thing as __HAVE_IFUNC and there should not be
one in first place.
2014-08-26 16:25:35 +00:00
christos
5a3404e066 effectively disable the test to fix the build and explain why. 2014-08-26 11:10:02 +00:00
joerg
7a1a6f1cf3 Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
2014-08-25 20:40:52 +00:00
bouyer
18d9435662 Go back to the initial context (as tests/lib/libc/sys/t_swapcontext.c does)
after checking pthread_self() didn't change. Otherwise the process exits
outside of atf context.
Should fix "Test case exited normally but failed to create the results file: Results file is empty" reports from atf-run.
2014-08-25 16:31:15 +00:00
apb
8a8b2bfa2a Remove commented-out debug code that was accidentally committed yesterday. 2014-08-23 16:26:13 +00:00
christos
39d8f8959e not needed anymore. 2014-08-23 16:02:54 +00:00
christos
be0d87e66b undo previous bogus merge of PR49085 2014-08-23 15:10:18 +00:00
christos
defa6c58f6 PR/46096: Jarmo Jaakkola: fix many problems with dependencies (PR 49086)
Quite extensive rewrite of the Suff module.  Some ripple effects into
Parse and Targ modules too.

Dependency searches in general were made to honor explicit rules so
implicit and explicit sources are no longer applied on targets that
do not invoke a transformation rule.

Archive member dependency search was rewritten.  Explicit rules now
work properly and $(.TARGET) is set correctly.  POSIX semantics for
lib(member.o) and .s1.a rules are supported.

.SUFFIXES list maintenance was rewritten so that scanning of existing
rules works when suffixes are added and that clearing the suffix list
removes single suffix rules too.  Transformation rule nodes are now
mixed with regular nodes so they are available as regular targets too
if needed (especially after the known suffixes are cleared).

The .NULL target was documented in the manual page, especially to
warn against using it when a single suffix rule would work.
A deprecation warning was also added to the manual and make also
warns the user if it encounters .NULL.

Search for suffix rules no longer allows the explicit dependencies
to override the selected transformation rule.  A check is made in
the search that the transformation that would be tried does not
already exist in the chain.  This prevents getting stuck in an infinite
loop under specific circumstances.  Local variables are now set
before node's children are expanded so dynamic sources work in
multi-stage transformations.  Make_HandleUse() no longer expands
the added children for transformation nodes, preventing triple
expansion and allowing the Suff module to properly postpone their
expansion until proper values are set for the local variables.

Directory prefix is no longer removed from $(.PREFIX) if the target
is found via directory search.

The last rule defined is now used instead of the first one (POSIX
requirement) in case a rule is defined multiple times.  Everything
defined in the first instance is undone, but things added "globally"
are honored.  To implement this, each node tracks attribute bits
which have been set by special targets (global) instead of special
sources (local).  They also track dependencies that were added by
a rule with commands (local) instead of rule with no commands (global).

New attribute, OP_FROM_SYS_MK is introduced.  It is set on all targets
found in system makefiles so that they are not eligible to become
the main target.  We cannot just set OP_NOTMAIN because it is one of
the attributes inherited from transformation and .USE rules and would
make any eligible target that uses a built-in inference rule ineligible.

The $(.IMPSRC) local variable now works like in gmake: it is set to
the first prerequisite for explicit rules.  For implicit rules it
is still the implied source.

The manual page is improved regarding the fixed features.  Test cases
for the fixed problems are added.

Other improvements in the Suff module include:
  - better debug messages for transformation rule search (length of
    the chain is now visualized by indentation)
  - Suff structures are created, destroyed and moved around by a set
    of maintenance functions so their reference counts are easier
    to track (this also gets rid of a lot of code duplication)
  - some unreasonably long functions were split into smaller ones
  - many local variables had their names changed to describe their
    purpose instead of their type
2014-08-23 15:05:40 +00:00
christos
4da7383dde PR/49085: Jarmo Jaakkola: fix several parsing errors
Don't exit from var.c:Var_Parse() before possible modifiers are handled
on D and F modified versions of local variables.  Properly expand $(?D)
and $(?F) too.

Make line continuations in rule's commands POSIX compliant.

Fix the syntax error caused by lib(member) as the last target before
a dependency operator.

Document the line continuation change in the manual page.  Also talk
more about the POSIX style local variables and their modifiers.

Add tests covering the fixed problems into d_posix.mk.  The test is
a known failure at the moment because of PR 49086 and PR 49092.

[XXX: unconverted tests]
2014-08-23 14:50:24 +00:00
apb
6b933a652f Test make(1) by running the maintained tests, not unmaintained
copies of them.

* Remove all old tests from src/tests/usr.bin/make/d_*.  These tests
  were unmaintained old copies of the actual tests which are maintained
  under src/usr.bin/make/unit-tests.  One exception is the test in
  d_unmatchedvarparen.mk, which was new, but has nw been added to
  src/usr.bin/make/unit-tests/varmisc.mk.
* In src/tests/usr.bin/make/Makefile, copy all
  the tests from src/usr.bin/make/unit-tests to
  ${DESTDIR}/usr/tests/usr.bin/make/unit-tests.
* In src/tests/usr.bin/make/t_make.sh, run the tests installed above,
  instead of the old tests.
* In etc/mtree/NetBSD.dist.tests, create the
  usr/tests/usr.bin/make/unit-tests diectory.
* Update the set lists for all the above.
2014-08-22 16:45:32 +00:00
pooka
48fac693b7 Update hardcoded fd expectations now that rump kernels open 0/1/2.
(since we exec, it's convenient to just assume the values of first 4 fds)
2014-08-13 00:03:00 +00:00
gson
9f88f3f33c Mark udf_lookup_complex as an expected failure, referencing PR kern/49033.
Since it does not fail reliably, force it to fail to avoid spurious failure
reports due to unexpected success.
2014-08-12 12:13:09 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
martin
e204327425 Do not set HAVE_FENV for arm as long as it misses feenableexcept(). 2014-08-10 12:01:57 +00:00
martin
41f262a02f Use the same condition for HAVE_FENV 2014-08-10 11:30:51 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
matt
beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +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
gson
b6f40f55e0 Mark the udf_renamerace test case (but not udf_renamerace_dirs) as an
expected failure again, now with a reference to PR kern/49046.
Since the test only fails part of the time, force failure to
avoid failure reports reports due to unexpected success.
2014-07-29 09:15:48 +00:00
apb
91bc8fa990 Run scripts at build time via ${HOST_SH} 2014-07-27 14:24:17 +00:00
pgoyette
fa995b7822 Remove atf_tc_expect_fail() calls for udf file-system. These tests are
currently passing.  As discussed on current-users.  Any new failures
should be reported via send-pr.
2014-07-25 13:44:59 +00:00
martin
dbd2e87e49 PR kern/49033: try to provide better diagnostics if the udf_lookup_complex
test randomly fails.
2014-07-25 12:16:22 +00:00
christos
6030f04a15 amend the new destroy function to take function pointers. 2014-07-20 20:17:21 +00:00
christos
0579ed8b30 Add new minherit test. 2014-07-18 12:34:52 +00:00
martin
349f6dd23e Darren fixed n8 and n9 recently 2014-07-15 20:00:23 +00:00
martin
6877679165 NetBSD has an entry for protocol #255 in /etc/protocols labeled "reserved"
so expect that in the parsing output instead of 255.
2014-07-15 19:51:36 +00:00
gson
858def4e9a space after comma 2014-07-15 14:56:34 +00:00
alnsn
5977f956e5 Add a link to ../../net/bpfjit/t_extmem.c. 2014-07-14 19:11:15 +00:00
alnsn
2b2f4a0ebe Add bpfjit_cop_copx and bpfjit_copx_cop tests. 2014-07-13 21:35:33 +00:00
darrenr
cccb715a0e Test n17_6 does not yet exist so remove unrequired files and test case 2014-07-12 14:37:12 +00:00
alnsn
674ca560ce Fix copy/paste error: s/rump_unschedule/rump_schedule/. 2014-07-09 15:56:12 +00:00
alnsn
467461f7c4 Add t_cop and t_extmem kernel bpfjit tests to the build. 2014-07-09 13:50:48 +00:00
alnsn
f80c8c7700 Add t_cop and t_extmem kernel bpfjit tests. 2014-07-09 13:49:49 +00:00
alnsn
0240ba3c8b Add t_mbuf tests to the build. 2014-07-08 21:47:21 +00:00
alnsn
f2b7757e98 Move bpfjit mbuf tests to t_mbuf.c. 2014-07-08 21:45:55 +00:00
alnsn
e1f7888b18 Clone libbpfjit tests to check kernel implementation of bpfjit.
Old content of t_bpfjit.c will be moved to t_mbuf.c shortly.
Change packet buffers to unsigned char[] type.
2014-07-08 21:44:26 +00:00
alnsn
f58748437d Rename bpfjit tests to libbpfjit. 2014-07-08 21:13:01 +00:00
alnsn
658efa8662 Rename bpfjit tests to libbpfjit, don't test zero buflen and a couple of
cosmetic changes.
2014-07-08 21:07:52 +00:00
pgoyette
b9e0c7c1f5 Update disk-space-available requirement to match reality, and leave a
little extra just in case.  The test file is much larger than previously
indicated.

Thanks martin@ for detailed investigation.
2014-07-07 22:06:02 +00:00
alnsn
6cabebfe85 Add bpf/t_mbuf test to the build. 2014-07-07 19:41:22 +00:00
alnsn
c129c2d504 Add rump tests for checking how bpf_validate() works with mbuf chains. 2014-07-07 19:40:28 +00:00
alnsn
a8013faa06 Add some helper functions for bpf/bpfjit rump tests. 2014-07-07 19:34:32 +00:00
alnsn
66c2729de9 Fix test directory. 2014-06-30 21:34:22 +00:00
alnsn
d32d6008b1 Add bpfjit kernel tests for loading from mbuf chain. 2014-06-30 21:30:51 +00:00
darrenr
347b12f138 New IPv6 tests for ipnat parsing need to be built by make so that they can
be executed.
2014-06-30 17:02:55 +00:00
darrenr
6dd125be9b NetBSD has an entry for protocol #255 in /etc/protocols labeled "reserved"
so expect that in the parsing output instead of 255.
2014-06-30 16:14:35 +00:00
darrenr
55ab6190c4 PR kern/47462 2014-06-29 09:27:58 +00:00
darrenr
d36a011b61 Add in test cases for testing ipnat's parsing of IPv6 NAT rules 2014-06-29 09:25:31 +00:00
darrenr
1afe7e56bc in2 is no longer a broken test case 2014-06-29 04:00:59 +00:00
alnsn
a6c4b35211 Add t_extmem test. 2014-06-25 19:13:27 +00:00
alnsn
966c8b069a Add external memory tests. 2014-06-25 19:13:03 +00:00
alnsn
5b6fcae7f9 Fix copyright. These tests are based on tests created in 2013 on github.com.
https://github.com/alnsn/bpfjit , files test/test_cop{,x}.c.
2014-06-25 18:16:40 +00:00
alnsn
6c8422a022 Add t_cop test. 2014-06-25 18:04:44 +00:00
alnsn
5990d54c7c Add BPF_COP and BPF_COPX tests. 2014-06-25 18:04:05 +00:00
alnsn
65b8637bc0 Zap trailing spaces. 2014-06-24 11:32:36 +00:00
alnsn
19fed70d36 Implement copfuncs and external memory in bpfjit. 2014-06-24 10:53:30 +00:00
shm
509eb314f7 Add bm(3) tests 2014-06-23 10:53:20 +00:00
alnsn
ce28ef1f5a libarch on sparc isn't -l${MACHINE_CPU}. Don't link to it. 2014-06-17 19:26:18 +00:00
alnsn
29499f54b7 Link with -l${MACHINE_CPU}. 2014-06-17 06:36:01 +00:00
joerg
13b8fa7d71 Add modfl(3). From FreeBSD. 2014-06-16 12:54:42 +00:00
apb
c38e7a8bc8 Update fmtcheck(3) test now that pointers and longs are differentiated. 2014-06-14 08:19:02 +00:00
martin
7c2f361f8e Properly initialize arguments for the tmpfs mounted in this test.
Pointed out by pooka@.
2014-06-10 13:15:18 +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
he
68eb80a8fe When linking statically (as for sun2), need to list -lrump also
after -lrumpuser, because rump_pub_lwproc_switch is used in the
latter and defined in the former.
2014-06-09 18:22:05 +00:00
pgoyette
cbaf1827a0 Convert size check to use 1K blocks (more human-friendly), and fix
atf_skip message to reference block size rather than bytes.

OK martin@
2014-06-08 13:45:14 +00:00
shm
fc03103b46 PR/48517 testcase provided by Felix Deichmann 2014-06-06 06:59:21 +00:00
njoly
954ca52517 Add testcase that check lstat(2) values for symbolic links (PR
kern/48864).
2014-06-03 11:56:07 +00:00
christos
9462261d53 PR/48843: Jarmo Jaakkola: Test cses for break/continue/return broken
inside dot commands:

 The test cases are named with the pattern
     dotscope_cmd_cmdscope,
 where dotscope is the scope in which the dot command is and cmdscope
 is the scope where cmd is in the sourced file.
2014-05-31 14:29:06 +00:00
alnsn
de2c6dc51a Update copyright year. 2014-05-23 11:48:26 +00:00
alnsn
02f87fcd70 Test Array Bounds Check Elimination (ABC) and test bpf programs from bpf(4). 2014-05-23 11:47:59 +00:00
martin
3313ae3d61 Re-enable alpha IEEE compiler options 2014-05-18 10:47:03 +00:00
palle
65aa7f14df Added test of -d option to sysctl 2014-05-16 18:50:28 +00:00
martin
4e0f19c597 Set a bigger timeout - this test needs > 3000s on my shark (mostly for
unpacking the test image)
2014-05-15 14:53:05 +00:00
christos
639c8a82b3 CID 978337: Fix resource leak 2014-05-12 15:33:12 +00:00
christos
03a5ccb524 CID 975238: Unchecked returns 2014-05-12 15:31:07 +00:00
martin
9ce5f7726e Add a test case for PR kern/48787. 2014-05-10 14:15:25 +00:00
yamt
d1d388317b include string.h for memset 2014-05-06 00:41:26 +00:00
martin
fb80a335f8 Comment out the ieee fp flags for alpha for now - something (tm) is not
working right, see PR port-alpha/48782.
2014-05-05 18:08:32 +00:00
joerg
9695f56051 Check for mounted /proc. 2014-05-01 03:46:11 +00:00
joerg
af32f2a15b Annotate dependencies. 2014-04-30 21:04:21 +00:00
uebayasi
413d532bcc Minimal execve(2) ATF test. 2014-04-29 06:29:02 +00:00
martin
511cd1dbe5 Tune COPTS for alpha 2014-04-28 08:46:35 +00:00
martin
36cb4c7daa Skip the curtain test case if curtain is not enabled and we would not
be able to restore it to its old value later due to running at securelevel
above 0.
Previously this would fail and leave curtain enabled untill next reboot (but
causing further runs of the test to suceed, just to maximize confusion).
This went unnoticed initial since most modular test kernels run with options
INSECURE to allow exercising the kernel module loader.
2014-04-28 08:34:16 +00:00
christos
7801950caf Include bsd.own.mk (hi pooka) 2014-04-26 18:53:21 +00:00
pooka
0159a35e80 obsolete the installed <rump/scsitest.h> header and make it private
to tests/dev/scsipi
2014-04-25 00:24:39 +00:00
pooka
37510bf29a CPPFLAGS for rump_private.h 2014-04-25 00:17:48 +00:00
pooka
8fa17e4756 scsitest is a SCSI target emulator used by one test, and has little
reason to get installed.  Make the component private to the test using
it and obsolete the installed one.

IOW, rename sys/rump/dev/lib/libscsitest -> tests/dev/scsipi/libscsitest
2014-04-24 21:46:44 +00:00
christos
ae43465b77 disable the extension test for now. 2014-04-21 19:10:41 +00:00