Commit Graph

1665 Commits

Author SHA1 Message Date
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