summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2014-08-26Update regress to follow openssl(1) move.Joel Sing
2014-08-26inevitable churn caused by the section title changeIngo Schwarze
2014-08-25Add tests where the IP address family has been chosen by -4 or -6Alexander Bluhm
command line switch and udp4:// or udp6:// loghost prefix.
2014-08-25Inspired by the previous brainpool addition, copy isakmpd's dh test toReyk Floeter
iked. Both daemons share the same dh implementation, but this makes it easier to test iked directly.
2014-08-25Add tests for syslogd sending and receiving over IPv6 sockets.Alexander Bluhm
2014-08-20Run syslogd regressions tests. As only one syslogd can run perAlexander Bluhm
machine, each test kills any syslogd first. At the end the system's syslogd gets restarted. The test framework runs a client, and a server, and a syslogd. The messages are passed via the log socket or via UDP from the client to syslogd. From there UDP transport is used to reach the server. All processes write log files where the message has to show up. The test arguments are kept in the args-*.pl files. The content of a log file, the data sent to a pipe process and what the server received are checked. The invocation of the sendsyslog(2) syscall is checked with ktrace, the open file descriptors of syslogd are checked with fstat.
2014-08-23when you specify queues in a rule, make sure they have been defined.Martin Pelikan
DIOCADDRULE EBUSY turns into an error message that pfctl -n catches. DIOCXCOMMIT EINVAL after the kernel rejected the rules was reported to occur, possibly from hfsc.c: this should be fixed as well. ok henning mikeb sthen
2014-08-21Right after .Fl, a middle delimiter triggers an empty scope,Ingo Schwarze
just like a closing delimiter. This didn't work in groff-1.15, but it now works in groff-1.22. After being closed by delimiters, .Nm scopes do not reopen. Do not suppress white space after .Fl if the next node is a text node on the same input line; that can happen for middle delimiters. Fixing an issue reported by jmc@.
2014-08-20Link ospfd and syslogd regression tests to the build.Alexander Bluhm
2014-08-20Run syslogd regressions tests. As only one syslogd can run perAlexander Bluhm
machine, each test kills any syslogd first. At the end the system's syslogd gets restarted. The test framework runs a client, and a server, and a syslogd. The messages are passed via the log socket or via UDP from the client to syslogd. From there UDP transport is used to reach the server. All processes write log files where the message has to show up. The test arguments are kept in the args-*.pl files. The content of a log file, the data sent to a pipe process and what the server received are checked. The invocation of the sendsyslog(2) syscall is checked with ktrace, the open file descriptors of syslogd are checked with fstat.
2014-08-19Do not dereference a NULL pointer if a .Bl macro hasIngo Schwarze
no -type, -width, -offset or -compact arguments whatsoever; this got broken in mdoc_validate.c rev. 1.156. While here, sort headers.
2014-08-18Make the perl modules consistent for the multiple regression tests.Alexander Bluhm
This includes coding style, better error messages and variable naming.
2013-01-03Reengineer the socket splicing regression tests:Alexander Bluhm
- Move the tests from splice to new sosplice directory for consistent naming. - Split the API tests and the TCP splicing tests into separate directories. - Create some tests for the upcoming UDP splicing. - Tests can be run in obj directories now. - The API tests can run both on a local and on a remote machine now. - Fix the forking TCP tests which splice and read or write simultaneously. - Bunch of little fixes for races in the tests. - Deduplicate code, move checks into common functions.
2014-08-18Add a description of what the relayd and sosplice regression testsAlexander Bluhm
do. Also explain the optional environment variables.
2014-08-18Make out of band data tests more reliable. As multiple tcp urgentAlexander Bluhm
bytes cannot be handled correctly, allow another variation.
2014-08-18Make the forking tests more reliable. During copy the read(2)Alexander Bluhm
system call might fail with EAGAIN when the other forked process has already read the data.
2014-08-18Make the multiple UDP packet test more reliable. The receive bufferAlexander Bluhm
limit also counts the mbufs in it, so packets could be dropped. Increase both send and receive socket buffer size.
2014-08-18Add test cases for multiple small HTTP requests. Many PUT requestsAlexander Bluhm
with ony byte content length triggered relayd to hang. This has been fixed already.
2014-08-18When the first child of the node being validated gets deleted duringIngo Schwarze
validation, man_node_unlink() switches to MAN_NEXT_CHILD. After that, we have to switch back to MAN_NEXT_SIBLING after completing validation, or subsequent parsing would add content into an already closed node, clobbering potentially existing children, causing information loss and a memory leak. Bug found by kristaps@ with valgrind in groff(7) on Mac OS X. Note that the switch back must be conditional, for if the node being validated itself gets deleted, we must *not* go to MAN_NEXT_SIBLING, which would not only yield wrong results in general but also crash in malformed manuals having an empty paragraph before the first .SH, for example OpenBSD c++filt(1). While here, add the missing <sys/types.h> as required before mandoc.h.
2014-08-17Sync regress/usr.sbin/relayd with recent http.h changesdoug
2014-08-17Segfault fixes from kristaps@.Ingo Schwarze
Note that .It and .Nm blocks without bodies cannot be generated by valid mdoc(7) syntax but are a adequate representations of invalid mdoc(7) constructs like Bl -hang It Bo Sh and Sh SYNOPSIS Nm Bo Sh.
2014-08-17Fix regression tests for ld.sodoug
It now runs correctly with 'make depend regress'
2012-08-16basic randomdata regression testsMatthew Dempsky
2014-08-16If a stray .It follows .El, we are no longer in the list,Ingo Schwarze
even though the list is still the last processed macro. This fixes a regression introduced in mdoc_macro.c rev. 1.95: Ulrich Spoerlein <uqs at FreeBSD> reports that various of their kernel manuals trigger assertions.
2014-08-16replace sprintf/strdup with asprintf in engine testbcook
2014-08-16use C rather than C++ array initialization syntaxbcook
this causes errors with stricter C compilers
2014-08-15Convert 3DES regress test from /dev/crypto to using kernel source codeMike Belopuhov
directly with a simplified CBC implementation.
2014-08-15Convert AES-CTR regress test from /dev/crypto to using kernel sourceMike Belopuhov
code directly. This test is converted the same way jsing@ has recently converted an XTS test by pulling in xform.c code.
2014-08-15Convert AES regress test from /dev/crypto to using kernel source codeMike Belopuhov
directly. This test case uses ECB vectors, therefore no chaining is required.
2014-08-14fix date that got changed by MdocdateIngo Schwarze
and no longer matches the desired output
2014-08-14new regression tests collected during recent workIngo Schwarze
2014-08-14add missing NOPTS argumentsIngo Schwarze
2014-08-14Add a simple target to validate the syntax of -Thtml output.Ingo Schwarze
Not hooked to the build yet because there are still too many bugs.
2014-08-11start catching up with recent code changes, but no new files yetIngo Schwarze
2014-08-10guenther wants a copyrightTed Unangst
2014-08-10AF_IMPLINK and AF_BLUETOOTH are gone, but add printing of SOCK_SEQPACKETPhilip Guenther
2014-08-10Only need <stdint.h> and not all of <inttypes.h> herePhilip Guenther
2014-08-10Only need <stdint.h> and not all of <inttypes.h> herePhilip Guenther
2014-07-28remove non-portable __progname extern from arc4random unit test.bcook
ok @deraadt
2014-07-22Add $OpenBSD tag to make syncs easierDarren Tucker
2014-07-22Regenerate test keys with certs signed with ed25519 instead of ecdsa.Darren Tucker
These can be used in -portable on platforms that don't support ECDSA.
2014-07-22Sign test certs with ed25519 instead of ecdsa so that they'll work inDarren Tucker
-portable on platforms that don't have ECDSA in their OpenSSL. ok djm
2014-07-22change the test for still-open Unix domain sockets to be robust againstDamien Miller
nc implementations that produce error messages. from -portable
2014-07-21Switch from <sys/endian.h> or <machine/endian.h> to the new,Philip Guenther
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-07-20A HTTP connection may have multiple requests with content. AllowAlexander Bluhm
to specify an array of md5 hashes in the test arguments and check all of them in the client and server log files. So test that relayd does not modify the http body.
2014-07-20Fix ordering breakage, moving the fclose() test last again.Philip Guenther
Also correct some format strings. From Doug Hogan (doug (at) acyclic.org)
2014-07-20Update regress to match change in stpcpy() linker messagePhilip Guenther
Noted by Doug Hogan (doug (at) acyclic.org)
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
2014-07-20Delete unused variables found by -WallPhilip Guenther
2014-07-20Add missing include. Tickled by Doug Hogan (doug (at) acyclic.org)Philip Guenther