sh: Use 126 and 127 exit status for failures opening a scriptThis affects scripts named on the command line, named with a '.' specialbuiltin and found via the PATH %func autoloading mechanism.PR
sh: Use 126 and 127 exit status for failures opening a scriptThis affects scripts named on the command line, named with a '.' specialbuiltin and found via the PATH %func autoloading mechanism.PR: 231986
show more ...
sh: Fix INTOFF leak when a redirection on a compound command fails.Reported by: bdrewery
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that na
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed- Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously.- Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.- Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)Document the proposed changes in share/examples/tests/tests/... via examplesso it's clear that ${PACKAGES}FILES is the suggested way forward in terms ofreplacing FILES. share/mk/bsd.README didn't seem like the appropriate methodof communicating that info.MFC after: never probablyX-MFC with: r298107PR: 209114Relnotes: yesTested with: buildworld, installworld, checkworld; buildworld, packageworldSponsored by: EMC / Isilon Storage Division
DIRDEPS_BUILD: Connect MK_TESTS.Sponsored by: EMC / Isilon Storage Division
Avoid adding the '-release' suffix to non-debug kernel packages.Sponsored by: The FreeBSD Foundation
sh: Don't create bad parse result when postponing a bad substitution error.An invalid substitution like ${var@} does not cause a parse error but isstored in the intermediate representation, to be
sh: Don't create bad parse result when postponing a bad substitution error.An invalid substitution like ${var@} does not cause a parse error but isstored in the intermediate representation, to be written as part of theerror message. If there is a CTL* byte in the stored part, this confusessome code such as the code to skip an unused alternative such as in${var-alternative}.To keep things simple, do not store CTL* bytes.Found with afl-fuzz.MFC after: 1 week
sh: Don't hardcode relative paths in the tests stderr files.These paths have had to be adjusted to changes in the testsuite runnerseveral times, so modify the tests to remove the need for such adj
sh: Don't hardcode relative paths in the tests stderr files.These paths have had to be adjusted to changes in the testsuite runnerseveral times, so modify the tests to remove the need for such adjustment.A cp in functional_test.sh is now unneeded, but this matters little inperformance.
Convert bin/sh/tests to ATFThe new code uses a "test discovery mechanism" to determinewhat tests are available for executionThe test shell can be specified via: kyua test -v test_suites.FreeB
Convert bin/sh/tests to ATFThe new code uses a "test discovery mechanism" to determinewhat tests are available for executionThe test shell can be specified via: kyua test -v test_suites.FreeBSD.bin.sh.test_shell=/path/to/test/shSponsored by: EMC / Isilon Storage DivisionApproved by: jmmv (mentor)Reviewed by: jilles (maintainer)
Migrate tools/regression/bin/ tests to the new layout.This change is a proof of concept on how to easily integrate existingtests from the tools/regression/ hierarchy into the /usr/tests/ testsuit
Migrate tools/regression/bin/ tests to the new layout.This change is a proof of concept on how to easily integrate existingtests from the tools/regression/ hierarchy into the /usr/tests/ testsuite and on how to adapt them to the new layout for src.To achieve these goals, this change:- Moves tests from tools/regression/bin/<tool>/ to bin/<tool>/tests/.- Renames the previous regress.sh files to legacy_test.sh.- Adds Makefiles to build and install the tests and all their supporting data files into /usr/tests/bin/.- Plugs the legacy_test test programs into the test suite using the new TAP backend for Kyua (appearing in 0.8) so that the code of the test programs does not have to change.- Registers the new directories in the BSD.test.dist mtree file.Reviewed by: freebsd-testingApproved by: rpaulo (mentor)