summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)AuthorFilesLines
2020-12-04Revbump packages with a runtime Python dep but no version prefix.nia1-1/+2
For the Python 3.8 default switch.
2020-08-31*: bump PKGREVISION for perl-5.32.wiz1-2/+2
2020-08-04mk/help: fix help parser for variable names followed by commarillig1-4/+5
Seen in mk/fetch/fetch.mk for FETCH_USE_IPV4_ONLY.
2020-08-04regress/infra-unittests: add test for help, topic followed by commarillig1-1/+22
2020-07-01show-all: fix typo in variable namerillig1-5/+7
The width only applies to a single group, not to several or even all groups.
2020-07-01regress/infra-unittests: add test for show-all with custom widthrillig1-4/+52
2020-07-01regress/show-all: migrate to regress/infra-unittestsrillig5-142/+157
The test framework over there makes it easier to run several independent tests. The previous way of squeezing all tests into a single package Makefile did not scale well and made it invonvenient to add new tests. In addition, there was no need to create a full-fledged package just to test this tiny piece of the pkgsrc infrastructure, since that can be used in categories and the top-level as well.
2020-07-01mk/buildlink3: increase width of varnames in show-all-bl3rillig1-36/+36
The buildlink3 variable names are quite long. So long that using the default column width of 24 characters, most of the variable values are not aligned. In this case, it makes sense to shift them all to the right a bit.
2020-06-29mk/haskell.mk: regenerate PLIST if it is outdatedrillig1-17/+18
Now that haskell.mk distinguishes between plain and outdated PLIST files, this is possible again. When haskell.mk knew only missing and outdated, this was still ambiguous and therefore skipped.
2020-06-29regress/infra-unittests: clean up tests for haskell.mkrillig1-53/+45
2020-06-29mk/haskell.mk: fix PLIST status detectionrillig1-3/+5
As seen in devel/hs-hashable/PLIST r1.1, which listed only the package-description but not the package-id.
2020-06-29mk/haskell.mk: only add PLIST_SUBST and PRINT_PLIST_AWK if usefulrillig1-55/+2
The PLIST_SUBST and PLIST_PRINT_AWK definitions for Haskell library packages are only useful if the package-description file exists. If that file is absent though, these are skipped. The test whether the file exists is made as late as possible since that file does not yet exist at the point where the package Makefile is parsed. This also affects the show-all-haskell target, which only shows these values after the install phase. This is not perfect but good enough for practical cases.
2020-06-29regress/infra-unittests: add more tests for haskell.mkrillig1-1/+355
These tests demonstrate the current behavior, to document further changes to haskell.mk.
2020-06-27regress/infra-unittests: add very basic tests for mk/haskell.mkrillig1-0/+177
2020-06-20regress/infra-unittests: fix typorillig1-2/+2
2020-06-11regress/infra-unittests: test SUBST_FILTER_CMD with empty SUBST_SEDrillig1-1/+43
2020-06-11mk/subst.mk: always remove temporary filerillig1-5/+3
Fixes PR pkg/55364.
2020-06-11regress/infra-unittests: demonstrate leftover temporary filerillig1-1/+6
Discovered by John Klos in PR pkg/55364.
2020-06-07regress/infra-unittests: add test case for no-op detectionrillig2-4/+91
2020-06-06regress/infra-unittests: add test for larger_symbol_version.awkrillig1-0/+92
2020-06-06mk/subst.mk: fix wrong SUBST failure in mail/policyd-weightrillig1-22/+11
The general rule is that a SUBST_SED that contains _any_ identity substitution may leave files unmodified, no matter if there are other substitutions as well.
2020-06-06regress/infra-unittests: demonstrate wrong SUBST no-op failurerillig1-1/+46
Discovered by Juraj in mail/policyd-weight. https://mail-index.netbsd.org/pkgsrc-changes/2020/06/06/msg215480.html
2020-05-24regress/plus_build_version: fix testrillig1-1/+1
2020-05-23mk/configure: fix configure options check for custom CONFIGURE_SCRIPTrillig1-1/+57
Seen in cross/arm-none-eabi-gdb.
2020-05-23regress/infra-unittests: document creative AC_ARG_WITH in lang/mono4rillig1-1/+14
2020-05-22mk/configure: fix check for unknown configure optionsrillig1-14/+13
2020-05-22regess/infra-unittests: add test for unknown configure optionrillig1-2/+46
2020-05-21mk/pkgformat/metadata.mk: fix relative paths in PATCHDIR and FILESDIRrillig1-7/+5
Before, relative paths had been stored as-is. This affected those packages that defined PATCHDIR or FILESDIR as relative directory instead of prefixing it with ${.CURDIR}. Since there are already several other paths that are interpreted relative to the package directory (CONFLICTS, DEPENDS), allow PATCHDIR and FILESDIR to be specified as relative paths, too. This makes the package Makefiles a bit shorter.
2020-05-21mk/configure: completely rewrite check for unknown configure optionsrillig8-196/+399
The previous implementation could not reliably detect outdated configure options. This was apparent in devel/gettext-tools, where the option --with-included-libcroco had become unknown between May 2019 and May 2020, but the check was not run. The behavior is the same in the pkgsrc default configuration. Only if GNU_CONFIGURE_STRICT=yes, the new check is activated and will make packages fail that previously succeeded to build. Since that variable is not widely known, there won't be much sudden breakage, if any.
2020-05-21regress/tools-platform: add test for "$@" and kshrillig1-1/+7
2020-05-19regress/infra-unittests: demonstrate relative paths in +BUILD_VERSIONrillig1-0/+116
Pointed out by wiz@. This occured in math/libixion/Makefile.common until 2020-05-19, and still occurs in math/xyconvert/Makefile. In all other packages, PKGDIR is prefixed with ${.CURDIR} and is thus an absolute path. It should not be necessary to always specify PATCHDIR as an absolute path, and the code in mk/pkgformat/pkg/metadata.mk seems to be the only place where relative paths are handled wrong.
2020-05-19regress/infra-unittests: remove unnecessary tmpdir handlingrillig1-14/+14
The test infrastructure from test.subr already takes care of setting up a temporary directory.
2020-05-19regress/plus_build_version: the bug has been fixed in January 2020rillig1-2/+1
2020-05-18mk/configure/replace-interpreter.mk: silently skip broken symlinksrillig1-0/+119
Like directories, they probably come from shell globs. Seen in misc/byobu.
2020-05-17regress/infra-unittests: add test for variable precedencerillig1-0/+70
2020-05-16regress/infra-unittests: replace double quotes with single quotesrillig1-36/+36
2020-05-16mk/subst.mk: change default value for SUBST_NOOP_OK from yes to norillig1-8/+153
This makes the SUBST blocks stricter than before, to detect outdated or unnecessary definitions. Filename patterns that are not affected by any of the SUBST_SED expressions make the build fail. It is still ok if only some of the files from a pattern are affected and some aren't. The latest bulk build shows that most of the build failures are fixed. The packages that fail in that build are mostly due to other failures, like missing C headers, wrong PLIST files, unresolved references at link time. There may be a few packages that still fail because of this, but these are near the leaves of the dependency tree. https://mail-index.netbsd.org/pkgsrc-bulk/2020/05/14/msg018919.html
2020-05-16mk/subst.mk: properly detect s,a,a,1 as identity substitutionrillig1-1/+4
Seen in games/bastet. The 1 is not necessary though since it only repeats the default behavior of sed.
2020-05-12regress/infra-unittests: clean up test code, add portabilityrillig2-104/+52
The test can now be run with bash and ksh as well. Bash exits if a function call returns failure, the NetBSD /bin/sh doesn't. After reading POSIX, sections "2.9.1 Simple Commands" and "set -e", I'm in favor of bash here. Ksh exits in "set -eu" mode if "$@" is used but no arguments are given.
2020-05-12regress/infra-unittests: clean up test code for subst.mkrillig1-32/+34
There had been unnecessary variations in the code.
2020-05-12regress/infra-unittests: replace remaining double with single quotesrillig1-89/+88
2020-05-11regress/infra-unittests: replace double quotes with single quotesrillig1-247/+247
Strings in single quotes are simpler to understand and also need fewer pixels on the screen.
2020-05-11mk/subst.mk: fix edge case in detection of identity substitutionsrillig1-4/+24
In a basic regular expression, a dollar-sign only means end-of-string if it appears at the end of the pattern, or (at the choice of the implementation) at the end of a \(...\) subexpression. This affects the package converters/help2man that uses a regular expression containing a dollar in a non-final position. This regular expression had not been detected as an identity substitution even though it is one.
2020-05-11regress/infra-unittests: add tests for identity substitutionsrillig1-1/+9
2020-05-11regress/infra-unittests: run tests in a temporary directoryrillig4-193/+188
This isolates the tests from the test infrastructure and allows the test infrastructure to create arbitrary files for its own purpose without affecting any of the tests.
2020-05-11regress/tools-platform: demonstrate bug in nbsed-20120308rillig1-2/+9
2020-05-09regress/buildlink-transform: clean up coderillig1-6/+3
2020-05-09regress/buildlink-transform: repair most of the regression testrillig1-1/+4
This test is for the old compiler wrapper. Using it with the cwrappers from 2014 makes several test cases fail.
2020-05-09regress/replace-interpreter: fix package installationrillig1-2/+2
2020-05-09regress/make-shell: add missing variable for the shell testrillig1-1/+2