Use the same algorithm for counting the number of words to sort as we
[make.git] / tests / ChangeLog
blob86c6789516a2e4de423a81de00c157d531fd7c0b
1 2011-05-02  Paul Smith  <psmith@gnu.org>
3         * scripts/functions/sort: Add a test for Savannah bug #33125.
5 2011-04-17  David A. Wheeler  <dwheeler@dwheeler.com>
7         * scripts/features/shell_assignment: Regression for "!=" feature
9 2010-11-06  Paul Smith  <psmith@gnu.org>
11         * scripts/features/targetvars: Fix known-good output for BS/NL changes.
12         * scripts/functions/call: Ditto.
13         * scripts/variables/special: Ditto.
15         * scripts/misc/bs-nl: New test suite for backslash/newline testing.
17 2010-08-29  Paul Smith  <psmith@gnu.org>
19         * scripts/features/errors: Add new error message to output text.
20         * scripts/variables/SHELL: Ditto.
21         * scripts/targets/POSIX: Ditto.
22         * scripts/options/dash-k: Ditto.
23         * scripts/features/vpathplus: Ditto.
24         * scripts/features/patternrules: Ditto.
25         * scripts/features/parallelism: Ditto.
27 2010-08-13  Paul Smith  <psmith@gnu.org>
29         * scripts/features/archives: New regression tests for archive
30         support.  Test for fix to Savannah bug #30612.
32         * run_make_tests.pl (set_more_defaults): Set a %FEATURES hash to
33         the features available in $(.FEATURES).
35 2010-08-10  Paul Smith  <psmith@gnu.org>
37         * scripts/features/reinvoke: Ensure command line variable settings
38         are preserved across make re-exec.  Tests Savannah bug #30723.
40 2010-07-28  Paul Smith  <psmith@gnu.org>
42         * scripts/targets/POSIX: Compatibility issues with Solaris (and
43         Tru64?); "false" returns different exit codes, and set -x shows
44         output with extra whitespace.  Run the commands by hand first to
45         find out what the real shell would do, then compare what make does.
46         * scripts/variables/SHELL: Ditto.
48 2010-07-12  Paul Smith  <psmith@gnu.org>
50         * test_driver.pl: Add a new $perl_name containing the path to Perl.
51         * run_make_tests.pl (run_make_test): Replace the special string
52         #PERL# in a makefile etc. with the path the Perl executable so
53         makefiles can use it.
55         * scripts/targets/ONESHELL: Add a new set of regression tests for
56         the .ONESHELL feature.
58 2010-07-06  Paul Smith  <psmith@gnu.org>
60         * scripts/variables/SHELL: Test the new .SHELLFLAGS variable.
62         * scripts/targets/POSIX: New file.  Test the .POSIX special target.
63         Verify that enabling .POSIX changes the shell flags to set -e.
65 2010-07-01  Paul Smith  <psmith@gnu.org>
67         * scripts/features/recursion: Add a space to separate command-line
68         args.  Fixes Savannah bug #29968.
70 2009-11-12  Boris Kolpackov  <boris@codesynthesis.com>
72         * scripts/features/vpath3: Test for the new library search
73         behavior.
75 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
77         * scripts/features/se_explicit: Enable the test for now fixed
78         Savannah bug 25780.
80 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
82         * scripts/variables/undefine: Tests for the new undefine feature.
84 2009-10-03  Paul Smith  <psmith@gnu.org>
86         * scripts/features/parallelism: Test for open Savannah bug #26846.
88         * scripts/variables/MAKE: Rewrite for new run_make_test() format.
90         * scripts/variables/MAKEFLAGS: Created.
91         Add test for Savannah bug #2216 (still open).
93         * scripts/features/include: Test for Savannah bug #102 (still open).
95 2009-09-30  Boris Kolpackov  <boris@codesynthesis.com>
97         * scripts/features/include: Add diagnostics issuing tests for
98         cases where targets have been updated and failed with the
99         dontcare flag. Savannah bugs #15110, #25493, #12686, #17740.
101 2009-09-28  Paul Smith  <psmith@gnu.org>
103         * scripts/functions/shell: Add regression test for Savannah bug
104         #20513 (still open).
106         * scripts/features/se_explicit: Add regression tests for Savannah
107         bug #25780 (still open).
109         * run_make_tests.pl (valid_option): Add a new flag, -all([-_]?tests)?
110         that runs tests we know will fail.  This allows us to add
111         regression tests to the test suite for bugs that haven't been
112         fixed yet.
114 2009-09-28  Boris Kolpackov  <boris@codesynthesis.com>
116         * scripts/features/patspecific_vars: Add a test for the shortest
117         stem first order.
119         * scripts/features/patternrules: Add a test for the shortest stem
120         first order.
122 2009-09-24  Paul Smith  <psmith@gnu.org>
124         * scripts/features/se_implicit: Add a test for order-only
125         secondary expansion prerequisites.
127 2009-09-23  Paul Smith  <psmith@gnu.org>
129         * scripts/features/patternrules: Test that we can remove pattern
130         rules, both single and multiple prerequisites.  Savannah bug #18622.
132         * scripts/features/echoing: Rework for run_make_test().
134 2009-06-14  Paul Smith  <psmith@gnu.org>
136         * scripts/features/vpath: Verify we don't get bogus circular
137         dependency warnings if we choose a different file via vpath during
138         update.  Savannah bug #13529.
140 2009-06-13  Paul Smith  <psmith@gnu.org>
142         * scripts/variables/MAKEFILES: Verify that MAKEFILES included
143         files (and files included by them) don't set the default goal.
144         Savannah bug #13401.
146         * scripts/functions/wildcard: Test that wildcards with
147         non-existent glob matchers return empty.
149 2009-06-09  Paul Smith  <psmith@gnu.org>
151         * scripts/options/dash-B: Test the $? works correctly with -B.
152         Savannah bug #17825.
154         * scripts/features/patternrules: Test that dependencies of
155         "also_make" targets are created properly.  Savannah bug #19108.
157         * test_driver.pl (compare_output): Create a "run" file for failed
158         tests containing the command that was run.
159         (get_runfile): New function.
161         * run_make_tests.pl (valid_option): Enhanced support for valgrind:
162         allow memcheck and massif tools.
164         * scripts/features/patternrules: Have to comment out a line in the
165         first test due to backing out a change that broke the implicit
166         rule search algorithm.  Savannah bug #17752.
167         * scripts/misc/general4: Remove a test that is redundant with
168         patternrules.
170         * scripts/features/parallelism: Add a test for re-exec with
171         jobserver master override.  Savannah bug #18124.
173 2009-06-08  Paul Smith  <psmith@gnu.org>
175         * scripts/features/targetvars: Add a test for continued target
176         vars after a semicolon.  Savannah bug #17521.
178 2009-06-07  Paul Smith  <psmith@gnu.org>
180         * scripts/features/se_explicit: Make sure we catch defining
181         prereqs during snap_deps().  Savannah bug #24622.
183         * scripts/variables/automatic: Check prereq ordering when the
184         target with the recipe has no prereqs.  Savannah bug #21198.
186         * scripts/variables/LIBPATTERNS: Add a new set of test for
187         $(.LIBPATTERNS) (previously untested!)
189 2009-06-04  Paul Smith  <psmith@gnu.org>
191         * scripts/variables/SHELL: The export target-specific SHELL test
192         has an incorrect known-good-value.
194         * scripts/misc/general4: Check for whitespace (ffeed, vtab, etc.)
196         * scripts/features/se_explicit: Add tests for Savannah bug #24588.
198 2009-05-31  Paul Smith  <psmith@gnu.org>
200         * scripts/variables/DEFAULT_GOAL: Add tests for Savannah bug #25697.
202         * scripts/features/targetvars: Add tests of overrides for Savannah
203         bug #26207.
204         * scripts/features/patspecific_vars: Ditto.
206         * scripts/features/patternrules: Add a test for Savannah bug #26593.
208 2009-05-30  Paul Smith  <psmith@gnu.org>
210         * scripts/variables/flavors: Update with new variable flavor tests.
211         * scripts/variables/define: Create a new set of tests for
212         define/endef and move those aspects of the flavors suite here.
214 2009-05-25  Paul Smith  <psmith@gnu.org>
216         * scripts/features/targetvars: Ditto.
218         * scripts/features/export: Test new variable parsing abilities.
220 2009-02-23  Ramon Garcia  <ramon.garcia.f@gmail.com>
222         * scripts/variables/private: Create a new suite of tests for 'private'.
224 2007-11-04  Paul Smith  <psmith@gnu.org>
226         * scripts/functions/eval: Update error message for command -> recipe.
228         * test_driver.pl (compare_output): Allow the answer to be a regex,
229         if surrounded by '/'.
230         * scripts/misc/close_stdout: Use a regex for the answer, since
231         sometimes the error will have a description and sometimes it won't.
233 2007-09-10  Paul Smith  <psmith@gnu.org>
235         * scripts/variables/special: Add tests for .RECIPEPREFIX variable.
237 2007-08-15  Paul Smith  <psmith@gnu.org>
239         These test cases were contributed by
240         Icarus Sparry <savannah@icarus.freeuk.com> and J. David Bryan for
241         Savannah bugs #3330 and #15919.
243         * scripts/targets/SECONDARY: Add tests for Savannah bugs 3330 and
244         15919.
246         * scripts/features/parallelism: Add tests for wrong answer/hang
247         combining INTERMEDIATE, order-only prereqs, and parallelism.
248         See Savannah bugs 3330 and 15919.
250 2007-07-13  Paul Smith  <psmith@gnu.org>
252         Install a timeout so tests can never loop infinitely.
253         Original idea and patch for a single-test version provided by
254         Icarus Sparry <savannah@icarus.freeuk.com>
256         * test_driver.pl (_run_command): New function: this is called by
257         other functions to actually run a command.  Before we run it,
258         install a SIGALRM handler and set up a timer to go off in the
259         future (default is 5s; this can be overridden by individual tests).
260         (run_command): Call it.
261         (run_command_with_output): Call it.
263         * run_make_tests.pl (run_make_with_options): Override the default
264         timeout if the caller requests it.
265         (run_make_test): Pass any timeout override to run_make_with_options.
267         * scripts/features/parallelism: Increase the timeout for long tests.
268         * scripts/options/dash-l: Ditto.
270 2006-10-01  Paul Smith  <psmith@paulandlesley.org>
272         * run_make_tests.pl (set_more_defaults): Remove setting of LANG in
273         ENV here.  This doesn't always work.
274         * test_driver.pl (toplevel): Set LC_ALL to 'C' in the make
275         environment.  Fixes Savannah bug #16698.
277 2006-09-30  Paul Smith  <psmith@paulandlesley.org>
279         * scripts/variables/automatic: Add back the test for bug #8154.
281 2006-04-01  Paul D. Smith  <psmith@gnu.org>
283         * scripts/functions/realpath: Don't run tests with multiple
284         initial slashes on Windows: those paths mean something different.
286 2006-03-19  Paul D. Smith  <psmith@gnu.org>
288         * scripts/features/parallelism: Test that the jobserver is
289         properly managed when we have to re-exec the master instance of
290         make.
292 2006-03-17  Boris Kolpackov  <boris@kolpackov.net>
294         * scripts/features/statipattrules: Add tests for bug #16053.
296 2006-03-09  Paul Smith  <psmith@gnu.org>
298         * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts
299         with DOS drive letters.  Fixes Savannah bug #15947.
301         * test_driver.pl (run_each_test): Set the status properly even
302         when a test fails to execute.  Fixes Savannah bug #15942.
304         * scripts/functions/foreach: Use a different environment variable
305         other than PATH to avoid differences with Windows platforms.
306         Fixes Savannah bug #15938.
308 2006-03-05  Paul D. Smith  <psmith@gnu.org>
310         * run_make_tests.pl (set_more_defaults): Add CYGWIN_NT as a port
311         type W32.  Fixed Savannah bug #15937.
313         * scripts/features/default_names: Don't call error() when the test
314         fails.  Fixes Savannah bug #15941.
316 2006-02-17  Paul D. Smith  <psmith@gnu.org>
318         * scripts/features/targetvars: Test a complex construction which
319         guarantees that we have to merge variable lists of different
320         sizes.  Tests for Savannah bug #15757.
322 2006-02-15  Paul D. Smith  <psmith@gnu.org>
324         * scripts/functions/error: Make sure filename/lineno information
325         is related to where the error is expanded, not where it's set.
326         * scripts/functions/warning: Ditto.
327         * scripts/functions/foreach: Check for different error conditions.
328         * scripts/functions/word: Ditto.
329         * scripts/variables/negative: Test some variable reference failure
330         conditions.
331         * scripts/options/warn-undefined-variables: Test the
332         --warn-undefined-variables flag.
334 2006-02-09  Paul D. Smith  <psmith@gnu.org>
336         * run_make_tests.pl (set_more_defaults): Update valgrind support
337         for newer versions.
338         * test_driver.pl (toplevel): Skip all hidden files/directories (ones
339         beginning with ".").
341         * scripts/functions/andor: Tests for $(and ..) and $(or ...)
342         functions.
344 2006-02-08  Boris Kolpackov  <boris@kolpackov.net>
346         * scripts/features/parallelism: Add a test for bug #15641.
348 2006-02-06  Paul D. Smith  <psmith@gnu.org>
350         * scripts/options/dash-W: Add a test for bug #15341.
352 2006-01-03  Paul D. Smith  <psmith@gnu.org>
354         * scripts/variables/automatic: Add a test for bug #8154.
356         * README: Update to reflect the current state of the test suite.
358 2005-12-12  Paul D. Smith  <psmith@gnu.org>
360         * scripts/features/parallelism, scripts/functions/wildcard,
361         scripts/targets/FORCE, scripts/targets/PHONY,
362         scripts/targets/SILENT: Use the default setting for
363         $delete_command.  Fixes bug #15085.
365         * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file.
367 2005-12-11  Paul D. Smith  <psmith@gnu.org>
369         * scripts/misc/general4: Test implicit rules with '$' in the
370         prereq list & prereq patterns.
371         * scripts/features/se_implicit: Add in .SECONDEXPANSION settings.
373 2005-12-09  Boris Kolpackov  <boris@kolpackov.net>
375         * scripts/features/patternrules: Add a test for bug #13022.
377 2005-12-07  Boris Kolpackov  <boris@kolpackov.net>
379         * scripts/features/double_colon: Add a test for bug #14334.
381 2005-11-17  Boris Kolpackov  <boris@kolpackov.net>
383         * scripts/functions/flavor: Add a test for the flavor function.
385 2005-11-14  Boris Kolpackov  <boris@kolpackov.net>
387         * scripts/variables/INCLUDE_DIRS: Add a test for the .INCLUDE_DIRS
388         special variable.
390 2005-10-24  Paul D. Smith  <psmith@gnu.org>
392         * scripts/misc/general4: Test '$$' in prerequisites list.
393         * scripts/features/statipattrules: Rewrite to use run_make_test().
394         Add various static pattern info.
395         * scripts/features/se_statpat: Enable .SECONDEXPANSION target.
396         * scripts/features/se_explicit: Add tests for handling '$$' in
397         prerequisite lists with and without setting .SECONDEXPANSION.
398         * scripts/features/order_only: Convert to run_make_test().
399         * run_make_tests.pl (set_more_defaults): If we can't get the value
400         of $(MAKE) from make, then fatal immediately.
402 2005-08-31  Paul D. Smith  <psmith@gnu.org>
404         * run_make_tests.pl (get_this_pwd): Require the POSIX module (in
405         an eval to trap errors) and if it exists, use POSIX::getcwd to
406         find the working directory.  If it doesn't exist, go back to the
407         previous methods.  This tries to be more accurate on Windows
408         systems.
410 2005-08-29  Paul D. Smith  <psmith@gnu.org>
412         * scripts/functions/abspath: Add some text to the error messages
413         to get a better idea of what's wrong.  Make warnings instead of
414         errors.
416         * scripts/features/patspecific_vars: Don't use "test", which is
417         UNIX specific.  Print the values and let the test script match
418         them.
420 2005-08-25  Paul Smith  <psmith@gnu.org>
422         * scripts/variables/SHELL: Use a /./ prefix instead of //: the
423         former works better with non-UNIX environments.  Fixes Savannah
424         bug #14129.
426 2005-08-13  Boris Kolpackov  <boris@kolpackov.net>
428         * scripts/functions/wildcard: Wrap calls to $(wildcard ) with
429         $(sort) so that the resulting order is no longer filesystem-
430         dependant.
432 2005-08-10  Boris Kolpackov  <boris@kolpackov.net>
434         * scripts/features/statipattrules: Add a test for Savannah bug #13881.
436 2005-08-07  Paul D. Smith  <psmith@gnu.org>
438         * scripts/features/parallelism: Add a test for a bug reported by
439         Michael Matz (matz@suse.de) in which make exits without waiting
440         for all its children in some situations during parallel builds.
442 2005-07-08  Paul D. Smith  <psmith@gnu.org>
444         * test_driver.pl: Reset the environment to a clean value every
445         time before we invoke make.  I'm suspicious that the environment
446         isn't handled the same way in Windows as it is in UNIX, and some
447         variables are leaking out beyond the tests they are intended for.
448         Create an %extraENV hash tests can set to add more env. vars.
449         * tests/scripts/features/export: Change to use %extraENV.
450         * tests/scripts/functions/eval: Ditto.
451         * tests/scripts/functions/origin: Ditto.
452         * tests/scripts/options/dash-e: Ditto.
453         * tests/scripts/variables/SHELL: Ditto.
455 2005-06-27  Paul D. Smith  <psmith@gnu.org>
457         * scripts/options/dash-W: Use 'echo >>' instead of touch to update
458         files.
459         * scripts/features/reinvoke: Rewrite to be safer on systems with
460         subsecond timestamps.
461         * scripts/features/patternrules: False exits with different error
462         codes on different systems (for example, Linux => 1, Solaris => 255).
464         * scripts/options/dash-W: Set the timestamp to foo.x in the future,
465         to be sure it will be considered updated when it's remade.
467 2005-06-26  Paul D. Smith  <psmith@gnu.org>
469         * scripts/functions/shell: New test suite for the shell function.
471 2005-06-25  Paul D. Smith  <psmith@gnu.org>
473         * scripts/features/include: Test include/-include/sinclude with no
474         arguments.  Tests fix for Savannah bug #1761.
476         * scripts/misc/general3: Implement comprehensive testing of
477         backslash-newline behavior in command scripts: various types of
478         quoting, fast path / slow path, etc.
479         Tests fix for Savannah bug #1332.
481         * scripts/options/symlinks: Test symlinks to non-existent files.
482         Tests fix for Savannah bug #13280.
484         * scripts/misc/general3: Test semicolons in variable references.
485         Tests fix for Savannah bug #1454.
487         * scripts/variables/MAKE_RESTARTS: New file: test the
488         MAKE_RESTARTS variable.
489         * scripts/options/dash-B: Test re-exec doesn't loop infinitely.
490         Tests fix for Savannah bug #7566.
491         * scripts/options/dash-W: New file: test the -W flag, including
492         re-exec infinite looping.
494 2005-06-12  Paul D. Smith  <psmith@gnu.org>
496         * scripts/misc/close_stdout: Add a test for Savannah bug #1328.
497         This test only works on systems that have /dev/full (e.g., Linux).
499 2005-06-09  Paul D. Smith  <psmith@gnu.org>
501         * scripts/functions/foreach: Add a test for Savannah bug #11913.
503 2005-05-31  Boris Kolpackov  <boris@kolpackov.net>
505         * scripts/features/include: Add a test for Savannah bug #13216.
506         * scripts/features/patternrules: Add a test for Savannah bug #13218.
508 2005-05-13  Paul D. Smith  <psmith@gnu.org>
510         * scripts/features/conditionals: Add tests for the new if... else
511         if... endif syntax.
513 2005-05-03  Paul D. Smith  <psmith@gnu.org>
515         * scripts/variables/DEFAULT_GOAL: Rename DEFAULT_TARGET to
516         DEFAULT_GOAL.
518 2005-05-02  Paul D. Smith  <psmith@gnu.org>
520         * scripts/features/parallelism: Add a test for exporting recursive
521         variables containing $(shell ) calls.  Rewrite this script to use
522         run_make_test() everywhere.
524 2005-04-07  Paul D. Smith  <psmith@gnu.org>
526         * scripts/targets/SECONDARY: Add a test for Savannah bug #12331.
528 2005-03-15  Boris Kolpackov  <boris@kolpackov.net>
530         * scripts/variables/automatic: Add a test for Savannah bug #12320.
532 2005-03-10  Boris Kolpackov  <boris@kolpackov.net>
534         * scripts/features/patternrules: Add a test for Savannah bug #12267.
536 2005-03-09  Boris Kolpackov  <boris@kolpackov.net>
538         * scripts/variables/DEFAULT_TARGET: Add a test for Savannah
539         bug #12266.
541 2005-03-04  Boris Kolpackov  <boris@kolpackov.net>
543         * scripts/features/patternrules: Add a test for Savannah bug #12202.
545 2005-03-03  Boris Kolpackov  <boris@kolpackov.net>
547         * scripts/features/se_implicit: Add a test for stem
548         termination bug. Add a test for stem triple-expansion bug.
550         * scripts/features/se_statpat: Add a test for stem
551         triple-expansion bug.
553         * scripts/features/statipattrules: Change test #4 to reflect
554         new way empty prerequisite list is handled.
557 2005-03-01  Boris Kolpackov  <boris@kolpackov.net>
559         * scripts/features/statipattrules: Add a test for
560         Savannah bug #12180.
562 2005-02-28  Paul D. Smith  <psmith@gnu.org>
564         * scripts/options/dash-q: Add a test for Savannah bug # 7144.
566         * scripts/options/symlinks: New file to test checking of symlink
567         timestamps.  Can't use filename dash-L because it conflicts with
568         dash-l on case-insensitive filesystems.
570         * scripts/variables/MAKEFILE_LIST, scripts/variables/MFILE_LIST:
571         Rename MAKEFILE_LIST test to MFILE_LIST, for systems that need 8.3
572         unique filenames.
574 2005-02-28  Boris Kolpackov  <boris@kolpackov.net>
576         * scripts/variables/DEFAULT_TARGET: Test the .DEFAULT_TARGET
577         special variable.
579 2005-02-27  Boris Kolpackov  <boris@kolpackov.net>
581         * scripts/features/se_explicit: Test the second expansion in
582         explicit rules.
583         * scripts/features/se_implicit: Test the second expansion in
584         implicit rules.
585         * scripts/features/se_statpat: Test the second expansion in
586         static pattern rules.
587         * scripts/variables/automatic: Fix to work with the second
588         expansion.
590         * scripts/misc/general4: Add a test for bug #12091.
592 2005-02-27  Paul D. Smith  <psmith@gnu.org>
594         * scripts/functions/eval: Check that eval of targets within
595         command scripts fails.  See Savannah bug # 12124.
597 2005-02-26  Paul D. Smith  <psmith@gnu.org>
599         * test_driver.pl (compare_output): If a basic comparison of the
600         log and answer doesn't match, try harder: change all backslashes
601         to slashes and all CRLF to LF.  This helps on DOS/Windows systems.
603 2005-02-09  Paul D. Smith  <psmith@gnu.org>
605         * scripts/features/recursion: Test command line variable settings:
606         only one instance of a given variable should be provided.
608 2004-11-30  Boris Kolpackov  <boris@kolpackov.net>
610         * tests/scripts/functions/abspath: New file: test `abspath'
611         built-in function.
613         * tests/scripts/functions/realpath: New file: test `realpath'
614         built-in function.
616 2004-11-28  Paul D. Smith  <psmith@gnu.org>
618         * scripts/options/dash-C [WINDOWS32]: Add a test for bug #10252;
619         this doesn't really test anything useful in UNIX but...
621         * scripts/variables/SHELL: New file: test proper handling of SHELL
622         according to POSIX rules.  Fixes bug #1276.
624 2004-10-21  Boris Kolpackov  <boris@kolpackov.net>
626         * scripts/functions/word: Test $(firstword ) and $(lastword ).
628 2004-10-05  Boris Kolpackov  <boris@kolpackov.net>
630         * scripts/features/patspecific_vars: Test simple/recursive
631         variable expansion.
633 2004-09-28  Boris Kolpackov  <boris@kolpackov.net>
635         * scripts/features/include: Test dontcare flag inheritance
636         when rebuilding makefiles.
638 2004-09-27  Boris Kolpackov  <boris@kolpackov.net>
640         * scripts/features/patspecific_vars: Test exported variables.
642 2004-09-22  Paul D. Smith  <psmith@gnu.org>
644         * run_make_tests.pl (run_make_test): Don't add newlines to the
645         makestring or answer if they are completely empty.
647         * scripts/features/patternrules: Rename from implicit_prereq_eval.
649         * scripts/test_template: Rework the template.
651 2004-09-21  Boris Kolpackov  <boris@kolpackov.net>
653         * run_make_tests.pl: Change `#!/usr/local/bin/perl' to be
654         `#!/usr/bin/env perl'.
656         * scripts/features/implicit_prereq_eval: Test implicit rule
657         prerequisite evaluation code.
659 2004-09-21  Paul D. Smith  <psmith@gnu.org>
661         * run_make_tests.pl (run_make_test): Enhance to allow the make
662         string to be undef: in that case it reuses the previous make
663         string.  Allows multiple tests on the same makefile.
665         * scripts/variables/flavors: Add some tests for prefix characters
666         interacting with define/endef variables.
668 2004-09-20  Paul D. Smith  <psmith@gnu.org>
670         * scripts/functions/substitution: Rewrite to use run_make_test()
671         interface, and add test for substitution failures reported by
672         Markus Mauhart <qwe123@chello.at>.
674 2004-03-22  Paul D. Smith  <psmith@gnu.org>
676         * test_driver.pl (run_each_test, toplevel, compare_output): Change
677         to track both the testing categories _AND_ the number of
678         individual tests, and report both sets of numbers.
680 2004-02-21  Paul D. Smith  <psmith@gnu.org>
682         * scripts/functions/origin: Set our own environment variable
683         rather than relying on $HOME.
685 2004-01-21  Paul D. Smith  <psmith@gnu.org>
687         * scripts/features/conditionals: Test arguments to ifn?def which
688         contain whitespace (such as a function that is evaluated).  Bug
689         #7257.
691 2004-01-07  Paul D. Smith  <psmith@gnu.org>
693         * scripts/features/order_only: Test order-only prerequisites in
694         pattern rules (patch #2349).
696 2003-11-02  Paul D. Smith  <psmith@gnu.org>
698         * scripts/functions/if: Test if on conditionals with trailing
699         whitespace--bug #5798.
701         * scripts/functions/eval: Test eval in a non-file context--bug #6195.
703 2003-04-19  Paul D. Smith  <psmith@gnu.org>
705         * scripts/features/patspecific_vars: Test multiple patterns
706         matching the same target--Bug #1405.
708 2003-04-09  Paul D. Smith  <psmith@gnu.org>
710         * run_make_tests.pl (set_more_defaults): A new $port_type of
711         'OS/2' for (surprise!) OS/2.  Also choose a wait time of 2 seconds
712         for OS/2.
714 2003-03-28  Paul D. Smith  <psmith@gnu.org>
716         * scripts/targets/SECONDARY: Test the "global" .SECONDARY (with
717         not prerequisites)--Bug #2515.
719 2003-01-30  Paul D. Smith  <psmith@gnu.org>
721         * scripts/features/targetvars: Test very long target-specific
722         variable definition lines (longer than the default make buffer
723         length).  Tests patch # 1022.
725         * scripts/functions/eval: Test very recursive $(eval ...) calls
726         with simple variable expansion (bug #2238).
728         * scripts/functions/word: Test error handling for word and
729         wordlist functions (bug #2407).
731 2003-01-22  Paul D. Smith  <psmith@gnu.org>
733         * scripts/functions/call: Test recursive argument masking (bug
734         #1744).
736 2002-10-25  Paul D. Smith  <psmith@gnu.org>
738         * scripts/functions/eval: Test using $(eval ...) inside
739         conditionals (Bug #1516).
741 2002-10-14  Paul D. Smith  <psmith@gnu.org>
743         * scripts/options/dash-t: Add a test for handling -t on targets
744         with no commands (Bug #1418).
746 2002-10-13  Paul D. Smith  <psmith@gnu.org>
748         * scripts/features/targetvars: Add a test for exporting
749         target-specific vars (Bug #1391).
751 2002-10-05  Paul D. Smith  <psmith@gnu.org>
753         * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D},
754         and $${@F}.
756 2002-09-23  Paul D. Smith  <psmith@gnu.org>
758         * scripts/features/escape: Test handling of escaped comment
759         characters in targets and prerequisites.
761 2002-09-18  Paul D. Smith  <psmith@gnu.org>
763         * scripts/features/export: Test export/unexport of multiple
764         variables in a single command.
766 2002-09-17  Paul D. Smith  <psmith@gnu.org>
768         * scripts/features/targetvars: Tests for Bug #940: test
769         target-specific and pattern-specific variables in conjunction with
770         double-colon targets.
772 2002-09-10  Paul D. Smith  <psmith@gnu.org>
774         * test_driver.pl (compare_output): Match the new format for time
775         skew error messages.
777         * scripts/features/export: Created.  Add tests for export/unexport
778         capabilities, including exporting/unexporting expanded variables.
780         * scripts/features/conditionals: Add a test for expanded variables
781         in ifdef conditionals.
783 2002-09-04  Paul D. Smith  <psmith@gnu.org>
785         * scripts/features/reinvoke: Change touch/sleep combos to utouch
786         invocations.
787         * scripts/features/vpathgpath: Ditto.
788         * scripts/features/vpathplus: Ditto.
789         * scripts/options/dash-n: Ditto.
790         * scripts/targets/INTERMEDIATE: Ditto.
791         * scripts/targets/SECONDARY: Ditto.
793         * scripts/options/dash-t: Added a test for the -t bug fixed by
794         Henning Makholm.  This test was also contributed by Henning.
796         * scripts/misc/general4: Add a test suite for obscure algorithmic
797         features of make.  First test: make sure creation subdirectories
798         as prerequisites of targets works properly.
800         * scripts/misc/version: Remove this bogus test.
802 2002-08-07  Paul D. Smith  <psmith@gnu.org>
804         * scripts/misc/general3: Add a test for makefiles that don't end
805         in newlines.
807         * scripts/variables/special: Create tests for the special
808         variables (.VARIABLES and .TARGETS).  Comment out .TARGETS test
809         for now as it's not yet supported.
811 2002-08-01  Paul D. Smith  <psmith@gnu.org>
813         * scripts/options/dash-B: Add a test for the new -B option.
815 2002-07-11  Paul D. Smith  <psmith@gnu.org>
817         * run_make_tests.pl (valid_option): Add support for Valgrind.  Use
818         -valgrind option to the test suite.
819         (set_more_defaults): Set up the file descriptor to capture
820         Valgrind output.  We have to unset its close-on-exec flag; we
821         hardcode the value for F_SETFD (2) rather than load it; hopefully
822         this will help us avoid breaking the Windows/DOS test suite.
824 2002-07-10  Paul D. Smith  <psmith@gnu.org>
826         * scripts/variables/automatic: Add some tests for $$@, $$(@D), and
827         $$(@F).
829         * test_driver.pl (utouch): Create a new function that creates a
830         file with a specific timestamp offset.  Use of this function will
831         let us avoid lots of annoying sleep() invocations in the tests
832         just to get proper timestamping, which will make the tests run a
833         lot faster.  So far it's only used in the automatic test suite.
835 2002-07-09  Paul D. Smith  <psmith@gnu.org>
837         * scripts/variables/automatic: Create a test for automatic variables.
839 2002-07-08  Paul D. Smith  <psmith@gnu.org>
841         * scripts/features/order_only: Test new order-only prerequisites.
843 2002-07-07  Paul D. Smith  <psmith@gnu.org>
845         * scripts/functions/eval: Test new function.
846         * scripts/functions/value: Test new function.
847         * scripts/variables/MAKEFILE_LIST: Test new variable.
849 2002-04-28  Paul D. Smith  <psmith@gnu.org>
851         * scripts/functions/call: New test: transitive closure
852         implementation using $(call ...) to test variable recursion.
854 2002-04-21  Paul D. Smith  <psmith@gnu.org>
856         * test_driver.pl (compare_dir_tree): Ignore CVS and RCS
857         directories in the script directories.
859 2001-05-02  Paul D. Smith  <psmith@gnu.org>
861         * scripts/variables/flavors: Test define/endef scripts where only
862         one of the command lines is quiet.
864 2000-06-22  Paul D. Smith  <psmith@gnu.org>
866         * scripts/options/dash-q: New file; test the -q option.  Includes
867         a test for PR/1780.
869 2000-06-21  Paul D. Smith  <psmith@gnu.org>
871         * scripts/features/targetvars: Added a test for PR/1709: allowing
872         semicolons in target-specific variable values.
874 2000-06-19  Paul D. Smith  <psmith@gnu.org>
876         * scripts/functions/addsuffix: Test for an empty final argument.
877         Actually this bug might have happened for any function, but this
878         one was handy.
880 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
882         * scripts/options/general: If parallel jobs are not supported,
883         expect a warning message from Make.
885 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
887         * scripts/options/general: Don't try -jN with N != 1 if parallel
888         jobs are not supported.
890 2000-05-24  Paul D. Smith  <psmith@gnu.org>
892         * scripts/options/general: Test general option processing (PR/1716).
894 2000-04-11  Paul D. Smith  <psmith@gnu.org>
896         * scripts/functions/strip: Test empty value to strip (PR/1689).
898 2000-04-08  Eli Zaretskii  <eliz@is.elta.co.il>
900         * scripts/features/reinvoke: Sleep before updating the target
901         files in the first test, to ensure its time stamp really gets
902         newer; otherwise Make might re-exec more than once.
904 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
906         * scripts/features/double_colon: Don't run the parallel tests if
907         parallel jobs aren't supported.
909 2000-04-04  Paul D. Smith  <psmith@gnu.org>
911         * scripts/functions/word: wordlist doesn't swap arguments anymore.
913 2000-03-27  Paul D. Smith  <psmith@gnu.org>
915         * scripts/features/statipattrules: Test that static pattern rules
916         whose prerequisite patterns resolve to empty strings throw an
917         error (instead of dumping core).  Fixes PR/1670.
919         * scripts/features/reinvoke: Make more robust by touching "b"
920         first, to ensure it's not newer than "a".
921         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
922         * scripts/options/dash-n: Ditto.
924         * scripts/functions/call: Whoops.  The fix to PR/1527 caused
925         recursive invocations of $(call ...) to break.  I can't come up
926         with any way to get both working at the same time, so I backed out
927         the fix to 1527 and added a test case for recursive calls.  This
928         also tests the fix for PR/1610.
930         * scripts/features/double_colon: Test that circular dependencies
931         in double-colon rule sets are detected correctly (PR/1671).
933 2000-03-26  Paul D. Smith  <psmith@gnu.org>
935         * scripts/targets/INTERMEDIATE: Test that make doesn't remove
936         .INTERMEDIATE files when given on the command line (PR/1669).
938 2000-03-08  Paul D. Smith  <psmith@gnu.org>
940         * scripts/options/dash-k: Add a test for error detection by
941         multiple targets depending on the same prerequisite with -k.
942         For PR/1634.
944 2000-02-07  Paul D. Smith  <psmith@gnu.org>
946         * scripts/features/escape: Add a test for backslash-escaped spaces
947         in a target name (PR/1586).
949 2000-02-04  Paul D. Smith  <psmith@gnu.org>
951         * scripts/features/patspecific_vars: Add a test for pattern-specific
952         target variables inherited from the parent target (PR/1407).
954 2000-02-02  Paul D. Smith  <psmith@gnu.org>
956         * run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
957         to make sure sorting order, etc. is predictable.
958         Reported by Andreas Jaeger <aj@suse.de>.
960         * run_make_tests.pl (set_more_defaults): Set the $wtime variable
961         depending on the OS.  Eli Zaretskii <eliz@is.elta.co.il> reports
962         this seems to need to be *4* on DOS/Windows, not just 2.  Keep it
963         1 for other systems.
964         * scripts/features/vpathplus (touchfiles): Use the $wtime value
965         instead of hardcoding 2.
966         * scripts/targets/SECONDARY: Ditto.
967         * scripts/targets/INTERMEDIATE: Ditto.
969 2000-01-27  Paul D. Smith  <psmith@gnu.org>
971         * test_driver.pl (toplevel): Don't try to run test scripts which
972         are really directories.
974 2000-01-23  Paul D. Smith  <psmith@gnu.org>
976         * scripts/features/include: Remove a check; the fix caused more
977         problems than the error, so I removed it and removed the test for
978         it.
980 2000-01-11  Paul D. Smith  <psmith@gnu.org>
982         * scripts/functions/call: Add a test for PR/1517 and PR/1527: make
983         sure $(call ...) doesn't eval its arguments and that you can
984         invoke foreach from it without looping forever.
986 1999-12-15  Paul D. Smith  <psmith@gnu.org>
988         * scripts/targets/INTERMEDIATE: Add a test for PR/1423: make sure
989         .INTERMEDIATE settings on files don't disable them as implicit
990         intermediate possibilities.
992 1999-12-01  Paul D. Smith  <psmith@gnu.org>
994         * scripts/features/double_colon: Add a test for PR/1476: Try
995         double-colon rules as non-goal targets and during parallel builds
996         to make sure they're handled serially.
998 1999-11-17  Paul D. Smith  <psmith@gnu.org>
1000         * scripts/functions/if: Add a test for PR/1429: put some text
1001         after an if-statement to make sure it works.
1003         * scripts/features/targetvars: Add a test for PR/1380: handling +=
1004         in target-specific variable definitions correctly.
1006 1999-10-15  Paul D. Smith  <psmith@gnu.org>
1008         * scripts/variables/MAKEFILES: This was really broken: it didn't
1009         test anything at all, really.  Rewrote it, plus added a test for
1010         PR/1394.
1012 1999-10-13  Paul D. Smith  <psmith@gnu.org>
1014         * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't
1015         behave properly when used with recursive targets".
1017 1999-10-08  Paul D. Smith  <psmith@gnu.org>
1019         * scripts/features/targetvars: Add a check for PR/1378:
1020         "Target-specific vars don't inherit correctly"
1022 1999-09-29  Paul D. Smith  <psmith@gnu.org>
1024         * test_driver.pl (get_osname): Change $fancy_file_names to
1025         $short_filenames and reverse the logic.
1026         (run_each_test): Change test of non-existent $port_host to use
1027         $short_filenames--problem reported by Eli Zaretskii.
1029 1999-09-23  Paul D. Smith  <psmith@gnu.org>
1031         * scripts/features/parallelism: Add a check to ensure that the
1032         jobserver works when we re-invoke.  Also cleaned up the tests a
1033         little, reducing the number of rules we use so the test won't need
1034         as many "sleep" commands.
1036 1999-09-16  Paul D. Smith  <psmith@gnu.org>
1038         * scripts/features/reinvoke: Remove invocations of "touch" in
1039         makefiles.  See the comments on the touch function rewrite below.
1040         Note that UNIX touch behaves the same way if the file already
1041         exists: it sets the time to the _local_ time.  We don't want
1042         this.  This is probably a good tip for makefile writers in
1043         general, actually... where practical.
1044         * scripts/options/dash-l: Ditto.
1045         * scripts/options/dash-n: Ditto.
1047         * test_driver.pl (run_each_test): In retrospect, I don't like the
1048         .lN/.bN/.dN postfix required by DOS.  So, for non-DOS systems I
1049         changed it back to use .log, .base, and .diff.
1051         * run_make_tests.pl (set_more_defaults): Move the check for the
1052         make pathname to here from set_defaults (that's too early since it
1053         happens before the command line processing).
1054         Create a new variable $port_type, calculated from $osname, to
1055         specify what kind of system we're running on.  We should integrate
1056         the VOS stuff here, too.
1057         (valid_option): Comment out the workdir/-work stuff so people
1058         won't be fooled into thinking it works... someone needs to fix
1059         this, though!
1061         * scripts/functions/origin: Use $port_type instead of $osname.
1062         * scripts/functions/foreach: Ditto.
1063         * scripts/features/default_names: Ditto.
1065 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1067         * test_driver.pl (touch): Rewrite this function.  Previously it
1068         used to use utime() to hard-set the time based on the current
1069         local clock, or, if the file didn't exist, it merely created it.
1070         This mirrors exactly what real UNIX touch does, but it fails badly
1071         on networked filesystems where the FS server clock is skewed from
1072         the local clock: normally modifying a file causes it to get a mod
1073         time based on the _server's_ clock.  Hard-setting it based on the
1074         _local_ clock causes gratuitous errors and makes the tests
1075         unreliable except on local filesystems.  The new function will
1076         simply modify the file, allowing the filesystem to set the mod
1077         time as it sees fit.
1079         * scripts/features/parallelism: The second test output could
1080         change depending on how fast some scripts completed; use "sleep"
1081         to force the order we want.
1083         * test_driver.pl (toplevel): A bug in Perl 5.000 to Perl 5.004
1084         means that "%ENV = ();" doesn't do the right thing.  This worked
1085         in Perl 4 and was fixed in Perl 5.004_01, but use a loop to delete
1086         the environment rather than require specific versions.
1088         * run_make_tests.pl (set_more_defaults): Don't use Perl 5 s///
1089         modifier "s", so the tests will run with Perl 4.
1090         (set_more_defaults): Set $pure_log to empty if there's no -logfile
1091         option in PURIFYOPTIONS.
1092         (setup_for_test): Don't remove any logs unless $pure_log is set.
1094 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
1096         * scripts/features/reinvoke: Put the SHELL definition in the right
1097         test makefile.
1099 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1101         ChangeLog file for the test suite created.
1104 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
1105 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1106 This file is part of GNU Make.
1108 GNU Make is free software; you can redistribute it and/or modify it under the
1109 terms of the GNU General Public License as published by the Free Software
1110 Foundation; either version 3 of the License, or (at your option) any later
1111 version.
1113 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
1114 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
1115 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
1117 You should have received a copy of the GNU General Public License along with
1118 this program.  If not, see <http://www.gnu.org/licenses/>.