make/tests/scripts/options
Paul Smith 8e024a2532 Obey order of multiple print/no-print directory options
Previously if --no-print-directory was seen anywhere even once
(environment, command line, etc.) it would always take precedence
over any --print-directory option.  Change this so that the last
seen option (which will be the command line, if present there) takes
precedence.

* NEWS: Mark this change in behavior.
* src/makeint.h (print_directory): A new variable to control printing.
* src/output.c (output_dump): Use the new variable.
(output_start): Ditto.
* src/main.c: Add a new variable print_directory.  Use -1 for
print_directory_flag so we know of the option was seen or not.  Add a
new default_print_directory_flag set to -1 to keep options from being
added.
(switches): Use flag_off for --no-print-directory, rather than a
separate inhibit_print_directory_flag.
(main): If print_directory_flag was set by the user, use that for
print_directory.  If not, compute the print_directory value based on
-s, -C, and sub-makes as before.
* tests/scripts/variables/GNUMAKEFLAGS: -w is not added automatically
* tests/scripts/options/print-directory: Add tests for overriding
print-directory options.
2020-03-31 00:17:49 -04:00
..
dash-B [SV 102] Don't show unnecessary include file errors. 2016-04-09 20:06:46 -04:00
dash-C Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
dash-e Various minor updates and code cleanups. 2005-07-12 04:35:13 +00:00
dash-f * Added the test suite to the main distribution. 1999-09-14 02:03:19 +00:00
dash-I Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
dash-k * job.c (child_error): Modify error message string. 2019-09-22 17:02:57 -04:00
dash-l Add test suite support to Windows 2017-06-04 18:37:20 -04:00
dash-n * tests/run_make_test.pl: Fix support for valgrind. 2019-09-21 15:13:24 -04:00
dash-q [SV 47151] Exit with 1 when checking recursive make -q 2016-02-29 01:33:50 -05:00
dash-s * main.c (switches): Add --no-silent to undo -s options. 2016-12-28 09:25:34 -05:00
dash-t Commit fix for bug #1418. 2003-03-25 00:15:25 +00:00
dash-W [SV 102] Don't show unnecessary include file errors. 2016-04-09 20:06:46 -04:00
eval Add test suite support to Windows 2017-06-04 18:37:20 -04:00
general Add test suite support to Windows 2017-06-04 18:37:20 -04:00
print-directory Obey order of multiple print/no-print directory options 2020-03-31 00:17:49 -04:00
symlinks * tests: Convert from File::Spec::Functions to File::Spec. 2019-09-21 16:37:56 -04:00
warn-undefined-variables Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines. 2012-03-04 00:24:20 +00:00