summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2020-03-19Regression for unnamed map.Martin Pieuchot
2020-03-16Adapt to tls13_record_layer.c r1.30 (the sequence number shouldn't wrap).Theo Buehler
2020-03-16Enable tests now that the original parent see the exit status after theMartin Pieuchot
debugger.
2020-03-13Increment a few more sequence numbers where the carry is close toTheo Buehler
crossing a byte boundary.
2020-03-13Add regress for TLSv1.3 sequence number handling.Joel Sing
2020-03-13Add missing $OpenBSD$ tag.Joel Sing
2020-03-13Add regress for CBB_add_space().Joel Sing
2020-03-13some more speeling mistakes fromDamien Miller
https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html
2020-03-13typos resulted in two tests not being runIngo Schwarze
2020-03-13Split tagging into a validation part including prioritizationIngo Schwarze
in tag.{h,c} and {mdoc,man}_validate.c and into a formatting part including command line argument checking in term_tag.{h,c}, html.c, and {mdoc|man}_{term|html}.c. Immediate functional benefits include: * Improved prioritization of automatic tags for .Em and .Sy. * Avoiding bogus automatic tags when .Em, .Fn, or .Sy are explicitly tagged. * Explicit tagging of .Er and .Fl now works in HTML output. * Automatic tagging of .IP and .TP now works in HTML output. But mainly, this patch provides clean earth to build further improvements on. Technical changes: * Main program: Write a tag file for ASCII and UTF-8 output only. * All formatters: There is no more need to delay writing the tags. * mdoc(7)+man(7) formatters: No more need for elaborate syntax tree inspection. * HTML formatter: If available, use the "string" attribute as the tag. * HTML formatter: New function to write permalinks, to reduce code duplication. Style cleanup in the vicinity while here: * mdoc(7) terminal formatter: To set up bold font for children, defer to termp_bold_pre() rather than calling term_fontpush() manually. * mdoc(7) terminal formatter: Garbage collect some duplicate functions. * mdoc(7) HTML formatter: Unify <code> handling, delete redundant functions. * Where possible, use switch statements rather than if cascades. * Get rid of some more Yoda notation. The necessity for such changes was first discussed with kn@, but i didn't bother him with a request to review the resulting -673/+782 line patch.
2020-03-12Add a regression test for vnd(4).Visa Hankala
2020-03-11output the name of each targetanton
2020-03-10Update to follow handshake enum removal.Joel Sing
2020-03-10Import openssl-1.1.1d test data to base64test.cKinichiro Inoguchi
ok bcook@ tb@
2020-03-10Modify regress base64test.cKinichiro Inoguchi
- Don't remove multi line CR/LF from bt->out when NL mode base64_encoding_test removes CR/LF from bt->out to compare with the encoding result. This is fine with NO NL mode, but it goes wrong with NL mode if encoding result is larger than 64 and multi line, like below. "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4\neHh4eHh4eHh4eHh4\n" - Use memcpy instead of asprintf to avoid lost '\0' at the end of data This test data loses trailing '\0' if using asprintf. "\x61\x47\x56\x73\x62\x47\x38\x3d\x0a\x00" - Print original data if decoding result comparison fails This change is not for importing test data, but I just notice. It prints bt->out if fail to memcmp bt->in with decoding result. ok bcook@ tb@
2020-03-09cstyle in illumos noticed some weird syntax, which this fixes.David Gwynne
some errx lines in if statements were terminated with commas, which caused the following statement to be considered part of the error handling. while it is bad style, ingo points out it was also a bug which which caused some tests in the code to be skipped. this reminds me of a haiku that Chris Pascoe (cpascoe@) had behind his desk: Also, that comma Should be a semi-colon. Cherry blossoms fall. this was found by Robert Mustacchi when porting the tests to illumos. ok schwarze@ stsp@ thank you robert.
2020-03-08Add a regression test for kqueue recursion. Also check that select(2)Visa Hankala
and poll(2) work with kqueue.
2020-03-02Accidently some tests were never running. Make regress target namesAlexander Bluhm
unique. reported by Christian Ehrhardt
2019-08-05Call realpath(3) in combination with chroot(2) and chdir(2).Alexander Bluhm
Use umount(8) to check that the mountpoint leaks no vnode. from Moritz Buhl
2020-02-28Enable ptrace2Martin Pieuchot
2020-02-28Import ptrace(2) regression tests from FreeBSD.Martin Pieuchot
Only the first two tests are currently passing and enabled. The second one already exposes the recently fixed bug with double wait(2) report. More tests will be enabled as they get fixed.
2020-02-27Fully support explicit tagging of .Sh and .Ss.Ingo Schwarze
This fixes the offset of two lines in terminal output and this improves HTML output by putting the id= attribute and <a> element into the respective <h1> or <h2> element rather than writing an additional <mark> element. To that end, introduce node flags NODE_ID (to make the node a link target, for example by writing an HTML id= attribute or by calling tag_put()) and NODE_HREF (to make the node a link source, used only in HTML output, used only to write an <a class="permalink"> element). In particular: * In the validator, generalize the concept of the "next node" such that it also works before .Sh and .Ss. * If the first argument of .Tg is empty, don't forget to complain if there are additional arguments, which will be ignored. * In the terminal formatter, support writing of explicit tags for all kinds of nodes, not just for .Tg. * In deroff(), allow nodes to have an explicit string representation even when they aren't text nodes. Use this for explicitly tagged section headers. Suprisingly, this is sufficient to make HTML output work, without explicit code changes in the HTML formatter. * In syntax tree output, display NODE_ID and NODE_HREF.
2020-02-27Introduce the concept of nodes that are semantically transparent:Ingo Schwarze
they are skipped when looking for previous or following high-level macros. Examples include roff(7) .ft, .ll, and .ta, mdoc(7) .Sm and .Tg, and man(7) .DT and .PD. Use this concept for a variety of improved decisions in various validators and formatters. While here, * remove a few const qualifiers on struct arguments that caused trouble; * get rid of some more Yoda notation in the vicinity; * and apply some other stylistic improvements in the vicinity. I found this class of issues while considering .Tg patches from kn@.
2020-02-27Fix this test after the recent Unicode update in OpenBSD base.Ingo Schwarze
The test uses U+07FF NKO TAMAN SIGN because it is the highest code point having a two-byte UTF-8 representation. This character is a new single-width punctuation character in Unicode 11, such that mandoc now does correct horizontal spacing. We already used the code point for the test before it was assigned, which resulted in weird spacing because wcwidth(3) returns -1 for unassigned code points.
2020-02-21Add test for IPsec transport mode. Check not only flows but also SAs,tobhe
SA modes (tunnel/transport), and flow types (IPcomp/ESP).
2020-02-17Disable name resolution in tcpdump with -n. We always compare source andtobhe
destination addresses.
2020-02-17Generate public keys for newly generated local private keys.tobhe
2020-02-16Update protocol version test to include TLSv1.3.Joel Sing
2020-02-14no need to declare "extern optarg" and "extern optind"Ingo Schwarze
when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert
2020-02-05Reset the key share so that we do not have an existing peer public key.Joel Sing
2020-02-02Since OpenBSD has switched to the strict host model, this regressAlexander Bluhm
needs IP forwarding enabled on the packet source machine. Otherwise the pf reply-to test fails.
2020-02-02Add missing new line to printf. Make clean should not require SUDO.Alexander Bluhm
2020-02-01Tweak regress to match change made to tls13_key_share_peer_public().Joel Sing
2020-01-31regress test for sshd_config Include directive; from Jakub JelenDamien Miller
2020-01-30Revise for TLSv1.3 key share changes.Joel Sing
2020-01-30For debugging set KTRACE=ktrace environment. Then client.ktraceAlexander Bluhm
and syslogd.ktrace show the communiation over the tap device.
2020-01-30Enable t_ptrace with an errno change compared to NetBSD.Martin Pieuchot
Note that the last test triggers a kernel bug related to waitpid(9) and ptraced processes. This is now visible thanks to recent make(1) changes. guenther@ suggests to look at the logic behind `p_orphan' in FreeBSD to fix this bug.
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
ATF (Automated Testing Framework), so we use a small wrapper to map it to our bsd.regress.mk framework. Only half of the 80 NetBSD tests have been taken, the others need more work to adapt. Of them 34 syscall tests pass. Moritz Buhl ported the tests to OpenBSD.
2020-01-28With nc -NU netcat can probe if a UNIX stream socket is listening.Alexander Bluhm
Add a test for this. Use case needed by florian@.
2020-01-28Implement map functions min(), max() and sum().Martin Pieuchot
For the moment map values are currently limited to integers.
2020-01-28Tests for delete(@map[key]) and printf("%d\n", @map[key])Martin Pieuchot
2020-01-27Some of the test vectors that were added in the upstream commitTheo Buehler
4672ff74d68766e7785c2cac4c597effccef2c5c have a zero byte prepended. Run the secp224k1 ECDH tests and adjust this if needed.
2020-01-26make regress pass, since these new tests now passBob Beck
2020-01-26Restrict to use up to TLSv1.2 for test_server_client in appstest.shKinichiro Inoguchi
Currently, only s_client has TLSv1.3 and s_server does not.
2020-01-26Add back the tests that were deleted in previous but not containedTheo Buehler
in OpenSSL's test suite.
2020-01-26server sigalgs test is now bogus, disable for nowBob Beck
2020-01-26Adjust tests to match the change in EVP_chacha20().Theo Buehler
Test vectors taken from OpenSSL 1.1.1d (under OpenSSL's old license).
2020-01-26Also test maxprefix out. Based on maxprefix test added a few days ago.Claudio Jeker
2020-01-26unbreak unittests for recent API / source file changesDamien Miller
2020-01-25Disable cert interop tests for now.Joel Sing
The libressl TLSv1.3 client and server currently lack client certificate authentication support and this test expects all clients can auth with all servers. We can likely turn this back on in the near future.