pkgsrc/regress
rillig ac62ef6aaf mk/subst.mk: fix combination of SUBST_FILTER_CMD with SUBST_NOOP_OK=no
Since SUBST_FILTER_CMD is a shell command, it may contain arbitrary
characters.  The condition in mk/subst.mk that tested whether
SUBST_FILTER_CMD was the default filter command was evaluated at run
time.  In such an evaluation, the variables (lhs and rhs) are fully
expanded before parsing the condition.  This means that these variables
must not contain quotes or unquoted condition operators.

Exactly this situation came up in one of the regression tests.  The
quoted "0-9" was copied verbatimly into the condition, including the
quotes.  The resulting condition was:

	"tr -d "0-9"" == "LC_ALL=C /usr/bin/sed "

This produced a syntax error because of the left-hand side. Adding a :Q
modifier would have helped for the left-hand side, but this would have
been necessary for the right-hand side as well.  Since an empty SUBST_SED
is defined not to "contain only identity substitutions", the first
condition can simply be removed.

The whole condition in the shell program had not worked anyway since it
expanded to either "[ true ]" or to "[ false ]", and both of these
commands exited successfully.
2020-04-29 22:46:42 +00:00
..
barrier
bootstrap-install-sh
buildlink-libtool regress/buildlink-libtool: fix failing test 2019-03-24 21:09:21 +00:00
buildlink-transform
buildlink-unwrap
check-perms regress/check-perms: add test for broken CHECK_PERMS_AUTOFIX 2019-09-19 23:53:36 +00:00
check-portability
compiler regress/compiler: fix regression test 2019-03-17 12:20:09 +00:00
conf-files-spaces mk/pkginstall/files: allow spaces in configuration file names 2020-02-11 01:59:30 +00:00
env-vars regress/env-vars: make test output more concise 2018-11-09 06:59:20 +00:00
gnu-configure-strict mk/configure: assist in finding unrecognized configure options 2019-05-04 15:16:50 +00:00
ignore-tools
infra-unittests mk/subst.mk: fix combination of SUBST_FILTER_CMD with SUBST_NOOP_OK=no 2020-04-29 22:46:42 +00:00
make-env-phases regress/make-env-phases: fix test by ignoring changes to *FLAGS 2019-12-17 16:01:28 +00:00
make-quoting regress/make-quoting: demonstrate that the ancient bugs have been fixed 2020-04-26 13:11:17 +00:00
path mk/bsd.pkg.mk: support spaces in PATH directories 2020-02-09 22:39:20 +00:00
pkg-options regress/pkg-options: remove obsolete _PKG_SILENT 2020-03-19 19:56:47 +00:00
pkgfail
plus_build_version mk/pkgformat: include only relevant ident strings in +BUILD_VERSION 2020-01-15 20:11:11 +00:00
print-plist regress/print-plist: fix syntax error after almost 15 years 2019-07-17 17:56:22 +00:00
print-plist-python lang/python: fix PYVERSSUFFIX escaping for print-PLIST 2019-07-17 18:34:16 +00:00
show-all show-all: fix output for list variables containing dollar characters 2020-03-20 16:39:03 +00:00
tools mk/tools: in the wrapper log, quote arguments containing = naturally 2019-05-22 20:47:05 +00:00
README regress: remove Makefile 2020-01-11 11:09:35 +00:00

See the chapter "Regression tests" in the pkgsrc guide (doc/pkgsrc.txt)
for more information about these tests.