Commit Graph

1161 Commits

Author SHA1 Message Date
christos 14e255cf54 use RTLD_NOW now that it works. 2010-01-13 20:18:24 +00:00
uebayasi 3a48f7cfa9 Conditionalize some build directories by ${MKCXX}. 2009-12-14 12:43:48 +00:00
uebayasi fac33cd8a3 Handle undefined USE_SSP. XXX *_SSP variables needs clean-up. 2009-11-25 09:30:04 +00:00
uebayasi 82bc011c43 Descend into ssp/ only if ${USE_SSP} is yes. 2009-11-25 09:22:36 +00:00
plunky 3b1c581042 remove libevent (uses ATF tests now) 2009-11-02 15:44:12 +00:00
plunky 212bd4a35c remove old libevent sources 2009-11-02 10:14:28 +00:00
jmmv 6c8d9e2723 Remove the sh regress tests that have just been migrated to tests. 2009-10-20 21:59:55 +00:00
christos a3e43a9010 add packed tests. 2009-10-04 15:12:41 +00:00
apb 4b22dcf467 Add a note saying that new tests should use ATF. 2009-09-14 17:15:32 +00:00
he df9cd830c6 Don't try to include <a.out.h> or <link_aout.h> on mips. 2009-08-21 13:30:54 +00:00
darrenr 1098c7bfb7 Import IPFilter 4.1.33
4.1.33 - Release 16 August 2009

2837931 wrong mode selected in ipf program for hash-entries
2826168 load_http can make ippool core dump
2825150 IPL_LOGMAX used to index some arrays
2825084 ipv6 fragments should not be allowed past 64k
2824713 ipfstat top output alternates between entries and nothing
2824712 ipfstat top output is shows negative ttl
2820965 a single bad ipv6 extension header should not impact others
2818197 ignored fragment bits defined as being reserved
2817667 IPv6 fragment header verification needs attention
2817098 fr_getrulen() finds the wrong rule
2817096 fr_rulen is unused
2741019 Lingering states (Established/Listen - 5/0) in state table
2702887 use of PBR/fastroute causes panic with ipv6
2671913 regression test in7 fails to execute
2598625 parsing empty config file results in an error
2698656 test parsing empty config files
2597956 not all pointers in a clone are reset
2543934 nat_t gets assigned ifp too early
2535795 No need to always bump fr_ref
2535778 Bad IPv6 packets droped by default
2031730 4.1.31 Nat drops fragmented packets after the first
2214661 ipf does not handle IPv6 fragments
2473273 NAT removed before RST/ICMP sent
2216500 fin_state serves no purpose
2424604 adding random MD5 data causes panic
2304435 Ineffecient lock usage in logging
2216491 fin_nat serves little purpose
2055619 duplicating a free-d packet will fail
2042949 Excessive locking when creating nat_t
2035610 nat_update does not need to get locks
2214658 ipf mostly ignores locking in NetBSD
1979427 Memory leak in user utilities - token never freed (rel br)
* SunOS4 does not have a curproc, but it does have u.
* The fix for 2020447 generated random port numbers but not within the
  range specified in the map rule.  Add in a regression test to verify
  that the "random" part works.
2020447 NAT can undo name server random port selection
1988795 NetBSD does not build with kernel malloc stats
1988782 fr_movequeue can take a short cut
1988669 first nat creation failure prevents further success
1988668 hostmap searching does not work properly
* on some 64bit architectures (such as alpha), the addrfamily_t is packed
  differently, throwing off the calculations for adf_len
* one too many READ_ENTERs in ip_sync code.
* clean up fr_fastroute a little by removing some #ifdefs and pushing the
  code around a bit to use the same variables (NetBSD)
* more recent NetBSDs use VOP related macros differently
2009-08-19 08:28:39 +00:00
rmind d193f80bcb Improve mqueue regression test. 2009-07-19 02:31:19 +00:00
dsl 846f8720b2 Start with alignment '1' and write the search char to the byte before
the buffer.
XXX needs tests searching for 0xff.
2009-07-18 16:34:47 +00:00
dsl 8b3b305143 Add tests that scan for 0x0 and 0xff.
Remove the 'answers' section from the test definition, instead use our
own version of strchr() to determine the what the answer should be.
On error report which test we are doing, and the answer we got.
If symbol "test_strchr" exists, test that function instead of strchr().
(With a very dodgy strchr() other things fail badly.
2009-07-18 09:20:46 +00:00
pgoyette 0eb19985a4 We can try to trick the compiler, but at least we need to let it
compile!  (Hello, dsl!)
2009-07-18 04:34:32 +00:00
dsl ea7ea23a08 Pollute the space either side of the string being compared with the test
pattern.
2009-07-17 22:07:36 +00:00
rmind 94cea1184f Regression test for POSIX message queue priority handling. 2009-07-13 02:55:42 +00:00
dsl 749e537220 The local function pointer wasn't enough to stop gcc using the builtin
strlen!  Move to file scope and make 'volatile'.
When test fails use write (printf might be broken) to report info.
To aid testing new versions, use dlsym() for "test_strlen" defaulting to
strlen() so that the rest of the program doesn't use the broken version.
2009-07-11 11:45:16 +00:00
tls e234ec7db5 Update to libevent-1.4.11-stable. This has been a long time coming and
fixes many bugs, particularly with signal handling.

The regression tests have also been updated and complete successfully
on amd64.
2009-07-08 21:23:52 +00:00
christos e100a74164 add regression test for gdtoa large field width. 2009-05-07 20:40:25 +00:00
christos 80a75df157 Add __alignof__ test 2009-05-02 16:12:12 +00:00
christos 07ad48e732 add test for c99 for loops 2009-05-01 22:06:06 +00:00
drochner 6e71fa2242 add a test which exercises libpthread's ability to remember the
threads which were created, doing some random mallocs in between
so that threads are not equidistant in the address space
(bug fixed in libpthread/pthread.c rev. 1.109)
2009-04-02 12:58:44 +00:00
drochner 103beeac7d add a test which stresses the rbtree code with random numbers 2009-04-02 12:49:59 +00:00
christos df54e2033e remove obsolete comment. 2009-03-08 19:17:11 +00:00
jmmv 92ed1fa069 Remove the kernel and ipf tests that have been converted to atf and now
live in the tests subtree.
2009-02-20 21:45:47 +00:00
christos a009ca9c11 si_sigval is now si_value. 2009-02-17 19:22:43 +00:00
christos cfd10fe258 add a regression test for sigfpe. Most ports don't pass it right now. 2009-02-17 19:05:22 +00:00
cube 5be3815a69 Don't try to descend into regress/lib/libcrypto now that it's not there
anymore.  [hi jmmv!]
2009-02-14 00:26:14 +00:00
jmmv 3baa49a10f Convert the threads libcrypto test to ATF and enable it. Drop the old one
in regress.
2009-02-13 22:01:48 +00:00
jmmv 79bfeb3610 Remove libcrypto regress tests as they have been converted to ATF. The new
versions live in tests/crypto/libcrypto.

Note that the "threads" test is still left here because it was not converted
as part of the atfify GSoC 2008 project.  A quick attempt at building it
doesn't work, so I'll leave it for later.
2009-02-13 20:59:17 +00:00
jmmv 08439bc7e5 Remove tests that have been atfified as part of the GSoC 2008 atfify project. 2009-02-13 05:21:24 +00:00
ad 1f73905f59 signal(getpid(), SIGFOO) -> raise(SIGFOO) 2009-01-30 23:19:12 +00:00
ad 24bd77dd94 A threaded benchmark for namei() 2009-01-29 21:24:19 +00:00
ad 5c71c34a14 - If given an arg, don't bind to curcpu.
- Set line buffering on stdout.
2009-01-28 21:52:49 +00:00
christos 687caca4de make this work with an absolute path and explain why. 2009-01-28 16:11:23 +00:00
skrll 18a365911a Don't corrupt %r4 - it's a callee save.
Fixes regress/lib/csu/initfini on hppa.
2009-01-26 18:39:47 +00:00
nonaka 459e757bd6 Use %zu instead of %lu. for size_t. 2009-01-25 17:00:09 +00:00
lukem 540d0089bd sign-compare fix 2009-01-25 13:40:05 +00:00
christos 3048e3cf13 add glue to compile all the files we use from libc here. 2009-01-24 22:11:45 +00:00
lukem c5eb4ab601 fix -Wsign-compare issues 2009-01-18 11:56:51 +00:00
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
christos 466a16a118 fix time_t formats 2008-12-29 05:56:02 +00:00
christos c3145881d1 trap in subshell 2008-12-21 03:15:53 +00:00
christos dab49f36c7 add regression tests for stuff recently fixed. 2008-12-21 00:24:06 +00:00
ad b575edd757 A kernel module to test multithreaded performance of the kernel allocators. 2008-12-20 22:29:05 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
apb 33b84e402a Add AWK?=${TOOL_AWK} in regression tests for awk itself. 2008-10-27 20:59:22 +00:00
apb ea7b5c7aff Use ${TOOL_AWK}, no ${AWK}. 2008-10-27 20:58:08 +00:00
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
snj 682ea0e2b3 s/explicitely/explicitly/ 2008-10-19 21:27:46 +00:00
dholland 73c1f72053 Fix test case from PR 39639. This time around, be portable. 2008-09-28 07:43:42 +00:00
dholland 97c7ae2138 Add test case from PR 39639. 2008-09-27 20:13:03 +00:00
gmcgarry d818158a22 Avoid tests using nested functions when using PCC. 2008-09-09 00:16:05 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
christos 688adf3edf whitespace regression test from Andy Shevchenko 2008-08-28 16:40:05 +00:00
christos 70e554789a mktime regression test from Andy Shevchenko 2008-08-27 08:50:04 +00:00
christos b7cd7a548a test for write_append from Andy Shevchenko 2008-08-27 06:40:13 +00:00
gmcgarry 3cfcfe0917 return NULL 2008-08-17 00:19:52 +00:00
darrenr 9f0bfbf3da 2020447 IPFilter's NAT can undo name server random port selection 2008-07-24 09:37:57 +00:00
lukem 38e498a29c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:33:31 +00:00
rmind 481ae1556f - Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.
2008-06-16 01:41:20 +00:00
rmind 1ce83e28f1 Sync with the latest cpuset changes. 2008-06-16 00:33:24 +00:00
darrenr b002202839 fix a merge error that led to the expected file not being built for i19 2008-06-02 11:48:38 +00:00
christos 594a138824 add a complex test. 2008-05-31 15:44:31 +00:00
ad e74e1f24d8 Another latency test. This one uses realtime threads, _lwp_park, and
measures how long preemption takes (kernel preemption if the arch
implements it).
2008-05-28 11:34:07 +00:00
christos 3914f24884 make this compile again from Stathis Kamperis 2008-05-25 20:47:30 +00:00
ad f82d7874c2 A dumb test of how long it takes to send a byte through a pipe, using
timeshared threads and realtime threads.
2008-05-23 22:22:36 +00:00
darrenr 2f5a5e95ad Pullup IPFilter 4.1.29 from the vendor branch to HEAD.
See src/dist/ipf/HISTORY for a list of bug fixes since 4.1.23 (although
a few are already in NetBSD)
2008-05-20 07:08:06 +00:00
darrenr 675eb13106 Import IPFilter 4.1.29 to the vendor branch 2008-05-20 06:43:46 +00:00
peter 38ef85727a Update to libevent 1.4.4-stable.
Reviewed by provos@
2008-05-16 20:24:57 +00:00
ad 2bbb14eaa4 Back out previous. It broke the build. 2008-05-05 13:41:29 +00:00
ad d2c9207a91 Don't check sys/net/zlib.h. 2008-05-04 22:59:18 +00:00
martin 8acaa04128 Move to 2 clause license (can you spot the typo in the old text?) 2008-05-02 18:55:06 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos ee7f0d99cd add ellipsis test 2008-04-25 17:19:14 +00:00
ad 43d8bae932 Give callout_halt() an additional 'kmutex_t *interlock' argument. If there
is a need to block and wait for the callout to complete, and there is an
interlock, it will be dropped while waiting and reacquired before return.
2008-04-22 12:04:22 +00:00
yamt 849fe720d6 test lockf deadlock detection. 2008-04-05 03:34:47 +00:00
drochner ba327d4301 make this compile again
(it isn't built by default, but anyway)
2008-04-01 19:20:43 +00:00
apb e6806c2c83 Adapt to changes in m68k/060sp/asm2gas script: pass SED=${TOOL_SED:Q}
instead of TOOL_SED=${TOOL_SED:Q} in the environment.
2008-03-28 22:29:16 +00:00
ad e1fe405771 Add a test for callout_halt (and incidentally, fast softints). 2008-03-28 20:44:57 +00:00
ad 7b5d104e8d Make these compile again. 2008-03-28 20:28:27 +00:00
apb a749c03e28 Use "${TOOL_SED}" instead of just "sed" in sys/arch/m68k/060sp/asm2gas. 2008-03-27 07:15:16 +00:00
ad 0c65d1b648 - Use atomic_inc_uint() to maintain the global count.
- Use a barrier to sync thread start.

Ok yamt@.
2008-03-21 16:03:33 +00:00
yamt 9ff0d7c13c test select(2). 2008-03-21 12:27:12 +00:00
ad 2dc7c918f0 A test for the lwpctl preemption counter. 2008-03-12 11:02:21 +00:00
dholland 4ac721efa3 MKMAN should not be in source makefiles. Use NOMAN. 2008-03-09 22:44:41 +00:00
dholland 3bcd570495 No, it's not wrong after all. Sorry about the churn. I am going to adjust
bsd.own.mk so you can find NOMAN (and friends) with grep. Fixes PR 37750,
again.
2008-03-09 22:35:17 +00:00
dholland a3ab568637 Revert previous; it is wrong. Unfixes PR 37750. 2008-03-09 21:38:13 +00:00
dholland 1e8742be01 Use NOMAN=, not MKMAN=no. PR misc/37750 from Johan A. van Zanten. 2008-03-09 21:22:29 +00:00
dholland 794833ef2c Make this smarter still, so it folds multiple names for the same port
together (and drops duplicate names entirely) like services_mkdb now
does. PR lib/37711.
2008-03-09 01:31:07 +00:00
dholland 678f3eced6 Make this smarter; diff the output instead of just wc'ing it. 2008-03-08 23:32:38 +00:00
jwise 6d94a6eac7 Don't try to build these tests as part of a MKPIC=no build, they won't build. 2008-03-02 16:01:14 +00:00
lukem 1f09f2e309 Use mkstemp() instead of mktemp().
Use snprintf() instead of sprintf().
Improve error reporting.
2008-03-02 12:51:59 +00:00
ad e6ac0b80ac Fix uninitialized variable that caused this to fail spuriously. 2008-02-29 16:28:12 +00:00
dholland 936ebf85ff use errno.h, not sys/errno.h 2008-02-24 21:37:47 +00:00
dyoung a34525837f Do not #include <sys/device.h> from userland. 2008-02-11 20:29:15 +00:00
mrg 04ac16e077 also add -pthread to LDFLAGS; now this actually passes. 2008-02-09 08:38:08 +00:00
christos c44d05fa14 add a unit-test for threaded libobjc. 2008-02-08 20:04:50 +00:00