- Fix broken handling of order-only prereqs in secondary expansion
[make.git] / tests / ChangeLog
blobc56e09a6984d0df3b5f6baecc5c52fca99dfcfaf
1 2009-09-24  Paul Smith  <psmith@gnu.org>
3         * scripts/features/se_implicit: Add a test for order-only
4         secondary expansion prerequisites.
6 2009-09-23  Paul Smith  <psmith@gnu.org>
8         * scripts/features/patternrules: Test that we can remove pattern
9         rules, both single and multiple prerequisites.  Savannah bug #18622.
11         * scripts/features/echoing: Rework for run_make_test().
13 2009-06-14  Paul Smith  <psmith@gnu.org>
15         * scripts/features/vpath: Verify we don't get bogus circular
16         dependency warnings if we choose a different file via vpath during
17         update.  Savannah bug #13529.
19 2009-06-13  Paul Smith  <psmith@gnu.org>
21         * scripts/variables/MAKEFILES: Verify that MAKEFILES included
22         files (and files included by them) don't set the default goal.
23         Savannah bug #13401.
25         * scripts/functions/wildcard: Test that wildcards with
26         non-existent glob matchers return empty.
28 2009-06-09  Paul Smith  <psmith@gnu.org>
30         * scripts/options/dash-B: Test the $? works correctly with -B.
31         Savannah bug #17825.
33         * scripts/features/patternrules: Test that dependencies of
34         "also_make" targets are created properly.  Savannah bug #19108.
36         * test_driver.pl (compare_output): Create a "run" file for failed
37         tests containing the command that was run.
38         (get_runfile): New function.
40         * run_make_tests.pl (valid_option): Enhanced support for valgrind:
41         allow memcheck and massif tools.
43         * scripts/features/patternrules: Have to comment out a line in the
44         first test due to backing out a change that broke the implicit
45         rule search algorithm.  Savannah bug #17752.
46         * scripts/misc/general4: Remove a test that is redundant with
47         patternrules.
49         * scripts/features/parallelism: Add a test for re-exec with
50         jobserver master override.  Savannah bug #18124.
52 2009-06-08  Paul Smith  <psmith@gnu.org>
54         * scripts/features/targetvars: Add a test for continued target
55         vars after a semicolon.  Savannah bug #17521.
57 2009-06-07  Paul Smith  <psmith@gnu.org>
59         * scripts/features/se_explicit: Make sure we catch defining
60         prereqs during snap_deps().  Savannah bug #24622.
62         * scripts/variables/automatic: Check prereq ordering when the
63         target with the recipe has no prereqs.  Savannah bug #21198.
65         * scripts/variables/LIBPATTERNS: Add a new set of test for
66         $(.LIBPATTERNS) (previously untested!)
68 2009-06-04  Paul Smith  <psmith@gnu.org>
70         * scripts/variables/SHELL: The export target-specific SHELL test
71         has an incorrect known-good-value.
73         * scripts/misc/general4: Check for whitespace (ffeed, vtab, etc.)
75         * scripts/features/se_explicit: Add tests for Savannah bug #24588.
77 2009-05-31  Paul Smith  <psmith@gnu.org>
79         * scripts/variables/DEFAULT_GOAL: Add tests for Savannah bug #25697.
81         * scripts/features/targetvars: Add tests of overrides for Savannah
82         bug #26207.
83         * scripts/features/patspecific_vars: Ditto.
85         * scripts/features/patternrules: Add a test for Savannah bug #26593.
87 2009-05-30  Paul Smith  <psmith@gnu.org>
89         * scripts/variables/flavors: Update with new variable flavor tests.
90         * scripts/variables/define: Create a new set of tests for
91         define/endef and move those aspects of the flavors suite here.
93 2009-05-25  Paul Smith  <psmith@gnu.org>
95         * scripts/features/targetvars: Ditto.
97         * scripts/features/export: Test new variable parsing abilities.
99 2009-02-23  Ramon Garcia  <ramon.garcia.f@gmail.com>
101         * scripts/variables/private: Create a new suite of tests for 'private'.
103 2007-11-04  Paul Smith  <psmith@gnu.org>
105         * scripts/functions/eval: Update error message for command -> recipe.
107         * test_driver.pl (compare_output): Allow the answer to be a regex,
108         if surrounded by '/'.
109         * scripts/misc/close_stdout: Use a regex for the answer, since
110         sometimes the error will have a description and sometimes it won't.
112 2007-09-10  Paul Smith  <psmith@gnu.org>
114         * scripts/variables/special: Add tests for .RECIPEPREFIX variable.
116 2007-08-15  Paul Smith  <psmith@gnu.org>
118         These test cases were contributed by
119         Icarus Sparry <savannah@icarus.freeuk.com> and J. David Bryan for
120         Savannah bugs #3330 and #15919.
122         * scripts/targets/SECONDARY: Add tests for Savannah bugs 3330 and
123         15919.
125         * scripts/features/parallelism: Add tests for wrong answer/hang
126         combining INTERMEDIATE, order-only prereqs, and parallelism.
127         See Savannah bugs 3330 and 15919.
129 2007-07-13  Paul Smith  <psmith@gnu.org>
131         Install a timeout so tests can never loop infinitely.
132         Original idea and patch for a single-test version provided by
133         Icarus Sparry <savannah@icarus.freeuk.com>
135         * test_driver.pl (_run_command): New function: this is called by
136         other functions to actually run a command.  Before we run it,
137         install a SIGALRM handler and set up a timer to go off in the
138         future (default is 5s; this can be overridden by individual tests).
139         (run_command): Call it.
140         (run_command_with_output): Call it.
142         * run_make_tests.pl (run_make_with_options): Override the default
143         timeout if the caller requests it.
144         (run_make_test): Pass any timeout override to run_make_with_options.
146         * scripts/features/parallelism: Increase the timeout for long tests.
147         * scripts/options/dash-l: Ditto.
149 2006-10-01  Paul Smith  <psmith@paulandlesley.org>
151         * run_make_tests.pl (set_more_defaults): Remove setting of LANG in
152         ENV here.  This doesn't always work.
153         * test_driver.pl (toplevel): Set LC_ALL to 'C' in the make
154         environment.  Fixes Savannah bug #16698.
156 2006-09-30  Paul Smith  <psmith@paulandlesley.org>
158         * scripts/variables/automatic: Add back the test for bug #8154.
160 2006-04-01  Paul D. Smith  <psmith@gnu.org>
162         * scripts/functions/realpath: Don't run tests with multiple
163         initial slashes on Windows: those paths mean something different.
165 2006-03-19  Paul D. Smith  <psmith@gnu.org>
167         * scripts/features/parallelism: Test that the jobserver is
168         properly managed when we have to re-exec the master instance of
169         make.
171 2006-03-17  Boris Kolpackov  <boris@kolpackov.net>
173         * scripts/features/statipattrules: Add tests for bug #16053.
175 2006-03-09  Paul Smith  <psmith@gnu.org>
177         * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts
178         with DOS drive letters.  Fixes Savannah bug #15947.
180         * test_driver.pl (run_each_test): Set the status properly even
181         when a test fails to execute.  Fixes Savannah bug #15942.
183         * scripts/functions/foreach: Use a different environment variable
184         other than PATH to avoid differences with Windows platforms.
185         Fixes Savannah bug #15938.
187 2006-03-05  Paul D. Smith  <psmith@gnu.org>
189         * run_make_tests.pl (set_more_defaults): Add CYGWIN_NT as a port
190         type W32.  Fixed Savannah bug #15937.
192         * scripts/features/default_names: Don't call error() when the test
193         fails.  Fixes Savannah bug #15941.
195 2006-02-17  Paul D. Smith  <psmith@gnu.org>
197         * scripts/features/targetvars: Test a complex construction which
198         guarantees that we have to merge variable lists of different
199         sizes.  Tests for Savannah bug #15757.
201 2006-02-15  Paul D. Smith  <psmith@gnu.org>
203         * scripts/functions/error: Make sure filename/lineno information
204         is related to where the error is expanded, not where it's set.
205         * scripts/functions/warning: Ditto.
206         * scripts/functions/foreach: Check for different error conditions.
207         * scripts/functions/word: Ditto.
208         * scripts/variables/negative: Test some variable reference failure
209         conditions.
210         * scripts/options/warn-undefined-variables: Test the
211         --warn-undefined-variables flag.
213 2006-02-09  Paul D. Smith  <psmith@gnu.org>
215         * run_make_tests.pl (set_more_defaults): Update valgrind support
216         for newer versions.
217         * test_driver.pl (toplevel): Skip all hidden files/directories (ones
218         beginning with ".").
220         * scripts/functions/andor: Tests for $(and ..) and $(or ...)
221         functions.
223 2006-02-08  Boris Kolpackov  <boris@kolpackov.net>
225         * scripts/features/parallelism: Add a test for bug #15641.
227 2006-02-06  Paul D. Smith  <psmith@gnu.org>
229         * scripts/options/dash-W: Add a test for bug #15341.
231 2006-01-03  Paul D. Smith  <psmith@gnu.org>
233         * scripts/variables/automatic: Add a test for bug #8154.
235         * README: Update to reflect the current state of the test suite.
237 2005-12-12  Paul D. Smith  <psmith@gnu.org>
239         * scripts/features/parallelism, scripts/functions/wildcard,
240         scripts/targets/FORCE, scripts/targets/PHONY,
241         scripts/targets/SILENT: Use the default setting for
242         $delete_command.  Fixes bug #15085.
244         * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file.
246 2005-12-11  Paul D. Smith  <psmith@gnu.org>
248         * scripts/misc/general4: Test implicit rules with '$' in the
249         prereq list & prereq patterns.
250         * scripts/features/se_implicit: Add in .SECONDEXPANSION settings.
252 2005-12-09  Boris Kolpackov  <boris@kolpackov.net>
254         * scripts/features/patternrules: Add a test for bug #13022.
256 2005-12-07  Boris Kolpackov  <boris@kolpackov.net>
258         * scripts/features/double_colon: Add a test for bug #14334.
260 2005-11-17  Boris Kolpackov  <boris@kolpackov.net>
262         * scripts/functions/flavor: Add a test for the flavor function.
264 2005-11-14  Boris Kolpackov  <boris@kolpackov.net>
266         * scripts/variables/INCLUDE_DIRS: Add a test for the .INCLUDE_DIRS
267         special variable.
269 2005-10-24  Paul D. Smith  <psmith@gnu.org>
271         * scripts/misc/general4: Test '$$' in prerequisites list.
272         * scripts/features/statipattrules: Rewrite to use run_make_test().
273         Add various static pattern info.
274         * scripts/features/se_statpat: Enable .SECONDEXPANSION target.
275         * scripts/features/se_explicit: Add tests for handling '$$' in
276         prerequisite lists with and without setting .SECONDEXPANSION.
277         * scripts/features/order_only: Convert to run_make_test().
278         * run_make_tests.pl (set_more_defaults): If we can't get the value
279         of $(MAKE) from make, then fatal immediately.
281 2005-08-31  Paul D. Smith  <psmith@gnu.org>
283         * run_make_tests.pl (get_this_pwd): Require the POSIX module (in
284         an eval to trap errors) and if it exists, use POSIX::getcwd to
285         find the working directory.  If it doesn't exist, go back to the
286         previous methods.  This tries to be more accurate on Windows
287         systems.
289 2005-08-29  Paul D. Smith  <psmith@gnu.org>
291         * scripts/functions/abspath: Add some text to the error messages
292         to get a better idea of what's wrong.  Make warnings instead of
293         errors.
295         * scripts/features/patspecific_vars: Don't use "test", which is
296         UNIX specific.  Print the values and let the test script match
297         them.
299 2005-08-25  Paul Smith  <psmith@gnu.org>
301         * scripts/variables/SHELL: Use a /./ prefix instead of //: the
302         former works better with non-UNIX environments.  Fixes Savannah
303         bug #14129.
305 2005-08-13  Boris Kolpackov  <boris@kolpackov.net>
307         * scripts/functions/wildcard: Wrap calls to $(wildcard ) with
308         $(sort) so that the resulting order is no longer filesystem-
309         dependant.
311 2005-08-10  Boris Kolpackov  <boris@kolpackov.net>
313         * scripts/features/statipattrules: Add a test for Savannah bug #13881.
315 2005-08-07  Paul D. Smith  <psmith@gnu.org>
317         * scripts/features/parallelism: Add a test for a bug reported by
318         Michael Matz (matz@suse.de) in which make exits without waiting
319         for all its children in some situations during parallel builds.
321 2005-07-08  Paul D. Smith  <psmith@gnu.org>
323         * test_driver.pl: Reset the environment to a clean value every
324         time before we invoke make.  I'm suspicious that the environment
325         isn't handled the same way in Windows as it is in UNIX, and some
326         variables are leaking out beyond the tests they are intended for.
327         Create an %extraENV hash tests can set to add more env. vars.
328         * tests/scripts/features/export: Change to use %extraENV.
329         * tests/scripts/functions/eval: Ditto.
330         * tests/scripts/functions/origin: Ditto.
331         * tests/scripts/options/dash-e: Ditto.
332         * tests/scripts/variables/SHELL: Ditto.
334 2005-06-27  Paul D. Smith  <psmith@gnu.org>
336         * scripts/options/dash-W: Use 'echo >>' instead of touch to update
337         files.
338         * scripts/features/reinvoke: Rewrite to be safer on systems with
339         subsecond timestamps.
340         * scripts/features/patternrules: False exits with different error
341         codes on different systems (for example, Linux => 1, Solaris => 255).
343         * scripts/options/dash-W: Set the timestamp to foo.x in the future,
344         to be sure it will be considered updated when it's remade.
346 2005-06-26  Paul D. Smith  <psmith@gnu.org>
348         * scripts/functions/shell: New test suite for the shell function.
350 2005-06-25  Paul D. Smith  <psmith@gnu.org>
352         * scripts/features/include: Test include/-include/sinclude with no
353         arguments.  Tests fix for Savannah bug #1761.
355         * scripts/misc/general3: Implement comprehensive testing of
356         backslash-newline behavior in command scripts: various types of
357         quoting, fast path / slow path, etc.
358         Tests fix for Savannah bug #1332.
360         * scripts/options/symlinks: Test symlinks to non-existent files.
361         Tests fix for Savannah bug #13280.
363         * scripts/misc/general3: Test semicolons in variable references.
364         Tests fix for Savannah bug #1454.
366         * scripts/variables/MAKE_RESTARTS: New file: test the
367         MAKE_RESTARTS variable.
368         * scripts/options/dash-B: Test re-exec doesn't loop infinitely.
369         Tests fix for Savannah bug #7566.
370         * scripts/options/dash-W: New file: test the -W flag, including
371         re-exec infinite looping.
373 2005-06-12  Paul D. Smith  <psmith@gnu.org>
375         * scripts/misc/close_stdout: Add a test for Savannah bug #1328.
376         This test only works on systems that have /dev/full (e.g., Linux).
378 2005-06-09  Paul D. Smith  <psmith@gnu.org>
380         * scripts/functions/foreach: Add a test for Savannah bug #11913.
382 2005-05-31  Boris Kolpackov  <boris@kolpackov.net>
384         * scripts/features/include: Add a test for Savannah bug #13216.
385         * scripts/features/patternrules: Add a test for Savannah bug #13218.
387 2005-05-13  Paul D. Smith  <psmith@gnu.org>
389         * scripts/features/conditionals: Add tests for the new if... else
390         if... endif syntax.
392 2005-05-03  Paul D. Smith  <psmith@gnu.org>
394         * scripts/variables/DEFAULT_GOAL: Rename DEFAULT_TARGET to
395         DEFAULT_GOAL.
397 2005-05-02  Paul D. Smith  <psmith@gnu.org>
399         * scripts/features/parallelism: Add a test for exporting recursive
400         variables containing $(shell ) calls.  Rewrite this script to use
401         run_make_test() everywhere.
403 2005-04-07  Paul D. Smith  <psmith@gnu.org>
405         * scripts/targets/SECONDARY: Add a test for Savannah bug #12331.
407 2005-03-15  Boris Kolpackov  <boris@kolpackov.net>
409         * scripts/variables/automatic: Add a test for Savannah bug #12320.
411 2005-03-10  Boris Kolpackov  <boris@kolpackov.net>
413         * scripts/features/patternrules: Add a test for Savannah bug #12267.
415 2005-03-09  Boris Kolpackov  <boris@kolpackov.net>
417         * scripts/variables/DEFAULT_TARGET: Add a test for Savannah
418         bug #12266.
420 2005-03-04  Boris Kolpackov  <boris@kolpackov.net>
422         * scripts/features/patternrules: Add a test for Savannah bug #12202.
424 2005-03-03  Boris Kolpackov  <boris@kolpackov.net>
426         * scripts/features/se_implicit: Add a test for stem
427         termination bug. Add a test for stem triple-expansion bug.
429         * scripts/features/se_statpat: Add a test for stem
430         triple-expansion bug.
432         * scripts/features/statipattrules: Change test #4 to reflect
433         new way empty prerequisite list is handled.
436 2005-03-01  Boris Kolpackov  <boris@kolpackov.net>
438         * scripts/features/statipattrules: Add a test for
439         Savannah bug #12180.
441 2005-02-28  Paul D. Smith  <psmith@gnu.org>
443         * scripts/options/dash-q: Add a test for Savannah bug # 7144.
445         * scripts/options/symlinks: New file to test checking of symlink
446         timestamps.  Can't use filename dash-L because it conflicts with
447         dash-l on case-insensitive filesystems.
449         * scripts/variables/MAKEFILE_LIST, scripts/variables/MFILE_LIST:
450         Rename MAKEFILE_LIST test to MFILE_LIST, for systems that need 8.3
451         unique filenames.
453 2005-02-28  Boris Kolpackov  <boris@kolpackov.net>
455         * scripts/variables/DEFAULT_TARGET: Test the .DEFAULT_TARGET
456         special variable.
458 2005-02-27  Boris Kolpackov  <boris@kolpackov.net>
460         * scripts/features/se_explicit: Test the second expansion in
461         explicit rules.
462         * scripts/features/se_implicit: Test the second expansion in
463         implicit rules.
464         * scripts/features/se_statpat: Test the second expansion in
465         static pattern rules.
466         * scripts/variables/automatic: Fix to work with the second
467         expansion.
469         * scripts/misc/general4: Add a test for bug #12091.
471 2005-02-27  Paul D. Smith  <psmith@gnu.org>
473         * scripts/functions/eval: Check that eval of targets within
474         command scripts fails.  See Savannah bug # 12124.
476 2005-02-26  Paul D. Smith  <psmith@gnu.org>
478         * test_driver.pl (compare_output): If a basic comparison of the
479         log and answer doesn't match, try harder: change all backslashes
480         to slashes and all CRLF to LF.  This helps on DOS/Windows systems.
482 2005-02-09  Paul D. Smith  <psmith@gnu.org>
484         * scripts/features/recursion: Test command line variable settings:
485         only one instance of a given variable should be provided.
487 2004-11-30  Boris Kolpackov  <boris@kolpackov.net>
489         * tests/scripts/functions/abspath: New file: test `abspath'
490         built-in function.
492         * tests/scripts/functions/realpath: New file: test `realpath'
493         built-in function.
495 2004-11-28  Paul D. Smith  <psmith@gnu.org>
497         * scripts/options/dash-C [WINDOWS32]: Add a test for bug #10252;
498         this doesn't really test anything useful in UNIX but...
500         * scripts/variables/SHELL: New file: test proper handling of SHELL
501         according to POSIX rules.  Fixes bug #1276.
503 2004-10-21  Boris Kolpackov  <boris@kolpackov.net>
505         * scripts/functions/word: Test $(firstword ) and $(lastword ).
507 2004-10-05  Boris Kolpackov  <boris@kolpackov.net>
509         * scripts/features/patspecific_vars: Test simple/recursive
510         variable expansion.
512 2004-09-28  Boris Kolpackov  <boris@kolpackov.net>
514         * scripts/features/include: Test dontcare flag inheritance
515         when rebuilding makefiles.
517 2004-09-27  Boris Kolpackov  <boris@kolpackov.net>
519         * scripts/features/patspecific_vars: Test exported variables.
521 2004-09-22  Paul D. Smith  <psmith@gnu.org>
523         * run_make_tests.pl (run_make_test): Don't add newlines to the
524         makestring or answer if they are completely empty.
526         * scripts/features/patternrules: Rename from implicit_prereq_eval.
528         * scripts/test_template: Rework the template.
530 2004-09-21  Boris Kolpackov  <boris@kolpackov.net>
532         * run_make_tests.pl: Change `#!/usr/local/bin/perl' to be
533         `#!/usr/bin/env perl'.
535         * scripts/features/implicit_prereq_eval: Test implicit rule
536         prerequisite evaluation code.
538 2004-09-21  Paul D. Smith  <psmith@gnu.org>
540         * run_make_tests.pl (run_make_test): Enhance to allow the make
541         string to be undef: in that case it reuses the previous make
542         string.  Allows multiple tests on the same makefile.
544         * scripts/variables/flavors: Add some tests for prefix characters
545         interacting with define/endef variables.
547 2004-09-20  Paul D. Smith  <psmith@gnu.org>
549         * scripts/functions/substitution: Rewrite to use run_make_test()
550         interface, and add test for substitution failures reported by
551         Markus Mauhart <qwe123@chello.at>.
553 2004-03-22  Paul D. Smith  <psmith@gnu.org>
555         * test_driver.pl (run_each_test, toplevel, compare_output): Change
556         to track both the testing categories _AND_ the number of
557         individual tests, and report both sets of numbers.
559 2004-02-21  Paul D. Smith  <psmith@gnu.org>
561         * scripts/functions/origin: Set our own environment variable
562         rather than relying on $HOME.
564 2004-01-21  Paul D. Smith  <psmith@gnu.org>
566         * scripts/features/conditionals: Test arguments to ifn?def which
567         contain whitespace (such as a function that is evaluated).  Bug
568         #7257.
570 2004-01-07  Paul D. Smith  <psmith@gnu.org>
572         * scripts/features/order_only: Test order-only prerequisites in
573         pattern rules (patch #2349).
575 2003-11-02  Paul D. Smith  <psmith@gnu.org>
577         * scripts/functions/if: Test if on conditionals with trailing
578         whitespace--bug #5798.
580         * scripts/functions/eval: Test eval in a non-file context--bug #6195.
582 2003-04-19  Paul D. Smith  <psmith@gnu.org>
584         * scripts/features/patspecific_vars: Test multiple patterns
585         matching the same target--Bug #1405.
587 2003-04-09  Paul D. Smith  <psmith@gnu.org>
589         * run_make_tests.pl (set_more_defaults): A new $port_type of
590         'OS/2' for (surprise!) OS/2.  Also choose a wait time of 2 seconds
591         for OS/2.
593 2003-03-28  Paul D. Smith  <psmith@gnu.org>
595         * scripts/targets/SECONDARY: Test the "global" .SECONDARY (with
596         not prerequisites)--Bug #2515.
598 2003-01-30  Paul D. Smith  <psmith@gnu.org>
600         * scripts/features/targetvars: Test very long target-specific
601         variable definition lines (longer than the default make buffer
602         length).  Tests patch # 1022.
604         * scripts/functions/eval: Test very recursive $(eval ...) calls
605         with simple variable expansion (bug #2238).
607         * scripts/functions/word: Test error handling for word and
608         wordlist functions (bug #2407).
610 2003-01-22  Paul D. Smith  <psmith@gnu.org>
612         * scripts/functions/call: Test recursive argument masking (bug
613         #1744).
615 2002-10-25  Paul D. Smith  <psmith@gnu.org>
617         * scripts/functions/eval: Test using $(eval ...) inside
618         conditionals (Bug #1516).
620 2002-10-14  Paul D. Smith  <psmith@gnu.org>
622         * scripts/options/dash-t: Add a test for handling -t on targets
623         with no commands (Bug #1418).
625 2002-10-13  Paul D. Smith  <psmith@gnu.org>
627         * scripts/features/targetvars: Add a test for exporting
628         target-specific vars (Bug #1391).
630 2002-10-05  Paul D. Smith  <psmith@gnu.org>
632         * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D},
633         and $${@F}.
635 2002-09-23  Paul D. Smith  <psmith@gnu.org>
637         * scripts/features/escape: Test handling of escaped comment
638         characters in targets and prerequisites.
640 2002-09-18  Paul D. Smith  <psmith@gnu.org>
642         * scripts/features/export: Test export/unexport of multiple
643         variables in a single command.
645 2002-09-17  Paul D. Smith  <psmith@gnu.org>
647         * scripts/features/targetvars: Tests for Bug #940: test
648         target-specific and pattern-specific variables in conjunction with
649         double-colon targets.
651 2002-09-10  Paul D. Smith  <psmith@gnu.org>
653         * test_driver.pl (compare_output): Match the new format for time
654         skew error messages.
656         * scripts/features/export: Created.  Add tests for export/unexport
657         capabilities, including exporting/unexporting expanded variables.
659         * scripts/features/conditionals: Add a test for expanded variables
660         in ifdef conditionals.
662 2002-09-04  Paul D. Smith  <psmith@gnu.org>
664         * scripts/features/reinvoke: Change touch/sleep combos to utouch
665         invocations.
666         * scripts/features/vpathgpath: Ditto.
667         * scripts/features/vpathplus: Ditto.
668         * scripts/options/dash-n: Ditto.
669         * scripts/targets/INTERMEDIATE: Ditto.
670         * scripts/targets/SECONDARY: Ditto.
672         * scripts/options/dash-t: Added a test for the -t bug fixed by
673         Henning Makholm.  This test was also contributed by Henning.
675         * scripts/misc/general4: Add a test suite for obscure algorithmic
676         features of make.  First test: make sure creation subdirectories
677         as prerequisites of targets works properly.
679         * scripts/misc/version: Remove this bogus test.
681 2002-08-07  Paul D. Smith  <psmith@gnu.org>
683         * scripts/misc/general3: Add a test for makefiles that don't end
684         in newlines.
686         * scripts/variables/special: Create tests for the special
687         variables (.VARIABLES and .TARGETS).  Comment out .TARGETS test
688         for now as it's not yet supported.
690 2002-08-01  Paul D. Smith  <psmith@gnu.org>
692         * scripts/options/dash-B: Add a test for the new -B option.
694 2002-07-11  Paul D. Smith  <psmith@gnu.org>
696         * run_make_tests.pl (valid_option): Add support for Valgrind.  Use
697         -valgrind option to the test suite.
698         (set_more_defaults): Set up the file descriptor to capture
699         Valgrind output.  We have to unset its close-on-exec flag; we
700         hardcode the value for F_SETFD (2) rather than load it; hopefully
701         this will help us avoid breaking the Windows/DOS test suite.
703 2002-07-10  Paul D. Smith  <psmith@gnu.org>
705         * scripts/variables/automatic: Add some tests for $$@, $$(@D), and
706         $$(@F).
708         * test_driver.pl (utouch): Create a new function that creates a
709         file with a specific timestamp offset.  Use of this function will
710         let us avoid lots of annoying sleep() invocations in the tests
711         just to get proper timestamping, which will make the tests run a
712         lot faster.  So far it's only used in the automatic test suite.
714 2002-07-09  Paul D. Smith  <psmith@gnu.org>
716         * scripts/variables/automatic: Create a test for automatic variables.
718 2002-07-08  Paul D. Smith  <psmith@gnu.org>
720         * scripts/features/order_only: Test new order-only prerequisites.
722 2002-07-07  Paul D. Smith  <psmith@gnu.org>
724         * scripts/functions/eval: Test new function.
725         * scripts/functions/value: Test new function.
726         * scripts/variables/MAKEFILE_LIST: Test new variable.
728 2002-04-28  Paul D. Smith  <psmith@gnu.org>
730         * scripts/functions/call: New test: transitive closure
731         implementation using $(call ...) to test variable recursion.
733 2002-04-21  Paul D. Smith  <psmith@gnu.org>
735         * test_driver.pl (compare_dir_tree): Ignore CVS and RCS
736         directories in the script directories.
738 2001-05-02  Paul D. Smith  <psmith@gnu.org>
740         * scripts/variables/flavors: Test define/endef scripts where only
741         one of the command lines is quiet.
743 2000-06-22  Paul D. Smith  <psmith@gnu.org>
745         * scripts/options/dash-q: New file; test the -q option.  Includes
746         a test for PR/1780.
748 2000-06-21  Paul D. Smith  <psmith@gnu.org>
750         * scripts/features/targetvars: Added a test for PR/1709: allowing
751         semicolons in target-specific variable values.
753 2000-06-19  Paul D. Smith  <psmith@gnu.org>
755         * scripts/functions/addsuffix: Test for an empty final argument.
756         Actually this bug might have happened for any function, but this
757         one was handy.
759 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
761         * scripts/options/general: If parallel jobs are not supported,
762         expect a warning message from Make.
764 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
766         * scripts/options/general: Don't try -jN with N != 1 if parallel
767         jobs are not supported.
769 2000-05-24  Paul D. Smith  <psmith@gnu.org>
771         * scripts/options/general: Test general option processing (PR/1716).
773 2000-04-11  Paul D. Smith  <psmith@gnu.org>
775         * scripts/functions/strip: Test empty value to strip (PR/1689).
777 2000-04-08  Eli Zaretskii  <eliz@is.elta.co.il>
779         * scripts/features/reinvoke: Sleep before updating the target
780         files in the first test, to ensure its time stamp really gets
781         newer; otherwise Make might re-exec more than once.
783 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
785         * scripts/features/double_colon: Don't run the parallel tests if
786         parallel jobs aren't supported.
788 2000-04-04  Paul D. Smith  <psmith@gnu.org>
790         * scripts/functions/word: wordlist doesn't swap arguments anymore.
792 2000-03-27  Paul D. Smith  <psmith@gnu.org>
794         * scripts/features/statipattrules: Test that static pattern rules
795         whose prerequisite patterns resolve to empty strings throw an
796         error (instead of dumping core).  Fixes PR/1670.
798         * scripts/features/reinvoke: Make more robust by touching "b"
799         first, to ensure it's not newer than "a".
800         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
801         * scripts/options/dash-n: Ditto.
803         * scripts/functions/call: Whoops.  The fix to PR/1527 caused
804         recursive invocations of $(call ...) to break.  I can't come up
805         with any way to get both working at the same time, so I backed out
806         the fix to 1527 and added a test case for recursive calls.  This
807         also tests the fix for PR/1610.
809         * scripts/features/double_colon: Test that circular dependencies
810         in double-colon rule sets are detected correctly (PR/1671).
812 2000-03-26  Paul D. Smith  <psmith@gnu.org>
814         * scripts/targets/INTERMEDIATE: Test that make doesn't remove
815         .INTERMEDIATE files when given on the command line (PR/1669).
817 2000-03-08  Paul D. Smith  <psmith@gnu.org>
819         * scripts/options/dash-k: Add a test for error detection by
820         multiple targets depending on the same prerequisite with -k.
821         For PR/1634.
823 2000-02-07  Paul D. Smith  <psmith@gnu.org>
825         * scripts/features/escape: Add a test for backslash-escaped spaces
826         in a target name (PR/1586).
828 2000-02-04  Paul D. Smith  <psmith@gnu.org>
830         * scripts/features/patspecific_vars: Add a test for pattern-specific
831         target variables inherited from the parent target (PR/1407).
833 2000-02-02  Paul D. Smith  <psmith@gnu.org>
835         * run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
836         to make sure sorting order, etc. is predictable.
837         Reported by Andreas Jaeger <aj@suse.de>.
839         * run_make_tests.pl (set_more_defaults): Set the $wtime variable
840         depending on the OS.  Eli Zaretskii <eliz@is.elta.co.il> reports
841         this seems to need to be *4* on DOS/Windows, not just 2.  Keep it
842         1 for other systems.
843         * scripts/features/vpathplus (touchfiles): Use the $wtime value
844         instead of hardcoding 2.
845         * scripts/targets/SECONDARY: Ditto.
846         * scripts/targets/INTERMEDIATE: Ditto.
848 2000-01-27  Paul D. Smith  <psmith@gnu.org>
850         * test_driver.pl (toplevel): Don't try to run test scripts which
851         are really directories.
853 2000-01-23  Paul D. Smith  <psmith@gnu.org>
855         * scripts/features/include: Remove a check; the fix caused more
856         problems than the error, so I removed it and removed the test for
857         it.
859 2000-01-11  Paul D. Smith  <psmith@gnu.org>
861         * scripts/functions/call: Add a test for PR/1517 and PR/1527: make
862         sure $(call ...) doesn't eval its arguments and that you can
863         invoke foreach from it without looping forever.
865 1999-12-15  Paul D. Smith  <psmith@gnu.org>
867         * scripts/targets/INTERMEDIATE: Add a test for PR/1423: make sure
868         .INTERMEDIATE settings on files don't disable them as implicit
869         intermediate possibilities.
871 1999-12-01  Paul D. Smith  <psmith@gnu.org>
873         * scripts/features/double_colon: Add a test for PR/1476: Try
874         double-colon rules as non-goal targets and during parallel builds
875         to make sure they're handled serially.
877 1999-11-17  Paul D. Smith  <psmith@gnu.org>
879         * scripts/functions/if: Add a test for PR/1429: put some text
880         after an if-statement to make sure it works.
882         * scripts/features/targetvars: Add a test for PR/1380: handling +=
883         in target-specific variable definitions correctly.
885 1999-10-15  Paul D. Smith  <psmith@gnu.org>
887         * scripts/variables/MAKEFILES: This was really broken: it didn't
888         test anything at all, really.  Rewrote it, plus added a test for
889         PR/1394.
891 1999-10-13  Paul D. Smith  <psmith@gnu.org>
893         * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't
894         behave properly when used with recursive targets".
896 1999-10-08  Paul D. Smith  <psmith@gnu.org>
898         * scripts/features/targetvars: Add a check for PR/1378:
899         "Target-specific vars don't inherit correctly"
901 1999-09-29  Paul D. Smith  <psmith@gnu.org>
903         * test_driver.pl (get_osname): Change $fancy_file_names to
904         $short_filenames and reverse the logic.
905         (run_each_test): Change test of non-existent $port_host to use
906         $short_filenames--problem reported by Eli Zaretskii.
908 1999-09-23  Paul D. Smith  <psmith@gnu.org>
910         * scripts/features/parallelism: Add a check to ensure that the
911         jobserver works when we re-invoke.  Also cleaned up the tests a
912         little, reducing the number of rules we use so the test won't need
913         as many "sleep" commands.
915 1999-09-16  Paul D. Smith  <psmith@gnu.org>
917         * scripts/features/reinvoke: Remove invocations of "touch" in
918         makefiles.  See the comments on the touch function rewrite below.
919         Note that UNIX touch behaves the same way if the file already
920         exists: it sets the time to the _local_ time.  We don't want
921         this.  This is probably a good tip for makefile writers in
922         general, actually... where practical.
923         * scripts/options/dash-l: Ditto.
924         * scripts/options/dash-n: Ditto.
926         * test_driver.pl (run_each_test): In retrospect, I don't like the
927         .lN/.bN/.dN postfix required by DOS.  So, for non-DOS systems I
928         changed it back to use .log, .base, and .diff.
930         * run_make_tests.pl (set_more_defaults): Move the check for the
931         make pathname to here from set_defaults (that's too early since it
932         happens before the command line processing).
933         Create a new variable $port_type, calculated from $osname, to
934         specify what kind of system we're running on.  We should integrate
935         the VOS stuff here, too.
936         (valid_option): Comment out the workdir/-work stuff so people
937         won't be fooled into thinking it works... someone needs to fix
938         this, though!
940         * scripts/functions/origin: Use $port_type instead of $osname.
941         * scripts/functions/foreach: Ditto.
942         * scripts/features/default_names: Ditto.
944 1999-09-15  Paul D. Smith  <psmith@gnu.org>
946         * test_driver.pl (touch): Rewrite this function.  Previously it
947         used to use utime() to hard-set the time based on the current
948         local clock, or, if the file didn't exist, it merely created it.
949         This mirrors exactly what real UNIX touch does, but it fails badly
950         on networked filesystems where the FS server clock is skewed from
951         the local clock: normally modifying a file causes it to get a mod
952         time based on the _server's_ clock.  Hard-setting it based on the
953         _local_ clock causes gratuitous errors and makes the tests
954         unreliable except on local filesystems.  The new function will
955         simply modify the file, allowing the filesystem to set the mod
956         time as it sees fit.
958         * scripts/features/parallelism: The second test output could
959         change depending on how fast some scripts completed; use "sleep"
960         to force the order we want.
962         * test_driver.pl (toplevel): A bug in Perl 5.000 to Perl 5.004
963         means that "%ENV = ();" doesn't do the right thing.  This worked
964         in Perl 4 and was fixed in Perl 5.004_01, but use a loop to delete
965         the environment rather than require specific versions.
967         * run_make_tests.pl (set_more_defaults): Don't use Perl 5 s///
968         modifier "s", so the tests will run with Perl 4.
969         (set_more_defaults): Set $pure_log to empty if there's no -logfile
970         option in PURIFYOPTIONS.
971         (setup_for_test): Don't remove any logs unless $pure_log is set.
973 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
975         * scripts/features/reinvoke: Put the SHELL definition in the right
976         test makefile.
978 1999-09-15  Paul D. Smith  <psmith@gnu.org>
980         ChangeLog file for the test suite created.
983 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
984 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
985 This file is part of GNU Make.
987 GNU Make is free software; you can redistribute it and/or modify it under the
988 terms of the GNU General Public License as published by the Free Software
989 Foundation; either version 3 of the License, or (at your option) any later
990 version.
992 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
993 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
994 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
996 You should have received a copy of the GNU General Public License along with
997 this program.  If not, see <http://www.gnu.org/licenses/>.