make/tests/scripts
Dmitry Goncharov 9e4b3d3f4c [SV 60435] Ensure intermediate grouped files are removed
If multiple intermediate files are built together be sure all of them
are removed after make is finished.  Continue to ensure that targets
that exist before make starts are not removed even if they appear to be
intermediate.

Add a number of tests to pattern rules to verify this behavior.

* src/filedef.h (struct file): Add a new is_explicit bitfield.
* src/file.c (rehash_file): Merge the is_explicit bit.
(enter_prereqs): Set is_explicit if the file is explicitly mentioned.
* src/implicit.c (pattern_search): Set intermediate on the file if it's
not explicit.
(record_files): Set is_explicit if a file is mentioned as a target.
* src/remake.c (update_file_1): Set secondary on files that already
exist so they won't be removed.
* tests/scripts/features/double_colon: Add a test for double-colon
pattern rules.
* tests/scripts/features/patternrules: Update KGO for tests where more
files are removed.
Add new tests to verify handling removal of intermediate files in the
context of grouped pattern targets.
2021-09-07 01:14:20 -04:00
..
features [SV 60435] Ensure intermediate grouped files are removed 2021-09-07 01:14:20 -04:00
functions Fix build and test issues on Windows 2021-03-28 16:25:52 -04:00
misc [SV 35711] Check for special targets earlier 2020-11-29 17:55:02 -05:00
options * src/main.c (decode_debug_flags): [SV 607777] Preserve -d options 2021-09-06 20:36:15 -04:00
targets [SV 60297] Add .NOTINTERMEDIATE special target 2021-07-25 17:15:38 -04:00
variables [SV 45211] Parse MAKEFLAGS immediately when it's reset 2021-09-05 21:08:59 -04:00
vms Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
test_template