]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
awk: Move to using two sets of tests
authorWarner Losh <imp@FreeBSD.org>
Thu, 4 Nov 2021 16:09:16 +0000 (10:09 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 5 Nov 2021 14:53:36 +0000 (08:53 -0600)
commit517e52b6c21ccff22c46df0dcd15c19baee3d86c
tree2cb9facabaf30fc5bc0f594607402a95ba73f613
parent046e2d5db1e8afd2d09ea28e5d2a7550535d4b77
awk: Move to using two sets of tests

Upstream one-true-awk has two sets of tests. These are in addition to
NetBSD's tests we're using. The 'bugs-fixed' tests from upstream are
ready to use as-is (more or less). However, the 'tests' from upstream
are not, so for now we'll just use the netbsd and bugs-fixed tests.
They provide an OK workout and are better than nothing, though the tests
themselves are for specific esoteric things.

The upstream bugs-fixed tests are *ALMOST* a drop in. However, 3 test
for errors and the upstream test jig mashes stdout and stderr together,
which atf doesn't do, so make a tiny tweak to the upstream tests that I
hope to upstream. Plus upstream has ../a.out: instead of awk: in the
output. Not sure how to deal with this yet, so I've not proposed
anything upstream and have changed the test locally.

In addition, the system-status.awk test is not suitable to run in ATF.
It wants to force sh to dump core, but kyua doesn't seem to allow that
sometimes so the test will fail or pass based on whether or not a core
dump can be created. Since it's unstable, remove it.

This required moving the netbsd tests to a new direcotry, so update
mtree files as well. The change is useless for 'make check' without it.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31376
13 files changed:
contrib/one-true-awk/bugs-fixed/missing-precision.err [new file with mode: 0644]
contrib/one-true-awk/bugs-fixed/missing-precision.ok [deleted file]
contrib/one-true-awk/bugs-fixed/negative-nf.err [new file with mode: 0644]
contrib/one-true-awk/bugs-fixed/negative-nf.ok [deleted file]
contrib/one-true-awk/bugs-fixed/pfile-overflow.ok [deleted file]
contrib/one-true-awk/bugs-fixed/system-status.awk [deleted file]
contrib/one-true-awk/bugs-fixed/system-status.bad [deleted file]
contrib/one-true-awk/bugs-fixed/system-status.ok [deleted file]
etc/mtree/BSD.tests.dist
usr.bin/awk/tests/Makefile
usr.bin/awk/tests/bugs-fixed/Makefile [new file with mode: 0644]
usr.bin/awk/tests/bugs-fixed/bug_fix_test.sh [new file with mode: 0644]
usr.bin/awk/tests/netbsd/Makefile [new file with mode: 0644]