Commit Graph

1646 Commits

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