| History log of /src/usr.bin/make/unit-tests/opt-query.mk |
| Revision | | Date | Author | Comments |
| 1.7 |
| 18-Aug-2022 |
rillig | tests/make: fix test for option '-q' in ATF mode
When running 'make test' in usr.bin/make, MAKE is set to '$PWD/make', and when that file is used as a dependency, everything works as expected.
When running the tests via ATF, MAKE is set to simply 'make', based on argv[0]. Using 'make' as a dependency searches in the current directory but not in /usr/bin, so the file is not found, which makes the "up-to-date" target out of date.
Switch the dependeny from ${MAKE} to ${MAKEFILE}, as that file does not involve any $PATH magic and is also guaranteed to be older than the 'up-to-date' file that is created while running the test.
|
| 1.6 |
| 17-Aug-2022 |
rillig | make: fix exit status for '-q' (since 1994)
|
| 1.5 |
| 17-Aug-2022 |
rillig | tests/make: demonstrate wrong exit status for '-q' (since 1994)
Reported by Jeroen Ruigrok van der Werven via private mail.
|
| 1.4 |
| 09-Nov-2020 |
rillig | make(1): in tests, move command line arguments into the test proper
|
| 1.3 |
| 19-Aug-2020 |
rillig | make(1): add test for the -q option
|
| 1.2 |
| 16-Aug-2020 |
rillig | make(1): describe the purpose of each newly added unit test dummy
|
| 1.1 |
| 16-Aug-2020 |
rillig | make(1): add dummies for fine-grained tests, one per single feature
The test names have been derived from the current manual page.
All these tests are dummies right now, and the code from the existing tests will be moved into the new tests step by step.
This is done to prevent modmisc, escape, varmod-edge and varmisc from growing without any bounds, and to reduce the side-effects of one test to the others.
|