Commit Graph

2020 Commits

Author SHA1 Message Date
martin dbc87f74ee Backout previous - real fix for vax libm upcoming. 2013-05-24 11:47:13 +00:00
christos fdb7536171 vaxinate the new tests. 2013-05-23 20:45:47 +00:00
martin 85d85a185b Add a few test cases to test "ordinary" values with the various scalbn
variants. While there, make some spuriously failing tests print out the
broken values on failure.
2013-05-20 12:21:42 +00:00
christos b5f9733725 PR/47826: Garrett Cooper: Add <sys/types.h>. Really I am tempted to remove
this file instead.
2013-05-17 15:42:09 +00:00
christos 863b4f4307 PR/47825: Garrett Cooper: Fix hardcoding of NetBSD in t_grep.sh 2013-05-17 15:39:17 +00:00
martin 0bac6b7608 Mark two more test case as only failing for BE 2013-05-16 07:43:02 +00:00
martin e2eacae3cf Assume that the NAT failures that happen on some architectures are endianess
bugs, so do not expect failure on LE archs for now.
2013-05-16 07:20:29 +00:00
skrll 3defc39379 Whitespace 2013-05-05 10:26:57 +00:00
mlelstv 3a4772dd1f shorten fileops test further
add new test that verifies locking of the mount list.
2013-04-28 15:49:58 +00:00
mlelstv 1526e77e21 shorten test to not time out on our test infrastructure. 2013-04-27 07:45:07 +00:00
joerg fcfab139c2 Since the mktemp test case uses mktemp, make linker warnings non-fatal. 2013-04-25 13:34:09 +00:00
christos 42e0c394d3 new mktemp test 2013-04-22 21:05:12 +00:00
mlelstv 5319147235 Now use correct test files and pass child failures to test function. 2013-04-20 09:00:03 +00:00
mlelstv 86479a1389 First attempt at stress testing umount of a busy disk. 2013-04-16 22:05:44 +00:00
martin 1f299de05d The sh api calls it atf_expect_fail, while the c api calls it
atf_tc_expect_fail - this is shell, so fix the names accordingly.
XXX Why do they differ?
2013-04-14 16:07:46 +00:00
martin 18d840f0c0 Backout previous - which did not include the change described in the log
message anyway but pure accidental white space changes. The whole change
was not needed any more after fixing isqemu.h.
Thanks to agc for pointing it out.
2013-04-14 16:03:06 +00:00
martin a4fee3e85d Mark the test function as inline, so we don't get warnings if it is not
actually used.
2013-04-14 12:46:29 +00:00
martin 152c21a77c Do not include isqemu.h if we are not going to use the test 2013-04-14 12:45:50 +00:00
christos 64d9d8eefb use one qemu test 2013-04-12 17:30:50 +00:00
christos 57ecabebfd don't pay for sysctl if we don't have to. 2013-04-12 17:21:04 +00:00
christos 1e97173517 loosen the test only for qemu. 2013-04-12 17:18:11 +00:00
christos 427032d97c easier way to find if we are on qemu. 2013-04-12 17:13:54 +00:00
gson 44da6cec61 Make cond_wait_mono and cond_wait_real tests accept a wait time in the
range of 90% to 250% of nominal, to allow the test to pass under qemu
which has a known issue where timing can be off by a factor of two.
2013-04-12 14:21:52 +00:00
christos 14ac21b358 Add new tests sources for event2. 2013-04-11 17:00:12 +00:00
isaki 0c8b5b215f Use a pre-calculated value as expected result, instead of
comparing it in a mathematical formula.
PR lib/46434 (and see also 46433).
2013-04-09 12:11:04 +00:00
isaki ffc77545dc Tune the epsilon about each value for exp{,f}_product. 2013-04-09 11:42:56 +00:00
christos 19e338409a don't run with -n if you expect protocol translation from number to name. 2013-04-07 19:14:03 +00:00
christos 0ef49f62d1 add more test cases for nanosleep 2013-03-31 16:47:16 +00:00
christos 3993b5d374 fix printf formats 2013-03-29 02:32:38 +00:00
christos dd14258bb5 Add pthread_cond_timedwait(3) test from PR/47703 2013-03-28 18:50:01 +00:00
gson 1189f7bcc3 Don't size an array using MB_CUR_MAX while one locale is in effect and
then use it with another locale having a larger MB_CUR_MAX.  This
should fix the t_wctomb:wcrtomb_state test failures seen on i386.
2013-03-25 15:31:03 +00:00
christos a4ddc2c8fb new dlopen tests for libpthread from manu@ 2013-03-21 16:50:21 +00:00
isaki 3e866cf1f6 Fix and revive test of atan_inf_neg, atan_inf_pos and atan_tan on i386.
PR port-i386/46108.
The machine epsilon 1.0e-40 is too severe and nonsense for double
because DBL_EPSILON is about 2.2e-16 .  I think that 1.0e-15 is
enough good, in this case.
XXX However, test of atan_tan should be replaced for other reasons.
2013-03-21 02:10:52 +00:00
martin 99e62f4068 Fix argument order for "n14" 2013-03-19 13:23:58 +00:00
martin 19ec7b0e9f Mark a few more test cases known to only work by chance as failing
and point to PR 47665.
Julio: how do we make such cases not fail when they actually happen to
work (by pure luck)?
2013-03-18 20:03:56 +00:00
jmmv 371c38e8cf These tests are flaky so mark them as expected failures... when they fail.
See PR kern/47661.
2013-03-17 06:29:55 +00:00
jmmv 051a1f53b0 Do not special-case qemu when expecting the failure due to PR kern/43997.
I am sporadically observing this in my real machine as well.  It's harder
to trigger, but it happens.
2013-03-17 05:47:48 +00:00
jmmv 33af199a4a Try to trigger the cond_timedwait_race race several times.
Sometime this tests passes (after all, it's exercising a race condition) and
when it does it's reported as a failure.  By giving the test a few chances
to expose the problem, we prevent this noisy signal.  When the race is really
addressed, this will start failing consistently as expected.
2013-03-17 05:13:13 +00:00
jmmv 5ac530f373 Mark two routinely-broken tests as expected failures referencing PR lib/47660. 2013-03-17 05:02:13 +00:00
jmmv 2be7ebf7e2 Remove unnecessary cleanup routines. 2013-03-17 04:46:06 +00:00
jmmv 042bde1174 fexecve is not implemented, so mark the test as an expected failure.
While doing this, clean this whole thing: do not define a useless cleanup
routine and wait for the subprocess to finish instead of using sleep.
2013-03-17 04:35:59 +00:00
jmmv ebd45a6ca9 Mark some long-standing failures as known failures.
The offending tests are these:
- t_filter_exec: f26, f27.
- t_filter_parse: i17.
- t_nat_exec: n12.

These tests are confirmed to fail in NetBSD/current under amd64, i386 and
sparc as reported by the continuous testing systems.
2013-03-17 03:00:05 +00:00
jmmv 2f611e9f98 Fix the t_renamerace:lfs_renamerace_dirs test on fast machines.
This test was failing on my machine when run natively but not causing any
problems when run within qemu, and the failure was "mkdir: No space left
on device".

My understanding of the issue is that this test overflowed the temporary
disk image due to its high rate of file churn and the lfs_cleanerd not
being able to keep up.  Note that this test is capped by time, not number
of operations, so this is why the problem does not show up in a slow
emulated system.

To fix this, just bump the test file system image limit a little bit.
(I tried increasing the frequency at which lfs_cleanerd does its thing,
but it wasn't enough.)
2013-03-17 02:48:31 +00:00
christos d3d55324bd check return values 2013-03-17 02:23:31 +00:00
jmmv 0818487da7 Simplify test_mount and log errors.
If mount_tmpfs fails, show what the stderr output of the command was instead
of failing without details.

While doing this, remove the stupidity to deal with the optional arguments
to the test_mount routine.
2013-03-17 01:16:45 +00:00
jmmv 6005599c16 Use /bin/sh for a temporary script instead of querying the name of the
shell from atf-config.
2013-03-16 07:54:04 +00:00
jmmv a8e674a6ba Mark a bunch of routinely-broken ZFS tests as expected failures. Point
them at PR kern/47656.
2013-03-16 05:45:37 +00:00
jmmv c2e8322972 Mark the zfs tests as requiring root.
This is wrong.  The zfs tests already use rump so they should not require
root.  However, I've already spent much more time than I wanted trying to
figure out why that's the case without much luck.  If you can find why,
just remove this hack.
2013-03-16 05:24:59 +00:00
martin 11175263ad The CD emulator has been fixed, no longer expect the test to die. 2013-03-15 16:18:49 +00:00
jmmv fcde6153ab Expect a crash in the noisyeject test. Mention PR kern/47646. 2013-03-14 06:43:32 +00:00
jmmv d477a9c19e Prevent the sed command in c2048 from getting stuck.
Provide some unused input to the sed command in the c2048 test to prevent
the test from getting stuck waiting for input from stdin that will never
arrive.

I don't know why I'm hitting this now (might be a difference between atf-run
and kyua), but this is a bug in the test.
2013-03-14 06:03:44 +00:00
martin 2be5afec8a Sharpen the "return imediately" test case and fix/uncomment the "wait untill
signal" one.
2013-03-08 23:18:00 +00:00
martin faea3b9e87 Rename testprogram and make it more general by adding other testcases.
One commented out, I didn't manage to get all signal handling correct
for now.
2013-03-08 17:01:54 +00:00
martin 90ba9be35f Add a test program for PR kern/47625, based on the sample code provided
by anthony mallet.
2013-03-08 10:33:51 +00:00
christos 12e4d0500d Mystery solved: The build worked for me because the my src tree is in /usr/src.
Refer to the correct source tree instead of the conventionally correct one.
2013-03-06 13:36:50 +00:00
christos 5ae2c875b6 don't refer to things that are irrelevant or never existed. 2013-03-06 13:35:22 +00:00
christos 28c9d06150 Highly uncool to stash a partial copy of the ti-rpc code here. 2013-03-05 19:58:33 +00:00
christos d614974138 use the proper fd_set.
XXX: Instead of making a copy of the libc rpc files here we should re-use the
files from libc, and use macros to provide the extra functionality needed here.
SoC project?
2013-03-05 16:54:08 +00:00
christos 3af68658a0 catch up with libc. 2013-03-05 05:39:54 +00:00
pooka f467be3ba1 Rump kernel hypercalls are not necessary here. 2013-03-01 13:49:42 +00:00
christos f529593485 regression tests for wide char i/o. Currently there are failures. 2013-02-28 21:52:02 +00:00
martin 0ed572c9e9 getsockname() needs a socklen_t, not a size_t 2013-02-28 20:41:21 +00:00
christos 1790c3d9d5 remove the timeout; it is handled internally. 2013-02-28 15:56:53 +00:00
martin f368c7a2de Add a testprogram for PR 47598. 2013-02-28 15:31:22 +00:00
christos 1b48e11e47 skip the tests if rpcbind is not responding. 2013-02-27 18:39:58 +00:00
christos d7abae09ac Add a test for the rpc getaddr bug lib/13082.
Timeout added, but it needs rpcbind to be running to succeed.
2013-02-26 17:06:55 +00:00
jmmv 58ac8c454c Run tests in kyua-atf-compat if MKKYUA!=no. 2013-02-25 00:33:19 +00:00
jmmv 5b7eb38d00 Stop assuming that test programs and directories are the same thing during
Atffile generation.

This is needed to be able to generate Kyuafiles (coming later), as these
clearly differentiate between the definition of test programs and the
recursion into other subdirectories (or files).

In particular: rename ATFFILE_EXTRA_TPS to ATFFILE_EXTRA_SUBDIRS and
change the logic in bsd.test.mk to keep track of subdirectories aside from
_TESTS when creating the Atffile.
2013-02-23 21:20:14 +00:00
jmmv 9f60280349 Register kyua-cli into the Atffile when MKKYUA!=no. 2013-02-23 14:22:24 +00:00
pgoyette d5bb255f0c Fix the error message handling. Thanks to Christos for noticing. 2013-02-20 02:22:48 +00:00
pgoyette ab7a59749e Replace printf() in child process with a simple write(STDERR_FILNO,...)
Thanks, Joerg.
2013-02-19 22:44:27 +00:00
joerg 94bcefa490 Check for RUMP programs before using them. 2013-02-19 21:08:24 +00:00
jmmv e06d860d40 Auto-generate the top-level Atffile.
This fixes a problem in MKKYUA=no builds in which the kyua-testers
subdirectory in /usr/tests was created unconditionally and atf-run was
confused because such subdirectory didn't have an Atffile of its own.
(Due to the way our directory creation and file lists work, I'm not
sure it's possible to just not "install" the empty directory.  But
that'd be an alternative to this.)

Auto-generating the Atffile causes it to only list the subdirectories
listed by the Makefile, which can vary depending on various MK* options.

Problem found by martin@.
2013-02-19 15:30:07 +00:00
pgoyette a3217a378f Rather than just sleeping and hoping that all the sub-processes are
ready to be ptrace()d, use a positive barrier.
2013-02-19 04:58:40 +00:00
pgoyette 7dec801027 White-space in for(...) loops.
Use #define instead of static variables to define test parameters.
No functional change.
2013-02-19 04:46:46 +00:00
pgoyette 593938d6da Create a variable for max number of passes to make. While we're here,
reduce the pass-count from 100 to 50;  this is more than enough to prove
that the test is working, and helps reduce the ever-increasing time it's
taking to run the entire test suite.
2013-02-19 03:22:54 +00:00
pgoyette 2fde625529 Wait a little bit after fork()ing the lockers to give them a chance to
get started before trying to ptrace(ATTACH).  Otherwise, the traced
process doesn't seem to resume properly upon ptrace(DETACH) and on the
next pass the ptrace(ATTACH) just hangs forever, causing the test to
time-out.

XXX The failure-to-resume-properly might actually be a kernel bug that
we need to follow up on.  But for now, let's make the test work as
intended.
2013-02-19 00:54:47 +00:00
pgoyette 706bd0b309 Check that we did get EDEADLK error, and fail immediately if we did not. 2013-02-18 20:59:19 +00:00
jmmv 7d3a48f1d2 Hook Lutok into the build. This is all protected by the MKKYUA guard. 2013-02-16 21:40:05 +00:00
jmmv 8f212f1945 Move tests for examples from tests/examples to tests/share/examples.
This is to match the layout of the installed and source files more closely.
While doing this, honor the MKSHARE variable, as the files these tests
validate are only installed when MKSHARE=yes.
2013-02-16 12:44:25 +00:00
christos d2ff78394b don't brk the build. 2013-02-15 23:56:32 +00:00
christos 9bb501f7a5 look at my index finger 2013-02-15 23:27:19 +00:00
christos 81516a9702 - check the results of the vis functions
- zero output to make sure things work
- don't use encodings that don't work
- fix the style on decoding
2013-02-13 04:51:56 +00:00
christos e40152f801 check the results of encoding and decoding 2013-02-11 04:12:48 +00:00
hannken 2242432b52 Test taking a snapshot from a stressed file system.
Checks snapshot meta data only with fsck.

OK: Antti Kantee <pooka@netbsd.org>
2013-02-06 09:05:01 +00:00
christos bd77daa189 ignore directory sizes 2013-02-05 16:49:42 +00:00
mbalmer c826b564cf exitting -> exiting. 2013-01-27 14:47:37 +00:00
christos 1f1bab53b7 rename the only use of HAS_SSP in the tree to HAVE_SSP. 2013-01-27 02:32:39 +00:00
christos f564ab2a22 Don't include bsd.sys.mk; like sys.mk it is supposed to be used only
internally.
2013-01-26 21:58:41 +00:00
dholland 76ad4067c2 spelling 2013-01-22 06:24:11 +00:00
apb a39eba5e76 Test parsedate("@-2",...) (should return -2 and not set errno);
and parsedate("@junk",...) (should return -1 and set errno).
We were already testing "@-1".
2013-01-19 15:21:43 +00:00
apb 58e1304b9b * Test that parsedate("@0", ...) returns (time_t)0 regardless of timezone.
* Test that parsedate("@-1", NULL, NULL) returns (time_t)-1
  without setting errno.
2013-01-19 14:03:08 +00:00
pooka ef30804ef1 Use TESTS_SUBDIRS instead of SUBDIR to make these actually run.
Also, fixes build with /usr/xpg4/bin/sh
2013-01-14 13:37:57 +00:00
dholland ab137c90f7 Revert defective O_SEARCH implementation committed by manu@ along with
the *at system calls on November 18th of last year. Reasons to revert
it include:
   - it is incorrect in a whole variety of ways (but fortunately, one
     of them is that the missing and improper permission checks have
     no net effect);
   - it was committed without review or discussion;
   - core ruled that all the new O_* flags pertaining to the *at calls
     needed to wait until their semantics could be clarified.

manu was asked to revert it on these grounds but has ignored the request.

I have left O_SEARCH defined and visible and made open() explicitly
ignore it. This way, most code that tries to use it will continue to
build and run. I've also arranged lib/libc/c063/t_o_search.c so that
the tests that make use of the O_SEARCH semantics will disappear until
O_SEARCH comes back, and fixed some mistakes and/or incorrect hacks
that were causing some of these to succeed despite the broken O_SEARCH
implementation.
2013-01-13 08:15:02 +00:00
christos 353430cc63 fix messages. 2013-01-06 02:22:50 +00:00
christos 436fdc82bd new udp test 2013-01-06 00:35:22 +00:00
christos 05cc565867 Test the netbsd and mtree flavors. 2013-01-02 18:11:44 +00:00
martin 236eac060e Remove check for GLOB_NOCHECK - the behaviour has been changed again, so it
will return a modified pattern.
2013-01-02 11:28:48 +00:00
christos 3f1c66c5a0 - make our stat function return ENOENT if a file is not found.
- add a GLOB_NOMATCH check
2012-12-18 01:37:28 +00:00
christos 97efc101e5 add a test case for PR/47306 2012-12-10 20:30:06 +00:00
christos b1dcb17635 use __BITMAP_TYPE 2012-12-07 02:28:19 +00:00
jruoho f8b5dc2c31 Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs. 2012-12-04 06:57:44 +00:00
pgoyette 430b860e38 Christos fixed the crash in ipftest, so re-enable the failing tests. 2012-12-03 23:39:30 +00:00
pgoyette 0a24a43187 Add a couple more inet6 tests to verify correct rule parsing 2012-12-03 21:29:15 +00:00
pgoyette eef4456861 Include an explicit test for correctly inferring family inet6 when there
is an IPv6 address in the rule
2012-12-03 20:43:59 +00:00
pgoyette 5d29dd1420 Now that expected output files have been adjusted, we can remove the
expectation that tests i14 and i19 will fail.

Should address kern/47262 which will be closed.
2012-12-03 19:43:36 +00:00
pgoyette aaf9c67393 Without explicit address, the address family is not inferred and not
displayed in the output.
2012-12-03 19:42:00 +00:00
pgoyette b757daddb1 For rules without any address, don't infer an address family. 2012-12-03 19:35:33 +00:00
agc 5f7e73a0dd Remove the Atffile, which should not have been added in the first place.
With thanks to Herbert J. Skuhra and Paul Goyette
2012-12-02 20:27:10 +00:00
pgoyette d3317b816e Actually remove the no-longer-needed Atffiles 2012-12-02 18:40:43 +00:00
pgoyette f93daef0af Build helper programs as PROGS and not as TESTS_{C,SH}
This enables us to remove custom Atffiles whose only purpose was to avoid
using the helpers as tests.

XXX src/tests/dev/dm/ is not (yet) linked into the build!
2012-12-02 18:39:53 +00:00
pgoyette 826c760e5d Helper programs are programs, not tests, so build them appropriately.
Thie removes the need for custom Atffiles whose only purpose was to exclude
the helpers that had been built as tests.
2012-12-02 17:36:10 +00:00
pgoyette 0855789845 Test-case n3_6 is not applicable to NetBSD (according to Darren R.) 2012-12-02 08:52:06 +00:00
pgoyette 08896ebe5a More test clean-up 2012-12-01 21:37:41 +00:00
pgoyette 8c5ae97cbd Put the reason for expected failure in the correct position 2012-12-01 21:25:51 +00:00
christos b8815f50dc Add a bitops test 2012-12-01 16:27:27 +00:00
pgoyette 5cf1898f6e Use proper quoting for the expected-failure reason 2012-12-01 04:43:44 +00:00
pgoyette 3ce5310bf2 Now that we have a PR for the brokenness in "ipftest -P -N", mark the
related tests as Expected Failure rather than just skipping the tests.
2012-12-01 04:40:00 +00:00
pgoyette e56dec26bf Based on the error messages, the test is not broken, but ipftest probably
in broken.

Once we can analyze the error further, we can open a PR in Gnats and then
move this to Expected-Failure.  But we shouldn't skip it because we'll
never come back to fix it.
2012-12-01 04:19:24 +00:00
pgoyette a95855641b If we're going to expect a failure, we need to use the correct shell
function!  "atf_expect_fail()" does not have a "_tc" in its name!
2012-11-30 14:46:48 +00:00
pgoyette 361363890b Rather than providing a custom Atffile that requires separate
maintenance, just don't build or install the t_bpf.sh test.
2012-11-30 01:41:50 +00:00
pgoyette 85d282e793 fix typo in previous - missing quote 2012-11-29 18:54:43 +00:00
pgoyette 1ed7a9a845 Update a couple of tests to indicate that they are broken/failing because
of missing input/expected data files
2012-11-29 17:22:17 +00:00
pgoyette 2cb9f80737 Now that I've created PR/47262, reference it in the tests that fail
because of the PR
2012-11-29 17:11:19 +00:00
pgoyette a557d345a2 Add another test option for expected failures, rather than simply
skipping tests
2012-11-29 17:10:21 +00:00
pgoyette 60bd2d2129 Even though this test is currently disabled, fix it so it looks for the
correct input and expected-output files for test case bpf_f1
2012-11-29 16:05:34 +00:00
martin b954a04ff6 Skip kqueue_unsupported_fd if the drvctl device is not present. 2012-11-29 09:13:44 +00:00
pgoyette acd8a5e133 Since all of the expected-results files provided from upstream include
the "-D" output (Dump additional internal tables), update the tests to
actually generate the data!

This lets us re-enable 28 of the 30 "skipped" tests.

XXX Still need to work on tests n12 and n17_6
2012-11-29 04:57:42 +00:00
jakllsch 9dc12b580b Add fsbsizeovermaxbsize test that tests mouting a FS with block size greater
than MAXBSIZE.
2012-11-27 16:01:49 +00:00
jakllsch 4ab3368ede Rename fsbsize2big to fsbsizeovermaxphys to accurately match what it tests.
Additionally, compute failing size dynamically by doubling MAXPHYS instead
of assuming 128K will be too big enough.
2012-11-27 15:59:15 +00:00
christos 0156034a08 Add a test for adding an event to an unsupported fd. 2012-11-24 15:05:45 +00:00
martin 5873910091 Split the test cases where root/non-root makes a difference in two and mark
them apropriately. Exact permission semantics are still under discussion,
this will have to be cleaned up once that discussion is settled.
For now, one test cases fails.
2012-11-23 08:24:20 +00:00
martin ee21bbfc8f 0-terminate strings returned by readlinkat 2012-11-22 20:17:48 +00:00
martin d875702485 Compare against modification time instead of creation time - which we did
not set.
2012-11-22 14:59:59 +00:00
martin 13981c9510 Fix off by one in static array acces, use valid timestamps (ns part < 1e9),
just in case a filesystem would need to convert this to some other
representation.
2012-11-22 14:51:19 +00:00
martin 26d64ddcc4 Mark a few tests that require root 2012-11-20 20:01:14 +00:00
agc d9b9fb0ba9 descend into netpgpverify test directory too 2012-11-20 08:02:06 +00:00
agc 72d743a692 Add tests for netpgpverify. 2012-11-20 07:55:52 +00:00
martin 0b640008be Do not require tv_nsec to be != 0 but instead require equality with the
test value.
2012-11-19 16:07:56 +00:00
manu a76c1cc17f Add most system calls for POSIX extended API set, part 2, with test cases:
faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2),
mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2),
utimensat(2), openat(2).

Also implement O_SEARCH for openat(2)

Still missing:
- some flags for openat(2)
- fexecve(2) implementation
2012-11-18 17:41:51 +00:00
joerg f611942e77 Unbreak the NOTE_TRACK event of EVFILT_PROC. When attaching to the child
process, proc_find can't be used as the child is still in state SIDL.
2012-11-17 21:55:24 +00:00
alnsn 062bf78a84 Build libbpfjit test to the build. 2012-11-11 17:41:31 +00:00
alnsn 65b4b42177 Add libbpfjit test. 2012-11-11 17:37:34 +00:00
pgoyette 922089c955 More clean-up, and adjust timing of kevent test to avoid issues with
PR kern/43887
2012-11-09 20:13:24 +00:00
pgoyette 8ff87897e6 Remove unnecessary header file and an unused variable.
Adjust timing parameters to reduce overall elapsed time, and document
the parameters.
Clean-up status handling for kevent test.
Deal with QEMU timer-related issues (PR-43997).
2012-11-09 04:43:25 +00:00
pgoyette c75e6b56d0 Provide clear explanation of test-case failures. 2012-11-08 16:33:26 +00:00
pgoyette 57f73370f4 Remove a debug printf(), and fix the format in another.
Should resolve build break.
2012-11-08 04:58:44 +00:00
pgoyette 82f50f620a Convert old src/regress/timer&waiter tests to ATF 2012-11-08 03:13:47 +00:00
pgoyette 251231b58b Merge in the minimal test from the old src/regress/sys/kernel/sigtramp
test.
2012-11-07 16:51:16 +00:00
pgoyette 8b483e6488 Add missing '+' so we include t_lock as well as t_lockf and others.
Should fix the build break.
2012-11-07 16:36:49 +00:00
pgoyette 7206730159 Add ATF version of the file locking test 2012-11-07 14:00:38 +00:00
nakayama b826e4d970 Fix MKRUMP=no build.
librt is unrelated to rump.
2012-11-07 05:13:45 +00:00
pgoyette 3c7f7eee04 Use an ATF_TC_CLEANUP() routine to delete the mkdtemp() directory even
if the test case fails/exits sooner.
2012-11-06 19:35:38 +00:00
pgoyette 689370802f Replace the atexit() routines with ATF_TC_CLEANUP()
Factor out the generation of token_keys to a separate routine, called
from each test case.  And make sure we remove the mkdtemp()-created
directory after we're finished with it.
2012-11-06 18:31:53 +00:00
apb 2bf0b7739b use mkdtemp() instead of mktemp(). 2012-11-06 13:55:03 +00:00
pgoyette c168fbbf95 Convert to ATF format the old src/regress/ style tests for Sys V IPC 2012-11-05 04:09:14 +00:00
alnsn ffd8736098 Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386. 2012-11-05 00:57:39 +00:00
alnsn a9b4cc4551 Add userspace libsljit test. Not hooked into build yet. 2012-11-05 00:34:28 +00:00
christos 6298c31a51 add missing includes 2012-11-04 23:37:02 +00:00
pgoyette 938a6ff547 Convert the old src/regress/mqueue test to ATF 2012-11-03 05:19:33 +00:00
christos a1801097ec Avoid ssp re-definitions for the functions we provide. 2012-10-31 13:48:12 +00:00
njoly 60dc3e4d2e Add a small testcase for PR/47068. 2012-10-15 17:49:58 +00:00
bouyer f800b89bbc Add test cases for the bug fixed in sys/ufs/ufs/ufs_quota2.c 1.35:
when a on-disk block/inode allocation triggers allocating a new
quota entry, the new quota entry is not in the quota2 header block,
and the allocation will later be denied, the changes to the quota block would
not be flushed to disk, leading to list corruption (detected by fsck).
2012-09-30 21:26:57 +00:00
skrll 2392c04529 Simplify 2012-09-27 09:56:21 +00:00
martin d70931dac7 Add missing include <stdlib.h> 2012-09-27 08:19:18 +00:00
joerg fe9380cfbd Add regression test for cdbr(3) and cdbw(3). 2012-09-27 00:38:57 +00:00
christos 908d2159b9 make the test more precise. 2012-09-27 00:37:56 +00:00
joerg aef403d694 Fix year. 2012-09-26 22:23:30 +00:00
jruoho 85dbe713e8 Remove expected failures that no longer fail (probably due a Qemu update). 2012-09-26 07:24:38 +00:00
joerg 4edfbdbb40 Simplify the BDZ compression function, making it smaller at the same
time. Fixes a bug where non-minimal hash functions could be created.
Add regression tests for BDZ, including the map output functionality.
2012-09-25 20:53:46 +00:00
joerg 2b3d1ee8a7 Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
the SSP parameters and a not-yet-default rewrite of SROA.
2012-09-23 17:22:22 +00:00
blymn a76c5dee4e * Add scanw family function calls as input functions 2012-09-19 11:51:56 +00:00
blymn d537772cd3 * Fix mvscanw return
* Fix the *vline family of calls, one argument is chtype not int
2012-09-19 11:51:08 +00:00
martin c7ba7e0c07 Try to make this test gracefully fail when npftest is not available 2012-09-18 08:28:15 +00:00
plunky baa3f70feb correct spelling of file to clean 2012-09-15 16:22:58 +00:00
joerg 69d9b49983 Workaround infrastructure bug where additional rpath flags are added for
/lib, resulting in linker warnings for the compat case.
2012-09-13 21:13:34 +00:00
martin 001611b06f ATF wrapping of the npf tests 2012-09-12 14:06:31 +00:00
manu bba80928a8 setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
  (powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
  setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
  (hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
  powerpc, sh3, sparc and sparc64 is left to portmasters
  sparc64

Approved by core@
2012-09-12 02:00:51 +00:00
adam af67173111 Fix building with MKCOMPAT=no 2012-09-10 11:29:06 +00:00
martin 2b68f1748c Make this compile on archs where VM_MIN_ADDRESS is not defined (or not
exported to userland)
2012-09-08 12:25:05 +00:00
martin 69c011c56b Deal with architectures defining VM_MIN_ADDRESS > 0.
Add additional error code tests using a pointer one page past current brk.
2012-09-07 20:27:12 +00:00
njoly c45e6c06f4 Adjust msdos fat32 image creation to match cluster count requirements. 2012-09-06 12:51:47 +00:00
alnsn b8a85c6989 Replace usleep(500000) with a synchronization over a pipe. 2012-09-04 22:31:58 +00:00
alnsn db95257927 Fix test timeout. 2012-09-03 21:27:14 +00:00
christos 1375b73fd3 whitespace 2012-09-03 15:32:18 +00:00
pooka ebca36f90a Hook ZFS tests to MKZFS instead of a homegrown variable. 2012-08-31 14:46:53 +00:00
pgoyette af44ca577f There's a known-but-unresolved race condition in here somewhere that
causes these tests to sometimes deadlock.  Since they run really fast
when they are successful, it doesn't do any good to wait for the
default 5-minute timeout.  So explicitly set timeout for these tests
to just 30 seconds.
2012-08-31 04:02:21 +00:00
gson 8b7093cae5 Skip test requiring /usr/bin/mandoc if it does not exist, as is the case
when text.tgz has not been installed.
2012-08-28 15:22:18 +00:00
jmmv 80b30d8cdf Add placeholder test programs for share/mk files.
The main goal of this change is to simplify the further addition of test
cases for the share/mk infrastructure by adding a few placeholder test
programs to the tests tree.

To not leave these test programs empty, I have added a bunch of extremely
simple test cases to them.
2012-08-26 23:03:20 +00:00
jmmv cdcce7d462 Add a new "-P prefix" option to mkdep(1).
This option prepends the string given in prefix to every target
filename.  This is useful for programs that have source files in
multiple subdirectories and a single Makefile that references all of
them explicitly (without using the VPATH functionality because there
can be files with the same name in each subdirectory).
2012-08-26 22:37:19 +00:00
jmmv 46d1235f5d h_ffs_server.c is not a test program. Remove unnecessary traces of atf. 2012-08-24 20:25:50 +00:00
jmmv e7d178251c Sanitize the regex test cases.
- Merge h_regex_att (att.c) and t_regex_att.sh into a single C test program.
  The former was really a test program, and the latter just a very strange
  driver for it.

- Stop using awk to generate the shell test programs.  This is unnecessary
  and confusing.  Instead, change t_regex.sh to generate the test case
  functions on the fly with eval (as done in many other places).
2012-08-24 20:24:39 +00:00
pooka 88392d44db Add a vfstest zfs attachment. This is a compile-time option,
default off, due the large numbers of failing tests (some of them
look like quite trivial failures).
2012-08-20 16:37:35 +00:00
martin d0ba1a0677 Fix stupid thinko when checking for the availability of options MODULAR
and permission to load modules.
2012-08-20 08:07:52 +00:00
martin f3b7cec914 Be more verbose if we get unexpected error codes from modctl. 2012-08-19 20:54:56 +00:00
alnsn d52ebd2ff5 Close pipes on exit. 2012-08-16 20:16:06 +00:00
alnsn 16465504ed Wait for a child to initialise its network stack before sending a ping.
Decrease BIOCSRTIMEOUT to 500ms.
2012-08-16 19:42:23 +00:00
pgoyette 1cf0fdecbd Fix more fallout from the changes to nfsd's command-line options 2012-08-16 12:57:24 +00:00
martin 6d924f6074 Slightly reaarange, so that the 32bit version actually gets compiled
and linked with -m32.
2012-08-16 10:14:03 +00:00
martin 324d0ec850 Do not disturb the atf output with debugging echos 2012-08-16 08:39:43 +00:00
alnsn 196af63e15 Test contiguous buffer as well. 2012-08-15 21:36:00 +00:00
alnsn a5a1874fdf Add __RCSID and and make a couple of stylistic changes. 2012-08-14 19:40:30 +00:00
alnsn e7e64dcaa1 Build and install t_bpfilter. 2012-08-14 19:13:54 +00:00
alnsn a385466d91 Add t_bpfilter test. At the moment, it only checks
that bpf program can read bytes from mbuf chain.
2012-08-14 19:09:15 +00:00
pgoyette 4d0da3bb46 Remove nfsd options as they are no longer needed. 2012-08-13 18:02:32 +00:00
christos e3b23739ec add fdpass tests 2012-08-13 11:15:05 +00:00
martin 66c66d2d86 Make use of the new MODCTL_EXISTS check to query kernel wether (and why
not) we can load modules.
2012-08-13 08:07:03 +00:00
christos cb461c6808 Exclude tests that use rump 2012-08-08 13:57:05 +00:00
riastradh 57dd555999 Fix ffs_fstest_delfs's error branch for rump_pub_etfs_remove.
rump_pub_etfs_remove returns an error code, rather than setting errno
and returning -1.
2012-08-05 02:03:05 +00:00
riastradh 16b71d29d9 Implement link(2) in rumphijack. Add a couple trivial test cases. 2012-08-04 03:56:47 +00:00
njoly 734339d201 Add testcase for PR/46743 2012-07-28 16:08:39 +00:00
joerg 23fe3eb28c Add basic regression test for nbperf(1) 2012-07-22 20:38:20 +00:00
darrenr 30a942f180 test cases n201 and n202 were removed on import of 5.1.2 2012-07-22 16:22:41 +00:00
darrenr e60fd761ef Merged IPFilter 5.1.2 into HEAD 2012-07-22 14:33:26 +00:00
darrenr c9d5dc6c77 Import IPFilter 5.1.2 2012-07-22 13:44:10 +00:00
martin 8f3c15e2f4 Add a test case that (if gcc supports it on the current arch) to compile
a PIE binary and see if we can run it.
2012-07-21 12:30:55 +00:00
pgoyette 198966cae9 Add new test cases for entropy-providing sensors 2012-07-19 13:36:18 +00:00
spz 67d12f6407 more MKCRYPTO_IDEA and MKCRYPTO_MDC2 removal (resp, adjustment to IDEA and
MBC2 now always being included)
MKCRYPTO_RC5 now builds shared libs, add the missing files to sets
2012-07-14 16:04:04 +00:00
christos e2d5622544 MKCRYPTO_{IDEA,MDC2} is no more 2012-07-14 04:06:17 +00:00
pgoyette e048bbf458 Restore the rest of the ipfilter test framework, even if most of these
tests are broken.  The "golden output" files for these tests need to be
updated.
2012-07-08 14:45:05 +00:00
pgoyette b437857d4c Restore one more group of tests.
XXX Test i17 was broken previously, and remains broken.
2012-07-08 00:53:01 +00:00
pgoyette f499e4e2e7 Restore some more tests from ipfilter 5.1.1
XXX Test in2 was broken before the ipfilter 5.1.1 import, and is still
XXX broken.
2012-07-08 00:48:29 +00:00
pgoyette a29385018a Restore some more of the ipfilter 5.1.1 tests.
XXX It appears that ipftest is not handling the policy {,src-,dst-}hash
XXX correctly, so these tests are still marked broken/skipped.
2012-07-08 00:36:46 +00:00
pgoyette f5d9b1d185 Re-enable some of the ipf tests. The only thing wrong with these tests
is that the tests were not re-imported with the rest of ipfilter 5.1.1

XXX There are still some more ipf test failures that need to get resolved,
XXX but at least we'll get some of them back just in case we have a
XXX regression.
2012-07-07 23:29:44 +00:00
christos 291dafda34 tests for recvmmsg 2012-06-22 18:45:23 +00:00
christos 40114b997c PR/46602: Move the rfc6056 port randomization to the IP layer. 2012-06-22 14:54:34 +00:00
bouyer c3ff6f17e5 Disable the mmap_block test again, it doesn't panic when mmaping /dev/wd0d
only by accident. PR kern/46592.
2012-06-14 17:47:58 +00:00
njoly e1828ac1bb Skip sigbus_adraln testcase on alpha unless global
machdep.unaligned_sigbus sysctl is enabled.
2012-06-13 11:45:17 +00:00
christos c38c69a23f check thread limit 2012-06-12 23:56:19 +00:00
njoly 8d31656afc New testcase to check limits flags for ulimit builtin. 2012-06-11 18:32:59 +00:00
martin b0ac20cc38 Degrade all intermediate failures due to memory/resource shortage to
"skip" instead of "fail" - only if we get through to the real meat, we
can tell wether mlockall/mincore work or not.
2012-06-08 07:18:58 +00:00
martin fd9e5c02e3 Revert previous - instead of guessing the amount of needed memory locked
limits (often way too high) and skipping the test case if in doubt,
raise the limits as far as we can, and fix a few places in the test where
we could run into the limits and either skip or fail with a reasonable
message.
2012-06-07 09:59:51 +00:00
martin c1004a7836 Add a basic test for infocmp - this would have cought todays terminfo
lossage (PR lib/46553).
2012-06-06 21:23:10 +00:00
martin 7a598c266d Try to estimate the number of locked pages the mincore() test will need and
check it against resource limits, skipping the tests if it probably is too
low.
2012-06-05 08:44:21 +00:00
joerg fc67b0cd11 Switch terminfo(3) to cdb(5). 2012-06-03 23:19:09 +00:00
joerg 1907ec3a61 Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-06-03 21:42:44 +00:00
dsl 9ba407934a Fix build - delete extra & 2012-06-03 10:59:44 +00:00
joerg 49d8b9bb05 Spell NetBSD correctly. 2012-06-03 02:10:46 +00:00
martin 86b8339d8d adapt to new reality 2012-06-02 16:52:18 +00:00
njoly f567e6f954 Adjust test for recent atf_machine (amd64) -> atf_arch (x86_64)
change.
2012-06-02 14:52:28 +00:00
martin 9c63b84225 Do not skip the block device mmap test, as it does not crash
the kernel any more. Mark it as expected failure instead.
2012-06-01 15:59:21 +00:00
martin 78b7b66d90 Add a (skipped for now) test case for PR 46463 2012-05-31 20:31:07 +00:00
jruoho 88bb4c68e1 Add patch from Tetsuya Isaki in PR lib/46433. 2012-05-30 15:14:10 +00:00
jruoho c4e17f798c Use "atf_arch" instead of "atf_machine"; see atf-config(1). 2012-05-30 15:11:58 +00:00
martin f124f6239d Skip test on non-amd64 machines for now, pointing to PR 46490. 2012-05-30 06:01:22 +00:00
martin 8fa6d6191d Not a good idea to continue testing if basic assertions fail - only will
cause core dumps later.
2012-05-28 09:51:34 +00:00
martin a0f17796a7 Fix destination directory 2012-05-27 22:57:24 +00:00
christos a534436e93 one too many e's 2012-05-27 19:21:26 +00:00
christos d1cc87bd78 hook in libexecinfo 2012-05-27 18:52:16 +00:00
christos 5212b5c3e8 add a test for the backtrace function. 2012-05-27 18:47:18 +00:00