Commit Graph

1227 Commits

Author SHA1 Message Date
reinoud b1e03acdd3 Fix missing comma in errx() in normally not compiled code. 2011-08-16 13:15:04 +00:00
jruoho 943257c643 Move the uvm "loan" test to tests(7). 2011-07-14 11:08:44 +00:00
jruoho 418b5c73fe Remove "mmap" subdir. 2011-07-14 10:27:36 +00:00
jruoho de255ab49d ../regress/sys/uvm/mmap/mmap.c is now part of tests(7). 2011-07-14 08:12:20 +00:00
mrg c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg 75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
joerg a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg 4186c35cbd Fix format string 2011-05-24 16:11:08 +00:00
joerg 65b332fa1f Use proper format string 2011-05-24 16:04:14 +00:00
joerg eafadea975 Require GCC for compilation 2011-05-20 13:36:12 +00:00
mellon 0647473106 Include err.h and unistd.h to provide protos for err() and getpid(). 2011-05-18 19:45:05 +00:00
mellon b519b2e283 Include err.h to provide prototype for err(). 2011-05-18 19:44:18 +00:00
tsutsui 35020d6832 WARNSfy 2011-05-18 18:41:59 +00:00
christos 2bf6f45a6d fix prototypes. 2011-05-16 21:51:31 +00:00
christos 51c60bdd41 use err instead of printf, fix missing prototypes. 2011-05-16 12:43:59 +00:00
christos b139bf30af Turn on WARNS to 4, so that magically -std=gnu99 gets turned on and fix
the few warnings. Since the kernel uses c99, this makes kernel code that
uses c99 features compile.
2011-05-14 16:26:23 +00:00
pgoyette 478d663ec3 These tests have (finally) been atf-ified 2011-04-09 17:55:51 +00:00
joerg 526fbdff1c Kill a redundant lvalue cast in assembler constrained. 2011-03-18 03:06:21 +00:00
pgoyette d8ae15f3b3 The getqaddrinfo test has been atf-ified 2011-01-11 16:34:27 +00:00
pgoyette b94984c7b8 Since the regex test is gone, don't try to descend into its SUBDIR 2011-01-08 18:42:47 +00:00
pgoyette e2c5b6a838 The regex test has been atf-ified 2011-01-08 18:13:42 +00:00
pgoyette 63aa7b9e06 rpc/xdr test has been atf-ified 2011-01-08 07:02:17 +00:00
pgoyette a3eac7b0e8 The db test has been atf-ified 2011-01-07 15:08:40 +00:00
pgoyette da0ee23dec cerror and ttyio tests have been atf-ified 2011-01-07 02:51:38 +00:00
pgoyette c2f7c581b7 mktime test has been atf-ified 2011-01-06 17:22:14 +00:00
pgoyette e6c87c26a0 The nsdispatch test has been atf-ified. 2011-01-05 21:20:25 +00:00
pgoyette ec5548b1f7 The strptime test has previously been atf-ified. 2011-01-05 16:21:29 +00:00
pgoyette 6152a60b95 The atexit test has been atf-ified. 2011-01-04 14:22:06 +00:00
pgoyette 2b4410ab94 The servent test has been atf-ified 2011-01-03 00:55:18 +00:00
pgoyette 83238dfab4 Remove atf-ified tests: servent protoent md5sha 2011-01-02 22:10:23 +00:00
pgoyette f6e425415c The ieeefp stuff has been atf-ified, with the exception of ieeefp/testfloat
(which was never hooked into the build anyway).
2011-01-02 03:59:34 +00:00
pgoyette d7a6e9b3f2 The last of the libc/stdlib tests have been atf-ified 2011-01-01 23:59:19 +00:00
pgoyette f4dac2e1a2 More tests have been atf-ified 2010-12-31 14:37:37 +00:00
pgoyette 42af51cd08 These tests have been atf-ified 2010-12-31 04:10:41 +00:00
pgoyette f7a830954f ldexp has been atf-ified 2010-12-28 17:35:25 +00:00
pgoyette 5b31ebdf7b The last of lib/libc/gen tests have been converted to atf. 2010-12-28 12:48:38 +00:00
pgoyette d852949aef The *setjmp tests have moved to atf 2010-12-27 19:39:09 +00:00
pgoyette 7c2409fa33 The ssp tests have moved to atf format in src/tests/lib/libc/ssp/ 2010-12-27 03:33:46 +00:00
pgoyette bc33547390 Remove the rest of the libc/string tests - they've moved to atf 2010-12-26 13:38:08 +00:00
pgoyette d9958c63e6 Remove regress versions of str* tests - they have been atf-ified 2010-12-25 21:13:37 +00:00
pgoyette f28bd1fe2e Don't descend into siginfo - it's not there any more 2010-12-25 01:20:11 +00:00
pgoyette 0352bad5fd The siginfo tests have migrated to atf in src/tests/lib/libc/gen/ 2010-12-25 01:08:36 +00:00
pgoyette 73ed959de1 Remove a couple tests - they've moved to atf 2010-12-23 15:32:03 +00:00
pgoyette 5fb1be5c8e Remove these tests from regress - they've been converted to atf 2010-12-22 23:48:19 +00:00
pgoyette 4b607b8b71 These tests have been converted to atf 2010-12-21 14:26:17 +00:00
pgoyette 7d82dd048e Remove round test from old regress structure 2010-12-20 23:48:25 +00:00
joerg 8e2b771d40 Use ${HOST_SH} 2010-12-20 16:13:44 +00:00
skrll d56adbbf56 Remove references to delete tests. 2010-12-14 06:02:21 +00:00
skrll be2356ad6f Convert a couple of old regress tests to ATF.
Remove the regress/usr.bin/rtld/dlopen/dlopen.c test as well as it's
covered by existing ATF test(s).
2010-12-14 05:57:31 +00:00
rmind f72965d18d Don't overrun the buffer, when writing some payload. 2010-10-03 19:41:25 +00:00
jmmv e9e065afc7 The libdes tests have been converted to atf and now live in tests/lib/libdes. 2010-08-25 16:47:43 +00:00
pooka 3c6dee26b1 new tests should use atf -> new tests must use atf 2010-08-18 21:28:03 +00:00
jmmv 948b8e0c56 The sort(1) tests have been moved to tests/util/sort/. 2010-08-01 16:44:31 +00:00
jmmv b85cea17a2 Remove the libobjc tests; they have been converted to atf and now live in
tests/lib/libobjc/.
2010-07-18 12:44:38 +00:00
jmmv 008e3995ba Remove lint1 tests; they have been converted to atf and now live in
tests/util/xlint/lint1.
2010-07-18 10:12:33 +00:00
jmmv 9b3d800edb Remove the lib/csu/ and include/ tests; they have been converted to atf. 2010-07-17 19:29:33 +00:00
jmmv 59c643ac55 The libpthread tests have been converted to atf; remove the old versions. 2010-07-16 15:46:01 +00:00
jmmv 065d8f673d Remove tests converted to ATF. 2010-07-16 13:59:07 +00:00
rmind 29dd668442 Add a regression test for IPv4 reassembly. Cases:
- Normal (valid) fragments.
- Fragment with ip_off + hlen lower than IP_MINFRAGSIZE - 1.
- Different ip_tos values in fragments.
- Fragment data length which is not multiple of 8 bytes.
- Duplicate fragments (one covering previous).
- Packet larger than IP_MAXPACKET after reassembly.
- No last non-MF fragment (causing of timeout).
2010-07-13 22:13:18 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
christos 95aad9cc1b verify hex digits. 2010-05-19 21:59:34 +00:00
christos f65592ae19 regression test for ether_aton_r() 2010-05-19 21:55:35 +00:00
drochner 71380b75fd pull in some more headers to get prototypes into scope, and, more
importantly, the __RENAME of pollts(2)
2010-03-23 20:32:13 +00:00
christos ac4eda1b1e right shift of unsigned quantities with constant. 2010-03-21 00:03:46 +00:00
mrg ac4a5823ad if pthread_create() fails, display the iteration number in the error message. 2010-02-16 00:15:19 +00:00
mrg e3dc1c5e34 make this test actually work:
- posix_memalign() does not set errno, it returns 0 or an error number
  (maybe a jemalloc() vs. phkmalloc() issue, but also how the opengroup
  documents it.)
- since "align" must be >= sizeof(void *), expect to fail align=4 on
  LP64 systems.
- while i'm here, add a test for align=2 failing everywhere.
2010-01-26 22:14:01 +00:00
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