- Rework secondary expansion so we only defer it if there's a possibility
[make.git] / tests / ChangeLog
blobf1c6695f66e550e11ec178c6e92973e73b340ef6
1 2009-09-23  Paul  <psmith@gnu.org>
3         * scripts/features/patternrules: Test that we can remove pattern
4         rules, both single and multiple prerequisites.  Savannah bug #18622.
6         * scripts/features/echoing: Rework for run_make_test().
8 2009-06-14  Paul Smith  <psmith@gnu.org>
10         * scripts/features/vpath: Verify we don't get bogus circular
11         dependency warnings if we choose a different file via vpath during
12         update.  Savannah bug #13529.
14 2009-06-13  Paul Smith  <psmith@gnu.org>
16         * scripts/variables/MAKEFILES: Verify that MAKEFILES included
17         files (and files included by them) don't set the default goal.
18         Savannah bug #13401.
20         * scripts/functions/wildcard: Test that wildcards with
21         non-existent glob matchers return empty.
23 2009-06-09  Paul Smith  <psmith@gnu.org>
25         * scripts/options/dash-B: Test the $? works correctly with -B.
26         Savannah bug #17825.
28         * scripts/features/patternrules: Test that dependencies of
29         "also_make" targets are created properly.  Savannah bug #19108.
31         * test_driver.pl (compare_output): Create a "run" file for failed
32         tests containing the command that was run.
33         (get_runfile): New function.
35         * run_make_tests.pl (valid_option): Enhanced support for valgrind:
36         allow memcheck and massif tools.
38         * scripts/features/patternrules: Have to comment out a line in the
39         first test due to backing out a change that broke the implicit
40         rule search algorithm.  Savannah bug #17752.
41         * scripts/misc/general4: Remove a test that is redundant with
42         patternrules.
44         * scripts/features/parallelism: Add a test for re-exec with
45         jobserver master override.  Savannah bug #18124.
47 2009-06-08  Paul Smith  <psmith@gnu.org>
49         * scripts/features/targetvars: Add a test for continued target
50         vars after a semicolon.  Savannah bug #17521.
52 2009-06-07  Paul Smith  <psmith@gnu.org>
54         * scripts/features/se_explicit: Make sure we catch defining
55         prereqs during snap_deps().  Savannah bug #24622.
57         * scripts/variables/automatic: Check prereq ordering when the
58         target with the recipe has no prereqs.  Savannah bug #21198.
60         * scripts/variables/LIBPATTERNS: Add a new set of test for
61         $(.LIBPATTERNS) (previously untested!)
63 2009-06-04  Paul Smith  <psmith@gnu.org>
65         * scripts/variables/SHELL: The export target-specific SHELL test
66         has an incorrect known-good-value.
68         * scripts/misc/general4: Check for whitespace (ffeed, vtab, etc.)
70         * scripts/features/se_explicit: Add tests for Savannah bug #24588.
72 2009-05-31  Paul Smith  <psmith@gnu.org>
74         * scripts/variables/DEFAULT_GOAL: Add tests for Savannah bug #25697.
76         * scripts/features/targetvars: Add tests of overrides for Savannah
77         bug #26207.
78         * scripts/features/patspecific_vars: Ditto.
80         * scripts/features/patternrules: Add a test for Savannah bug #26593.
82 2009-05-30  Paul Smith  <psmith@gnu.org>
84         * scripts/variables/flavors: Update with new variable flavor tests.
85         * scripts/variables/define: Create a new set of tests for
86         define/endef and move those aspects of the flavors suite here.
88 2009-05-25  Paul Smith  <psmith@gnu.org>
90         * scripts/features/targetvars: Ditto.
92         * scripts/features/export: Test new variable parsing abilities.
94 2009-02-23  Ramon Garcia  <ramon.garcia.f@gmail.com>
96         * scripts/variables/private: Create a new suite of tests for 'private'.
98 2007-11-04  Paul Smith  <psmith@gnu.org>
100         * scripts/functions/eval: Update error message for command -> recipe.
102         * test_driver.pl (compare_output): Allow the answer to be a regex,
103         if surrounded by '/'.
104         * scripts/misc/close_stdout: Use a regex for the answer, since
105         sometimes the error will have a description and sometimes it won't.
107 2007-09-10  Paul Smith  <psmith@gnu.org>
109         * scripts/variables/special: Add tests for .RECIPEPREFIX variable.
111 2007-08-15  Paul Smith  <psmith@gnu.org>
113         These test cases were contributed by
114         Icarus Sparry <savannah@icarus.freeuk.com> and J. David Bryan for
115         Savannah bugs #3330 and #15919.
117         * scripts/targets/SECONDARY: Add tests for Savannah bugs 3330 and
118         15919.
120         * scripts/features/parallelism: Add tests for wrong answer/hang
121         combining INTERMEDIATE, order-only prereqs, and parallelism.
122         See Savannah bugs 3330 and 15919.
124 2007-07-13  Paul Smith  <psmith@gnu.org>
126         Install a timeout so tests can never loop infinitely.
127         Original idea and patch for a single-test version provided by
128         Icarus Sparry <savannah@icarus.freeuk.com>
130         * test_driver.pl (_run_command): New function: this is called by
131         other functions to actually run a command.  Before we run it,
132         install a SIGALRM handler and set up a timer to go off in the
133         future (default is 5s; this can be overridden by individual tests).
134         (run_command): Call it.
135         (run_command_with_output): Call it.
137         * run_make_tests.pl (run_make_with_options): Override the default
138         timeout if the caller requests it.
139         (run_make_test): Pass any timeout override to run_make_with_options.
141         * scripts/features/parallelism: Increase the timeout for long tests.
142         * scripts/options/dash-l: Ditto.
144 2006-10-01  Paul Smith  <psmith@paulandlesley.org>
146         * run_make_tests.pl (set_more_defaults): Remove setting of LANG in
147         ENV here.  This doesn't always work.
148         * test_driver.pl (toplevel): Set LC_ALL to 'C' in the make
149         environment.  Fixes Savannah bug #16698.
151 2006-09-30  Paul Smith  <psmith@paulandlesley.org>
153         * scripts/variables/automatic: Add back the test for bug #8154.
155 2006-04-01  Paul D. Smith  <psmith@gnu.org>
157         * scripts/functions/realpath: Don't run tests with multiple
158         initial slashes on Windows: those paths mean something different.
160 2006-03-19  Paul D. Smith  <psmith@gnu.org>
162         * scripts/features/parallelism: Test that the jobserver is
163         properly managed when we have to re-exec the master instance of
164         make.
166 2006-03-17  Boris Kolpackov  <boris@kolpackov.net>
168         * scripts/features/statipattrules: Add tests for bug #16053.
170 2006-03-09  Paul Smith  <psmith@gnu.org>
172         * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts
173         with DOS drive letters.  Fixes Savannah bug #15947.
175         * test_driver.pl (run_each_test): Set the status properly even
176         when a test fails to execute.  Fixes Savannah bug #15942.
178         * scripts/functions/foreach: Use a different environment variable
179         other than PATH to avoid differences with Windows platforms.
180         Fixes Savannah bug #15938.
182 2006-03-05  Paul D. Smith  <psmith@gnu.org>
184         * run_make_tests.pl (set_more_defaults): Add CYGWIN_NT as a port
185         type W32.  Fixed Savannah bug #15937.
187         * scripts/features/default_names: Don't call error() when the test
188         fails.  Fixes Savannah bug #15941.
190 2006-02-17  Paul D. Smith  <psmith@gnu.org>
192         * scripts/features/targetvars: Test a complex construction which
193         guarantees that we have to merge variable lists of different
194         sizes.  Tests for Savannah bug #15757.
196 2006-02-15  Paul D. Smith  <psmith@gnu.org>
198         * scripts/functions/error: Make sure filename/lineno information
199         is related to where the error is expanded, not where it's set.
200         * scripts/functions/warning: Ditto.
201         * scripts/functions/foreach: Check for different error conditions.
202         * scripts/functions/word: Ditto.
203         * scripts/variables/negative: Test some variable reference failure
204         conditions.
205         * scripts/options/warn-undefined-variables: Test the
206         --warn-undefined-variables flag.
208 2006-02-09  Paul D. Smith  <psmith@gnu.org>
210         * run_make_tests.pl (set_more_defaults): Update valgrind support
211         for newer versions.
212         * test_driver.pl (toplevel): Skip all hidden files/directories (ones
213         beginning with ".").
215         * scripts/functions/andor: Tests for $(and ..) and $(or ...)
216         functions.
218 2006-02-08  Boris Kolpackov  <boris@kolpackov.net>
220         * scripts/features/parallelism: Add a test for bug #15641.
222 2006-02-06  Paul D. Smith  <psmith@gnu.org>
224         * scripts/options/dash-W: Add a test for bug #15341.
226 2006-01-03  Paul D. Smith  <psmith@gnu.org>
228         * scripts/variables/automatic: Add a test for bug #8154.
230         * README: Update to reflect the current state of the test suite.
232 2005-12-12  Paul D. Smith  <psmith@gnu.org>
234         * scripts/features/parallelism, scripts/functions/wildcard,
235         scripts/targets/FORCE, scripts/targets/PHONY,
236         scripts/targets/SILENT: Use the default setting for
237         $delete_command.  Fixes bug #15085.
239         * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file.
241 2005-12-11  Paul D. Smith  <psmith@gnu.org>
243         * scripts/misc/general4: Test implicit rules with '$' in the
244         prereq list & prereq patterns.
245         * scripts/features/se_implicit: Add in .SECONDEXPANSION settings.
247 2005-12-09  Boris Kolpackov  <boris@kolpackov.net>
249         * scripts/features/patternrules: Add a test for bug #13022.
251 2005-12-07  Boris Kolpackov  <boris@kolpackov.net>
253         * scripts/features/double_colon: Add a test for bug #14334.
255 2005-11-17  Boris Kolpackov  <boris@kolpackov.net>
257         * scripts/functions/flavor: Add a test for the flavor function.
259 2005-11-14  Boris Kolpackov  <boris@kolpackov.net>
261         * scripts/variables/INCLUDE_DIRS: Add a test for the .INCLUDE_DIRS
262         special variable.
264 2005-10-24  Paul D. Smith  <psmith@gnu.org>
266         * scripts/misc/general4: Test '$$' in prerequisites list.
267         * scripts/features/statipattrules: Rewrite to use run_make_test().
268         Add various static pattern info.
269         * scripts/features/se_statpat: Enable .SECONDEXPANSION target.
270         * scripts/features/se_explicit: Add tests for handling '$$' in
271         prerequisite lists with and without setting .SECONDEXPANSION.
272         * scripts/features/order_only: Convert to run_make_test().
273         * run_make_tests.pl (set_more_defaults): If we can't get the value
274         of $(MAKE) from make, then fatal immediately.
276 2005-08-31  Paul D. Smith  <psmith@gnu.org>
278         * run_make_tests.pl (get_this_pwd): Require the POSIX module (in
279         an eval to trap errors) and if it exists, use POSIX::getcwd to
280         find the working directory.  If it doesn't exist, go back to the
281         previous methods.  This tries to be more accurate on Windows
282         systems.
284 2005-08-29  Paul D. Smith  <psmith@gnu.org>
286         * scripts/functions/abspath: Add some text to the error messages
287         to get a better idea of what's wrong.  Make warnings instead of
288         errors.
290         * scripts/features/patspecific_vars: Don't use "test", which is
291         UNIX specific.  Print the values and let the test script match
292         them.
294 2005-08-25  Paul Smith  <psmith@gnu.org>
296         * scripts/variables/SHELL: Use a /./ prefix instead of //: the
297         former works better with non-UNIX environments.  Fixes Savannah
298         bug #14129.
300 2005-08-13  Boris Kolpackov  <boris@kolpackov.net>
302         * scripts/functions/wildcard: Wrap calls to $(wildcard ) with
303         $(sort) so that the resulting order is no longer filesystem-
304         dependant.
306 2005-08-10  Boris Kolpackov  <boris@kolpackov.net>
308         * scripts/features/statipattrules: Add a test for Savannah bug #13881.
310 2005-08-07  Paul D. Smith  <psmith@gnu.org>
312         * scripts/features/parallelism: Add a test for a bug reported by
313         Michael Matz (matz@suse.de) in which make exits without waiting
314         for all its children in some situations during parallel builds.
316 2005-07-08  Paul D. Smith  <psmith@gnu.org>
318         * test_driver.pl: Reset the environment to a clean value every
319         time before we invoke make.  I'm suspicious that the environment
320         isn't handled the same way in Windows as it is in UNIX, and some
321         variables are leaking out beyond the tests they are intended for.
322         Create an %extraENV hash tests can set to add more env. vars.
323         * tests/scripts/features/export: Change to use %extraENV.
324         * tests/scripts/functions/eval: Ditto.
325         * tests/scripts/functions/origin: Ditto.
326         * tests/scripts/options/dash-e: Ditto.
327         * tests/scripts/variables/SHELL: Ditto.
329 2005-06-27  Paul D. Smith  <psmith@gnu.org>
331         * scripts/options/dash-W: Use 'echo >>' instead of touch to update
332         files.
333         * scripts/features/reinvoke: Rewrite to be safer on systems with
334         subsecond timestamps.
335         * scripts/features/patternrules: False exits with different error
336         codes on different systems (for example, Linux => 1, Solaris => 255).
338         * scripts/options/dash-W: Set the timestamp to foo.x in the future,
339         to be sure it will be considered updated when it's remade.
341 2005-06-26  Paul D. Smith  <psmith@gnu.org>
343         * scripts/functions/shell: New test suite for the shell function.
345 2005-06-25  Paul D. Smith  <psmith@gnu.org>
347         * scripts/features/include: Test include/-include/sinclude with no
348         arguments.  Tests fix for Savannah bug #1761.
350         * scripts/misc/general3: Implement comprehensive testing of
351         backslash-newline behavior in command scripts: various types of
352         quoting, fast path / slow path, etc.
353         Tests fix for Savannah bug #1332.
355         * scripts/options/symlinks: Test symlinks to non-existent files.
356         Tests fix for Savannah bug #13280.
358         * scripts/misc/general3: Test semicolons in variable references.
359         Tests fix for Savannah bug #1454.
361         * scripts/variables/MAKE_RESTARTS: New file: test the
362         MAKE_RESTARTS variable.
363         * scripts/options/dash-B: Test re-exec doesn't loop infinitely.
364         Tests fix for Savannah bug #7566.
365         * scripts/options/dash-W: New file: test the -W flag, including
366         re-exec infinite looping.
368 2005-06-12  Paul D. Smith  <psmith@gnu.org>
370         * scripts/misc/close_stdout: Add a test for Savannah bug #1328.
371         This test only works on systems that have /dev/full (e.g., Linux).
373 2005-06-09  Paul D. Smith  <psmith@gnu.org>
375         * scripts/functions/foreach: Add a test for Savannah bug #11913.
377 2005-05-31  Boris Kolpackov  <boris@kolpackov.net>
379         * scripts/features/include: Add a test for Savannah bug #13216.
380         * scripts/features/patternrules: Add a test for Savannah bug #13218.
382 2005-05-13  Paul D. Smith  <psmith@gnu.org>
384         * scripts/features/conditionals: Add tests for the new if... else
385         if... endif syntax.
387 2005-05-03  Paul D. Smith  <psmith@gnu.org>
389         * scripts/variables/DEFAULT_GOAL: Rename DEFAULT_TARGET to
390         DEFAULT_GOAL.
392 2005-05-02  Paul D. Smith  <psmith@gnu.org>
394         * scripts/features/parallelism: Add a test for exporting recursive
395         variables containing $(shell ) calls.  Rewrite this script to use
396         run_make_test() everywhere.
398 2005-04-07  Paul D. Smith  <psmith@gnu.org>
400         * scripts/targets/SECONDARY: Add a test for Savannah bug #12331.
402 2005-03-15  Boris Kolpackov  <boris@kolpackov.net>
404         * scripts/variables/automatic: Add a test for Savannah bug #12320.
406 2005-03-10  Boris Kolpackov  <boris@kolpackov.net>
408         * scripts/features/patternrules: Add a test for Savannah bug #12267.
410 2005-03-09  Boris Kolpackov  <boris@kolpackov.net>
412         * scripts/variables/DEFAULT_TARGET: Add a test for Savannah
413         bug #12266.
415 2005-03-04  Boris Kolpackov  <boris@kolpackov.net>
417         * scripts/features/patternrules: Add a test for Savannah bug #12202.
419 2005-03-03  Boris Kolpackov  <boris@kolpackov.net>
421         * scripts/features/se_implicit: Add a test for stem
422         termination bug. Add a test for stem triple-expansion bug.
424         * scripts/features/se_statpat: Add a test for stem
425         triple-expansion bug.
427         * scripts/features/statipattrules: Change test #4 to reflect
428         new way empty prerequisite list is handled.
431 2005-03-01  Boris Kolpackov  <boris@kolpackov.net>
433         * scripts/features/statipattrules: Add a test for
434         Savannah bug #12180.
436 2005-02-28  Paul D. Smith  <psmith@gnu.org>
438         * scripts/options/dash-q: Add a test for Savannah bug # 7144.
440         * scripts/options/symlinks: New file to test checking of symlink
441         timestamps.  Can't use filename dash-L because it conflicts with
442         dash-l on case-insensitive filesystems.
444         * scripts/variables/MAKEFILE_LIST, scripts/variables/MFILE_LIST:
445         Rename MAKEFILE_LIST test to MFILE_LIST, for systems that need 8.3
446         unique filenames.
448 2005-02-28  Boris Kolpackov  <boris@kolpackov.net>
450         * scripts/variables/DEFAULT_TARGET: Test the .DEFAULT_TARGET
451         special variable.
453 2005-02-27  Boris Kolpackov  <boris@kolpackov.net>
455         * scripts/features/se_explicit: Test the second expansion in
456         explicit rules.
457         * scripts/features/se_implicit: Test the second expansion in
458         implicit rules.
459         * scripts/features/se_statpat: Test the second expansion in
460         static pattern rules.
461         * scripts/variables/automatic: Fix to work with the second
462         expansion.
464         * scripts/misc/general4: Add a test for bug #12091.
466 2005-02-27  Paul D. Smith  <psmith@gnu.org>
468         * scripts/functions/eval: Check that eval of targets within
469         command scripts fails.  See Savannah bug # 12124.
471 2005-02-26  Paul D. Smith  <psmith@gnu.org>
473         * test_driver.pl (compare_output): If a basic comparison of the
474         log and answer doesn't match, try harder: change all backslashes
475         to slashes and all CRLF to LF.  This helps on DOS/Windows systems.
477 2005-02-09  Paul D. Smith  <psmith@gnu.org>
479         * scripts/features/recursion: Test command line variable settings:
480         only one instance of a given variable should be provided.
482 2004-11-30  Boris Kolpackov  <boris@kolpackov.net>
484         * tests/scripts/functions/abspath: New file: test `abspath'
485         built-in function.
487         * tests/scripts/functions/realpath: New file: test `realpath'
488         built-in function.
490 2004-11-28  Paul D. Smith  <psmith@gnu.org>
492         * scripts/options/dash-C [WINDOWS32]: Add a test for bug #10252;
493         this doesn't really test anything useful in UNIX but...
495         * scripts/variables/SHELL: New file: test proper handling of SHELL
496         according to POSIX rules.  Fixes bug #1276.
498 2004-10-21  Boris Kolpackov  <boris@kolpackov.net>
500         * scripts/functions/word: Test $(firstword ) and $(lastword ).
502 2004-10-05  Boris Kolpackov  <boris@kolpackov.net>
504         * scripts/features/patspecific_vars: Test simple/recursive
505         variable expansion.
507 2004-09-28  Boris Kolpackov  <boris@kolpackov.net>
509         * scripts/features/include: Test dontcare flag inheritance
510         when rebuilding makefiles.
512 2004-09-27  Boris Kolpackov  <boris@kolpackov.net>
514         * scripts/features/patspecific_vars: Test exported variables.
516 2004-09-22  Paul D. Smith  <psmith@gnu.org>
518         * run_make_tests.pl (run_make_test): Don't add newlines to the
519         makestring or answer if they are completely empty.
521         * scripts/features/patternrules: Rename from implicit_prereq_eval.
523         * scripts/test_template: Rework the template.
525 2004-09-21  Boris Kolpackov  <boris@kolpackov.net>
527         * run_make_tests.pl: Change `#!/usr/local/bin/perl' to be
528         `#!/usr/bin/env perl'.
530         * scripts/features/implicit_prereq_eval: Test implicit rule
531         prerequisite evaluation code.
533 2004-09-21  Paul D. Smith  <psmith@gnu.org>
535         * run_make_tests.pl (run_make_test): Enhance to allow the make
536         string to be undef: in that case it reuses the previous make
537         string.  Allows multiple tests on the same makefile.
539         * scripts/variables/flavors: Add some tests for prefix characters
540         interacting with define/endef variables.
542 2004-09-20  Paul D. Smith  <psmith@gnu.org>
544         * scripts/functions/substitution: Rewrite to use run_make_test()
545         interface, and add test for substitution failures reported by
546         Markus Mauhart <qwe123@chello.at>.
548 2004-03-22  Paul D. Smith  <psmith@gnu.org>
550         * test_driver.pl (run_each_test, toplevel, compare_output): Change
551         to track both the testing categories _AND_ the number of
552         individual tests, and report both sets of numbers.
554 2004-02-21  Paul D. Smith  <psmith@gnu.org>
556         * scripts/functions/origin: Set our own environment variable
557         rather than relying on $HOME.
559 2004-01-21  Paul D. Smith  <psmith@gnu.org>
561         * scripts/features/conditionals: Test arguments to ifn?def which
562         contain whitespace (such as a function that is evaluated).  Bug
563         #7257.
565 2004-01-07  Paul D. Smith  <psmith@gnu.org>
567         * scripts/features/order_only: Test order-only prerequisites in
568         pattern rules (patch #2349).
570 2003-11-02  Paul D. Smith  <psmith@gnu.org>
572         * scripts/functions/if: Test if on conditionals with trailing
573         whitespace--bug #5798.
575         * scripts/functions/eval: Test eval in a non-file context--bug #6195.
577 2003-04-19  Paul D. Smith  <psmith@gnu.org>
579         * scripts/features/patspecific_vars: Test multiple patterns
580         matching the same target--Bug #1405.
582 2003-04-09  Paul D. Smith  <psmith@gnu.org>
584         * run_make_tests.pl (set_more_defaults): A new $port_type of
585         'OS/2' for (surprise!) OS/2.  Also choose a wait time of 2 seconds
586         for OS/2.
588 2003-03-28  Paul D. Smith  <psmith@gnu.org>
590         * scripts/targets/SECONDARY: Test the "global" .SECONDARY (with
591         not prerequisites)--Bug #2515.
593 2003-01-30  Paul D. Smith  <psmith@gnu.org>
595         * scripts/features/targetvars: Test very long target-specific
596         variable definition lines (longer than the default make buffer
597         length).  Tests patch # 1022.
599         * scripts/functions/eval: Test very recursive $(eval ...) calls
600         with simple variable expansion (bug #2238).
602         * scripts/functions/word: Test error handling for word and
603         wordlist functions (bug #2407).
605 2003-01-22  Paul D. Smith  <psmith@gnu.org>
607         * scripts/functions/call: Test recursive argument masking (bug
608         #1744).
610 2002-10-25  Paul D. Smith  <psmith@gnu.org>
612         * scripts/functions/eval: Test using $(eval ...) inside
613         conditionals (Bug #1516).
615 2002-10-14  Paul D. Smith  <psmith@gnu.org>
617         * scripts/options/dash-t: Add a test for handling -t on targets
618         with no commands (Bug #1418).
620 2002-10-13  Paul D. Smith  <psmith@gnu.org>
622         * scripts/features/targetvars: Add a test for exporting
623         target-specific vars (Bug #1391).
625 2002-10-05  Paul D. Smith  <psmith@gnu.org>
627         * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D},
628         and $${@F}.
630 2002-09-23  Paul D. Smith  <psmith@gnu.org>
632         * scripts/features/escape: Test handling of escaped comment
633         characters in targets and prerequisites.
635 2002-09-18  Paul D. Smith  <psmith@gnu.org>
637         * scripts/features/export: Test export/unexport of multiple
638         variables in a single command.
640 2002-09-17  Paul D. Smith  <psmith@gnu.org>
642         * scripts/features/targetvars: Tests for Bug #940: test
643         target-specific and pattern-specific variables in conjunction with
644         double-colon targets.
646 2002-09-10  Paul D. Smith  <psmith@gnu.org>
648         * test_driver.pl (compare_output): Match the new format for time
649         skew error messages.
651         * scripts/features/export: Created.  Add tests for export/unexport
652         capabilities, including exporting/unexporting expanded variables.
654         * scripts/features/conditionals: Add a test for expanded variables
655         in ifdef conditionals.
657 2002-09-04  Paul D. Smith  <psmith@gnu.org>
659         * scripts/features/reinvoke: Change touch/sleep combos to utouch
660         invocations.
661         * scripts/features/vpathgpath: Ditto.
662         * scripts/features/vpathplus: Ditto.
663         * scripts/options/dash-n: Ditto.
664         * scripts/targets/INTERMEDIATE: Ditto.
665         * scripts/targets/SECONDARY: Ditto.
667         * scripts/options/dash-t: Added a test for the -t bug fixed by
668         Henning Makholm.  This test was also contributed by Henning.
670         * scripts/misc/general4: Add a test suite for obscure algorithmic
671         features of make.  First test: make sure creation subdirectories
672         as prerequisites of targets works properly.
674         * scripts/misc/version: Remove this bogus test.
676 2002-08-07  Paul D. Smith  <psmith@gnu.org>
678         * scripts/misc/general3: Add a test for makefiles that don't end
679         in newlines.
681         * scripts/variables/special: Create tests for the special
682         variables (.VARIABLES and .TARGETS).  Comment out .TARGETS test
683         for now as it's not yet supported.
685 2002-08-01  Paul D. Smith  <psmith@gnu.org>
687         * scripts/options/dash-B: Add a test for the new -B option.
689 2002-07-11  Paul D. Smith  <psmith@gnu.org>
691         * run_make_tests.pl (valid_option): Add support for Valgrind.  Use
692         -valgrind option to the test suite.
693         (set_more_defaults): Set up the file descriptor to capture
694         Valgrind output.  We have to unset its close-on-exec flag; we
695         hardcode the value for F_SETFD (2) rather than load it; hopefully
696         this will help us avoid breaking the Windows/DOS test suite.
698 2002-07-10  Paul D. Smith  <psmith@gnu.org>
700         * scripts/variables/automatic: Add some tests for $$@, $$(@D), and
701         $$(@F).
703         * test_driver.pl (utouch): Create a new function that creates a
704         file with a specific timestamp offset.  Use of this function will
705         let us avoid lots of annoying sleep() invocations in the tests
706         just to get proper timestamping, which will make the tests run a
707         lot faster.  So far it's only used in the automatic test suite.
709 2002-07-09  Paul D. Smith  <psmith@gnu.org>
711         * scripts/variables/automatic: Create a test for automatic variables.
713 2002-07-08  Paul D. Smith  <psmith@gnu.org>
715         * scripts/features/order_only: Test new order-only prerequisites.
717 2002-07-07  Paul D. Smith  <psmith@gnu.org>
719         * scripts/functions/eval: Test new function.
720         * scripts/functions/value: Test new function.
721         * scripts/variables/MAKEFILE_LIST: Test new variable.
723 2002-04-28  Paul D. Smith  <psmith@gnu.org>
725         * scripts/functions/call: New test: transitive closure
726         implementation using $(call ...) to test variable recursion.
728 2002-04-21  Paul D. Smith  <psmith@gnu.org>
730         * test_driver.pl (compare_dir_tree): Ignore CVS and RCS
731         directories in the script directories.
733 2001-05-02  Paul D. Smith  <psmith@gnu.org>
735         * scripts/variables/flavors: Test define/endef scripts where only
736         one of the command lines is quiet.
738 2000-06-22  Paul D. Smith  <psmith@gnu.org>
740         * scripts/options/dash-q: New file; test the -q option.  Includes
741         a test for PR/1780.
743 2000-06-21  Paul D. Smith  <psmith@gnu.org>
745         * scripts/features/targetvars: Added a test for PR/1709: allowing
746         semicolons in target-specific variable values.
748 2000-06-19  Paul D. Smith  <psmith@gnu.org>
750         * scripts/functions/addsuffix: Test for an empty final argument.
751         Actually this bug might have happened for any function, but this
752         one was handy.
754 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
756         * scripts/options/general: If parallel jobs are not supported,
757         expect a warning message from Make.
759 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
761         * scripts/options/general: Don't try -jN with N != 1 if parallel
762         jobs are not supported.
764 2000-05-24  Paul D. Smith  <psmith@gnu.org>
766         * scripts/options/general: Test general option processing (PR/1716).
768 2000-04-11  Paul D. Smith  <psmith@gnu.org>
770         * scripts/functions/strip: Test empty value to strip (PR/1689).
772 2000-04-08  Eli Zaretskii  <eliz@is.elta.co.il>
774         * scripts/features/reinvoke: Sleep before updating the target
775         files in the first test, to ensure its time stamp really gets
776         newer; otherwise Make might re-exec more than once.
778 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
780         * scripts/features/double_colon: Don't run the parallel tests if
781         parallel jobs aren't supported.
783 2000-04-04  Paul D. Smith  <psmith@gnu.org>
785         * scripts/functions/word: wordlist doesn't swap arguments anymore.
787 2000-03-27  Paul D. Smith  <psmith@gnu.org>
789         * scripts/features/statipattrules: Test that static pattern rules
790         whose prerequisite patterns resolve to empty strings throw an
791         error (instead of dumping core).  Fixes PR/1670.
793         * scripts/features/reinvoke: Make more robust by touching "b"
794         first, to ensure it's not newer than "a".
795         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
796         * scripts/options/dash-n: Ditto.
798         * scripts/functions/call: Whoops.  The fix to PR/1527 caused
799         recursive invocations of $(call ...) to break.  I can't come up
800         with any way to get both working at the same time, so I backed out
801         the fix to 1527 and added a test case for recursive calls.  This
802         also tests the fix for PR/1610.
804         * scripts/features/double_colon: Test that circular dependencies
805         in double-colon rule sets are detected correctly (PR/1671).
807 2000-03-26  Paul D. Smith  <psmith@gnu.org>
809         * scripts/targets/INTERMEDIATE: Test that make doesn't remove
810         .INTERMEDIATE files when given on the command line (PR/1669).
812 2000-03-08  Paul D. Smith  <psmith@gnu.org>
814         * scripts/options/dash-k: Add a test for error detection by
815         multiple targets depending on the same prerequisite with -k.
816         For PR/1634.
818 2000-02-07  Paul D. Smith  <psmith@gnu.org>
820         * scripts/features/escape: Add a test for backslash-escaped spaces
821         in a target name (PR/1586).
823 2000-02-04  Paul D. Smith  <psmith@gnu.org>
825         * scripts/features/patspecific_vars: Add a test for pattern-specific
826         target variables inherited from the parent target (PR/1407).
828 2000-02-02  Paul D. Smith  <psmith@gnu.org>
830         * run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
831         to make sure sorting order, etc. is predictable.
832         Reported by Andreas Jaeger <aj@suse.de>.
834         * run_make_tests.pl (set_more_defaults): Set the $wtime variable
835         depending on the OS.  Eli Zaretskii <eliz@is.elta.co.il> reports
836         this seems to need to be *4* on DOS/Windows, not just 2.  Keep it
837         1 for other systems.
838         * scripts/features/vpathplus (touchfiles): Use the $wtime value
839         instead of hardcoding 2.
840         * scripts/targets/SECONDARY: Ditto.
841         * scripts/targets/INTERMEDIATE: Ditto.
843 2000-01-27  Paul D. Smith  <psmith@gnu.org>
845         * test_driver.pl (toplevel): Don't try to run test scripts which
846         are really directories.
848 2000-01-23  Paul D. Smith  <psmith@gnu.org>
850         * scripts/features/include: Remove a check; the fix caused more
851         problems than the error, so I removed it and removed the test for
852         it.
854 2000-01-11  Paul D. Smith  <psmith@gnu.org>
856         * scripts/functions/call: Add a test for PR/1517 and PR/1527: make
857         sure $(call ...) doesn't eval its arguments and that you can
858         invoke foreach from it without looping forever.
860 1999-12-15  Paul D. Smith  <psmith@gnu.org>
862         * scripts/targets/INTERMEDIATE: Add a test for PR/1423: make sure
863         .INTERMEDIATE settings on files don't disable them as implicit
864         intermediate possibilities.
866 1999-12-01  Paul D. Smith  <psmith@gnu.org>
868         * scripts/features/double_colon: Add a test for PR/1476: Try
869         double-colon rules as non-goal targets and during parallel builds
870         to make sure they're handled serially.
872 1999-11-17  Paul D. Smith  <psmith@gnu.org>
874         * scripts/functions/if: Add a test for PR/1429: put some text
875         after an if-statement to make sure it works.
877         * scripts/features/targetvars: Add a test for PR/1380: handling +=
878         in target-specific variable definitions correctly.
880 1999-10-15  Paul D. Smith  <psmith@gnu.org>
882         * scripts/variables/MAKEFILES: This was really broken: it didn't
883         test anything at all, really.  Rewrote it, plus added a test for
884         PR/1394.
886 1999-10-13  Paul D. Smith  <psmith@gnu.org>
888         * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't
889         behave properly when used with recursive targets".
891 1999-10-08  Paul D. Smith  <psmith@gnu.org>
893         * scripts/features/targetvars: Add a check for PR/1378:
894         "Target-specific vars don't inherit correctly"
896 1999-09-29  Paul D. Smith  <psmith@gnu.org>
898         * test_driver.pl (get_osname): Change $fancy_file_names to
899         $short_filenames and reverse the logic.
900         (run_each_test): Change test of non-existent $port_host to use
901         $short_filenames--problem reported by Eli Zaretskii.
903 1999-09-23  Paul D. Smith  <psmith@gnu.org>
905         * scripts/features/parallelism: Add a check to ensure that the
906         jobserver works when we re-invoke.  Also cleaned up the tests a
907         little, reducing the number of rules we use so the test won't need
908         as many "sleep" commands.
910 1999-09-16  Paul D. Smith  <psmith@gnu.org>
912         * scripts/features/reinvoke: Remove invocations of "touch" in
913         makefiles.  See the comments on the touch function rewrite below.
914         Note that UNIX touch behaves the same way if the file already
915         exists: it sets the time to the _local_ time.  We don't want
916         this.  This is probably a good tip for makefile writers in
917         general, actually... where practical.
918         * scripts/options/dash-l: Ditto.
919         * scripts/options/dash-n: Ditto.
921         * test_driver.pl (run_each_test): In retrospect, I don't like the
922         .lN/.bN/.dN postfix required by DOS.  So, for non-DOS systems I
923         changed it back to use .log, .base, and .diff.
925         * run_make_tests.pl (set_more_defaults): Move the check for the
926         make pathname to here from set_defaults (that's too early since it
927         happens before the command line processing).
928         Create a new variable $port_type, calculated from $osname, to
929         specify what kind of system we're running on.  We should integrate
930         the VOS stuff here, too.
931         (valid_option): Comment out the workdir/-work stuff so people
932         won't be fooled into thinking it works... someone needs to fix
933         this, though!
935         * scripts/functions/origin: Use $port_type instead of $osname.
936         * scripts/functions/foreach: Ditto.
937         * scripts/features/default_names: Ditto.
939 1999-09-15  Paul D. Smith  <psmith@gnu.org>
941         * test_driver.pl (touch): Rewrite this function.  Previously it
942         used to use utime() to hard-set the time based on the current
943         local clock, or, if the file didn't exist, it merely created it.
944         This mirrors exactly what real UNIX touch does, but it fails badly
945         on networked filesystems where the FS server clock is skewed from
946         the local clock: normally modifying a file causes it to get a mod
947         time based on the _server's_ clock.  Hard-setting it based on the
948         _local_ clock causes gratuitous errors and makes the tests
949         unreliable except on local filesystems.  The new function will
950         simply modify the file, allowing the filesystem to set the mod
951         time as it sees fit.
953         * scripts/features/parallelism: The second test output could
954         change depending on how fast some scripts completed; use "sleep"
955         to force the order we want.
957         * test_driver.pl (toplevel): A bug in Perl 5.000 to Perl 5.004
958         means that "%ENV = ();" doesn't do the right thing.  This worked
959         in Perl 4 and was fixed in Perl 5.004_01, but use a loop to delete
960         the environment rather than require specific versions.
962         * run_make_tests.pl (set_more_defaults): Don't use Perl 5 s///
963         modifier "s", so the tests will run with Perl 4.
964         (set_more_defaults): Set $pure_log to empty if there's no -logfile
965         option in PURIFYOPTIONS.
966         (setup_for_test): Don't remove any logs unless $pure_log is set.
968 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
970         * scripts/features/reinvoke: Put the SHELL definition in the right
971         test makefile.
973 1999-09-15  Paul D. Smith  <psmith@gnu.org>
975         ChangeLog file for the test suite created.
978 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
979 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
980 This file is part of GNU Make.
982 GNU Make is free software; you can redistribute it and/or modify it under the
983 terms of the GNU General Public License as published by the Free Software
984 Foundation; either version 3 of the License, or (at your option) any later
985 version.
987 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
988 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
989 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
991 You should have received a copy of the GNU General Public License along with
992 this program.  If not, see <http://www.gnu.org/licenses/>.