| History log of /src/usr.bin/make/unit-tests/archive.exp |
| Revision | | Date | Author | Comments |
| 1.12 |
| 12-Jun-2025 |
rillig | make: add program name to stack traces from sub-makes
|
| 1.11 |
| 12-Jun-2025 |
rillig | make: add quotes to "in directory" line in stack traces
The other lines in stack traces use quotes as well.
|
| 1.10 |
| 30-Mar-2025 |
rillig | make: use '"filename" line 123' for locations instead of 'filename:123'
The format 'filename:123' is commonly used for identifying a location in a file. Text editors recognize it and allow quick navigation through it. The previous format was specific to make and would have required custom support in editors.
The new format was already used in stack traces, except for the first line. Now all lines use the same format.
|
| 1.9 |
| 10-Jan-2025 |
rillig | tests/make: test expressions based on undefined variables
When an undefined variable is used in a conditional, make complains about "Malformed conditional", which is wrong since the conditional is well-formed but errors out during evaluation.
In order to fix this wrong error message and preserve the remaining behavior, cover the places in which an expression is evaluated with undefined expressions being an error (VARE_EVAL_DEFINED), but with neither producing an error message nor handling errors. This combination results in the same behavior as evaluating the expressions in the mode that allows undefined variables to be used in expressions.
|
| 1.8 |
| 27-Apr-2024 |
rillig | tests/make: test detection of static library files
|
| 1.7 |
| 09-Oct-2020 |
rillig | make(1): use consistent order in .OODATE in test archive.mk
|
| 1.6 |
| 08-Oct-2020 |
rillig | make(1): make individual targets in test archive.mk visible
This test still fails on FreeBSD, printing the "ar cru, ranlib" lines twice, and I don't know why.
To get more insights into the inner details, without activating the full -dA logging, split the output into paragraphs, one per target.
This change reveals another interesting detail: Dependencies without any commands (in this case create-archive) don't inherit the commands from .USEBEFORE and .USE sources.
|
| 1.5 |
| 04-Sep-2020 |
rillig | make(1): fix expected file for archive test
This test is currently disabled, therefore it didn't fail immediately.
|
| 1.4 |
| 23-Aug-2020 |
rillig | make(1): in archive test, use wildcard that matches more than 1 file
This is to make sure that the buffer used for "archive(member)" is properly reset after each member.
|
| 1.3 |
| 23-Aug-2020 |
rillig | make(1): add test for wildcards in archive dependency
|
| 1.2 |
| 16-Aug-2020 |
rillig | make(1): fix archive test
At the beginning of that test, the library archive obviously does not exist yet.
This test failure is a bit hard to detect since the test is disabled in usr.bin/make, but not in tests/usr.bin/make. This is because the latter just runs all .mk files as tests, no matter whether they are commented out or not.
|
| 1.1 |
| 27-Jul-2020 |
rillig | make(1): add very basic test for archive handling
The whole code in arch.c had been uncovered by tests before.
The code coverage shows that neither the archive name nor the member contain any $, even though archive.mk looks like it. It could be necessary to place the variable assignments below the dependency line, to force late evaluation.
|