Add the beginning of the .ONESHELL special feature.
[make.git] / tests / ChangeLog
blob66682acf42aef31f7bf5997bb3c9acf8bfed4132
1 2010-07-12  Paul Smith  <psmith@gnu.org>
3         * test_driver.pl: Add a new $perl_name containing the path to Perl.
4         * run_make_tests.pl (run_make_test): Replace the special string
5         #PERL# in a makefile etc. with the path the Perl executable so
6         makefiles can use it.
8         * scripts/targets/ONESHELL: Add a new set of regression tests for
9         the .ONESHELL feature.
11 2010-07-06  Paul Smith  <psmith@gnu.org>
13         * scripts/variables/SHELL: Test the new .SHELLFLAGS variable.
15         * scripts/targets/POSIX: New file.  Test the .POSIX special target.
16         Verify that enabling .POSIX changes the shell flags to set -e.
18 2010-07-01  Paul Smith  <psmith@gnu.org>
20         * scripts/features/recursion: Add a space to separate command-line
21         args.  Fixes Savannah bug #29968.
23 2009-11-12  Boris Kolpackov  <boris@codesynthesis.com>
25         * scripts/features/vpath3: Test for the new library search
26         behavior.
28 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
30         * scripts/features/se_explicit: Enable the test for now fixed
31         Savannah bug 25780.
33 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
35         * scripts/variables/undefine: Tests for the new undefine feature.
37 2009-10-03  Paul Smith  <psmith@gnu.org>
39         * scripts/features/parallelism: Test for open Savannah bug #26846.
41         * scripts/variables/MAKE: Rewrite for new run_make_test() format.
43         * scripts/variables/MAKEFLAGS: Created.
44         Add test for Savannah bug #2216 (still open).
46         * scripts/features/include: Test for Savannah bug #102 (still open).
48 2009-09-30  Boris Kolpackov  <boris@codesynthesis.com>
50         * scripts/features/include: Add diagnostics issuing tests for
51         cases where targets have been updated and failed with the
52         dontcare flag. Savannah bugs #15110, #25493, #12686, #17740.
54 2009-09-28  Paul Smith  <psmith@gnu.org>
56         * scripts/functions/shell: Add regression test for Savannah bug
57         #20513 (still open).
59         * scripts/features/se_explicit: Add regression tests for Savannah
60         bug #25780 (still open).
62         * run_make_tests.pl (valid_option): Add a new flag, -all([-_]?tests)?
63         that runs tests we know will fail.  This allows us to add
64         regression tests to the test suite for bugs that haven't been
65         fixed yet.
67 2009-09-28  Boris Kolpackov  <boris@codesynthesis.com>
69         * scripts/features/patspecific_vars: Add a test for the shortest
70         stem first order.
72         * scripts/features/patternrules: Add a test for the shortest stem
73         first order.
75 2009-09-24  Paul Smith  <psmith@gnu.org>
77         * scripts/features/se_implicit: Add a test for order-only
78         secondary expansion prerequisites.
80 2009-09-23  Paul Smith  <psmith@gnu.org>
82         * scripts/features/patternrules: Test that we can remove pattern
83         rules, both single and multiple prerequisites.  Savannah bug #18622.
85         * scripts/features/echoing: Rework for run_make_test().
87 2009-06-14  Paul Smith  <psmith@gnu.org>
89         * scripts/features/vpath: Verify we don't get bogus circular
90         dependency warnings if we choose a different file via vpath during
91         update.  Savannah bug #13529.
93 2009-06-13  Paul Smith  <psmith@gnu.org>
95         * scripts/variables/MAKEFILES: Verify that MAKEFILES included
96         files (and files included by them) don't set the default goal.
97         Savannah bug #13401.
99         * scripts/functions/wildcard: Test that wildcards with
100         non-existent glob matchers return empty.
102 2009-06-09  Paul Smith  <psmith@gnu.org>
104         * scripts/options/dash-B: Test the $? works correctly with -B.
105         Savannah bug #17825.
107         * scripts/features/patternrules: Test that dependencies of
108         "also_make" targets are created properly.  Savannah bug #19108.
110         * test_driver.pl (compare_output): Create a "run" file for failed
111         tests containing the command that was run.
112         (get_runfile): New function.
114         * run_make_tests.pl (valid_option): Enhanced support for valgrind:
115         allow memcheck and massif tools.
117         * scripts/features/patternrules: Have to comment out a line in the
118         first test due to backing out a change that broke the implicit
119         rule search algorithm.  Savannah bug #17752.
120         * scripts/misc/general4: Remove a test that is redundant with
121         patternrules.
123         * scripts/features/parallelism: Add a test for re-exec with
124         jobserver master override.  Savannah bug #18124.
126 2009-06-08  Paul Smith  <psmith@gnu.org>
128         * scripts/features/targetvars: Add a test for continued target
129         vars after a semicolon.  Savannah bug #17521.
131 2009-06-07  Paul Smith  <psmith@gnu.org>
133         * scripts/features/se_explicit: Make sure we catch defining
134         prereqs during snap_deps().  Savannah bug #24622.
136         * scripts/variables/automatic: Check prereq ordering when the
137         target with the recipe has no prereqs.  Savannah bug #21198.
139         * scripts/variables/LIBPATTERNS: Add a new set of test for
140         $(.LIBPATTERNS) (previously untested!)
142 2009-06-04  Paul Smith  <psmith@gnu.org>
144         * scripts/variables/SHELL: The export target-specific SHELL test
145         has an incorrect known-good-value.
147         * scripts/misc/general4: Check for whitespace (ffeed, vtab, etc.)
149         * scripts/features/se_explicit: Add tests for Savannah bug #24588.
151 2009-05-31  Paul Smith  <psmith@gnu.org>
153         * scripts/variables/DEFAULT_GOAL: Add tests for Savannah bug #25697.
155         * scripts/features/targetvars: Add tests of overrides for Savannah
156         bug #26207.
157         * scripts/features/patspecific_vars: Ditto.
159         * scripts/features/patternrules: Add a test for Savannah bug #26593.
161 2009-05-30  Paul Smith  <psmith@gnu.org>
163         * scripts/variables/flavors: Update with new variable flavor tests.
164         * scripts/variables/define: Create a new set of tests for
165         define/endef and move those aspects of the flavors suite here.
167 2009-05-25  Paul Smith  <psmith@gnu.org>
169         * scripts/features/targetvars: Ditto.
171         * scripts/features/export: Test new variable parsing abilities.
173 2009-02-23  Ramon Garcia  <ramon.garcia.f@gmail.com>
175         * scripts/variables/private: Create a new suite of tests for 'private'.
177 2007-11-04  Paul Smith  <psmith@gnu.org>
179         * scripts/functions/eval: Update error message for command -> recipe.
181         * test_driver.pl (compare_output): Allow the answer to be a regex,
182         if surrounded by '/'.
183         * scripts/misc/close_stdout: Use a regex for the answer, since
184         sometimes the error will have a description and sometimes it won't.
186 2007-09-10  Paul Smith  <psmith@gnu.org>
188         * scripts/variables/special: Add tests for .RECIPEPREFIX variable.
190 2007-08-15  Paul Smith  <psmith@gnu.org>
192         These test cases were contributed by
193         Icarus Sparry <savannah@icarus.freeuk.com> and J. David Bryan for
194         Savannah bugs #3330 and #15919.
196         * scripts/targets/SECONDARY: Add tests for Savannah bugs 3330 and
197         15919.
199         * scripts/features/parallelism: Add tests for wrong answer/hang
200         combining INTERMEDIATE, order-only prereqs, and parallelism.
201         See Savannah bugs 3330 and 15919.
203 2007-07-13  Paul Smith  <psmith@gnu.org>
205         Install a timeout so tests can never loop infinitely.
206         Original idea and patch for a single-test version provided by
207         Icarus Sparry <savannah@icarus.freeuk.com>
209         * test_driver.pl (_run_command): New function: this is called by
210         other functions to actually run a command.  Before we run it,
211         install a SIGALRM handler and set up a timer to go off in the
212         future (default is 5s; this can be overridden by individual tests).
213         (run_command): Call it.
214         (run_command_with_output): Call it.
216         * run_make_tests.pl (run_make_with_options): Override the default
217         timeout if the caller requests it.
218         (run_make_test): Pass any timeout override to run_make_with_options.
220         * scripts/features/parallelism: Increase the timeout for long tests.
221         * scripts/options/dash-l: Ditto.
223 2006-10-01  Paul Smith  <psmith@paulandlesley.org>
225         * run_make_tests.pl (set_more_defaults): Remove setting of LANG in
226         ENV here.  This doesn't always work.
227         * test_driver.pl (toplevel): Set LC_ALL to 'C' in the make
228         environment.  Fixes Savannah bug #16698.
230 2006-09-30  Paul Smith  <psmith@paulandlesley.org>
232         * scripts/variables/automatic: Add back the test for bug #8154.
234 2006-04-01  Paul D. Smith  <psmith@gnu.org>
236         * scripts/functions/realpath: Don't run tests with multiple
237         initial slashes on Windows: those paths mean something different.
239 2006-03-19  Paul D. Smith  <psmith@gnu.org>
241         * scripts/features/parallelism: Test that the jobserver is
242         properly managed when we have to re-exec the master instance of
243         make.
245 2006-03-17  Boris Kolpackov  <boris@kolpackov.net>
247         * scripts/features/statipattrules: Add tests for bug #16053.
249 2006-03-09  Paul Smith  <psmith@gnu.org>
251         * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts
252         with DOS drive letters.  Fixes Savannah bug #15947.
254         * test_driver.pl (run_each_test): Set the status properly even
255         when a test fails to execute.  Fixes Savannah bug #15942.
257         * scripts/functions/foreach: Use a different environment variable
258         other than PATH to avoid differences with Windows platforms.
259         Fixes Savannah bug #15938.
261 2006-03-05  Paul D. Smith  <psmith@gnu.org>
263         * run_make_tests.pl (set_more_defaults): Add CYGWIN_NT as a port
264         type W32.  Fixed Savannah bug #15937.
266         * scripts/features/default_names: Don't call error() when the test
267         fails.  Fixes Savannah bug #15941.
269 2006-02-17  Paul D. Smith  <psmith@gnu.org>
271         * scripts/features/targetvars: Test a complex construction which
272         guarantees that we have to merge variable lists of different
273         sizes.  Tests for Savannah bug #15757.
275 2006-02-15  Paul D. Smith  <psmith@gnu.org>
277         * scripts/functions/error: Make sure filename/lineno information
278         is related to where the error is expanded, not where it's set.
279         * scripts/functions/warning: Ditto.
280         * scripts/functions/foreach: Check for different error conditions.
281         * scripts/functions/word: Ditto.
282         * scripts/variables/negative: Test some variable reference failure
283         conditions.
284         * scripts/options/warn-undefined-variables: Test the
285         --warn-undefined-variables flag.
287 2006-02-09  Paul D. Smith  <psmith@gnu.org>
289         * run_make_tests.pl (set_more_defaults): Update valgrind support
290         for newer versions.
291         * test_driver.pl (toplevel): Skip all hidden files/directories (ones
292         beginning with ".").
294         * scripts/functions/andor: Tests for $(and ..) and $(or ...)
295         functions.
297 2006-02-08  Boris Kolpackov  <boris@kolpackov.net>
299         * scripts/features/parallelism: Add a test for bug #15641.
301 2006-02-06  Paul D. Smith  <psmith@gnu.org>
303         * scripts/options/dash-W: Add a test for bug #15341.
305 2006-01-03  Paul D. Smith  <psmith@gnu.org>
307         * scripts/variables/automatic: Add a test for bug #8154.
309         * README: Update to reflect the current state of the test suite.
311 2005-12-12  Paul D. Smith  <psmith@gnu.org>
313         * scripts/features/parallelism, scripts/functions/wildcard,
314         scripts/targets/FORCE, scripts/targets/PHONY,
315         scripts/targets/SILENT: Use the default setting for
316         $delete_command.  Fixes bug #15085.
318         * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file.
320 2005-12-11  Paul D. Smith  <psmith@gnu.org>
322         * scripts/misc/general4: Test implicit rules with '$' in the
323         prereq list & prereq patterns.
324         * scripts/features/se_implicit: Add in .SECONDEXPANSION settings.
326 2005-12-09  Boris Kolpackov  <boris@kolpackov.net>
328         * scripts/features/patternrules: Add a test for bug #13022.
330 2005-12-07  Boris Kolpackov  <boris@kolpackov.net>
332         * scripts/features/double_colon: Add a test for bug #14334.
334 2005-11-17  Boris Kolpackov  <boris@kolpackov.net>
336         * scripts/functions/flavor: Add a test for the flavor function.
338 2005-11-14  Boris Kolpackov  <boris@kolpackov.net>
340         * scripts/variables/INCLUDE_DIRS: Add a test for the .INCLUDE_DIRS
341         special variable.
343 2005-10-24  Paul D. Smith  <psmith@gnu.org>
345         * scripts/misc/general4: Test '$$' in prerequisites list.
346         * scripts/features/statipattrules: Rewrite to use run_make_test().
347         Add various static pattern info.
348         * scripts/features/se_statpat: Enable .SECONDEXPANSION target.
349         * scripts/features/se_explicit: Add tests for handling '$$' in
350         prerequisite lists with and without setting .SECONDEXPANSION.
351         * scripts/features/order_only: Convert to run_make_test().
352         * run_make_tests.pl (set_more_defaults): If we can't get the value
353         of $(MAKE) from make, then fatal immediately.
355 2005-08-31  Paul D. Smith  <psmith@gnu.org>
357         * run_make_tests.pl (get_this_pwd): Require the POSIX module (in
358         an eval to trap errors) and if it exists, use POSIX::getcwd to
359         find the working directory.  If it doesn't exist, go back to the
360         previous methods.  This tries to be more accurate on Windows
361         systems.
363 2005-08-29  Paul D. Smith  <psmith@gnu.org>
365         * scripts/functions/abspath: Add some text to the error messages
366         to get a better idea of what's wrong.  Make warnings instead of
367         errors.
369         * scripts/features/patspecific_vars: Don't use "test", which is
370         UNIX specific.  Print the values and let the test script match
371         them.
373 2005-08-25  Paul Smith  <psmith@gnu.org>
375         * scripts/variables/SHELL: Use a /./ prefix instead of //: the
376         former works better with non-UNIX environments.  Fixes Savannah
377         bug #14129.
379 2005-08-13  Boris Kolpackov  <boris@kolpackov.net>
381         * scripts/functions/wildcard: Wrap calls to $(wildcard ) with
382         $(sort) so that the resulting order is no longer filesystem-
383         dependant.
385 2005-08-10  Boris Kolpackov  <boris@kolpackov.net>
387         * scripts/features/statipattrules: Add a test for Savannah bug #13881.
389 2005-08-07  Paul D. Smith  <psmith@gnu.org>
391         * scripts/features/parallelism: Add a test for a bug reported by
392         Michael Matz (matz@suse.de) in which make exits without waiting
393         for all its children in some situations during parallel builds.
395 2005-07-08  Paul D. Smith  <psmith@gnu.org>
397         * test_driver.pl: Reset the environment to a clean value every
398         time before we invoke make.  I'm suspicious that the environment
399         isn't handled the same way in Windows as it is in UNIX, and some
400         variables are leaking out beyond the tests they are intended for.
401         Create an %extraENV hash tests can set to add more env. vars.
402         * tests/scripts/features/export: Change to use %extraENV.
403         * tests/scripts/functions/eval: Ditto.
404         * tests/scripts/functions/origin: Ditto.
405         * tests/scripts/options/dash-e: Ditto.
406         * tests/scripts/variables/SHELL: Ditto.
408 2005-06-27  Paul D. Smith  <psmith@gnu.org>
410         * scripts/options/dash-W: Use 'echo >>' instead of touch to update
411         files.
412         * scripts/features/reinvoke: Rewrite to be safer on systems with
413         subsecond timestamps.
414         * scripts/features/patternrules: False exits with different error
415         codes on different systems (for example, Linux => 1, Solaris => 255).
417         * scripts/options/dash-W: Set the timestamp to foo.x in the future,
418         to be sure it will be considered updated when it's remade.
420 2005-06-26  Paul D. Smith  <psmith@gnu.org>
422         * scripts/functions/shell: New test suite for the shell function.
424 2005-06-25  Paul D. Smith  <psmith@gnu.org>
426         * scripts/features/include: Test include/-include/sinclude with no
427         arguments.  Tests fix for Savannah bug #1761.
429         * scripts/misc/general3: Implement comprehensive testing of
430         backslash-newline behavior in command scripts: various types of
431         quoting, fast path / slow path, etc.
432         Tests fix for Savannah bug #1332.
434         * scripts/options/symlinks: Test symlinks to non-existent files.
435         Tests fix for Savannah bug #13280.
437         * scripts/misc/general3: Test semicolons in variable references.
438         Tests fix for Savannah bug #1454.
440         * scripts/variables/MAKE_RESTARTS: New file: test the
441         MAKE_RESTARTS variable.
442         * scripts/options/dash-B: Test re-exec doesn't loop infinitely.
443         Tests fix for Savannah bug #7566.
444         * scripts/options/dash-W: New file: test the -W flag, including
445         re-exec infinite looping.
447 2005-06-12  Paul D. Smith  <psmith@gnu.org>
449         * scripts/misc/close_stdout: Add a test for Savannah bug #1328.
450         This test only works on systems that have /dev/full (e.g., Linux).
452 2005-06-09  Paul D. Smith  <psmith@gnu.org>
454         * scripts/functions/foreach: Add a test for Savannah bug #11913.
456 2005-05-31  Boris Kolpackov  <boris@kolpackov.net>
458         * scripts/features/include: Add a test for Savannah bug #13216.
459         * scripts/features/patternrules: Add a test for Savannah bug #13218.
461 2005-05-13  Paul D. Smith  <psmith@gnu.org>
463         * scripts/features/conditionals: Add tests for the new if... else
464         if... endif syntax.
466 2005-05-03  Paul D. Smith  <psmith@gnu.org>
468         * scripts/variables/DEFAULT_GOAL: Rename DEFAULT_TARGET to
469         DEFAULT_GOAL.
471 2005-05-02  Paul D. Smith  <psmith@gnu.org>
473         * scripts/features/parallelism: Add a test for exporting recursive
474         variables containing $(shell ) calls.  Rewrite this script to use
475         run_make_test() everywhere.
477 2005-04-07  Paul D. Smith  <psmith@gnu.org>
479         * scripts/targets/SECONDARY: Add a test for Savannah bug #12331.
481 2005-03-15  Boris Kolpackov  <boris@kolpackov.net>
483         * scripts/variables/automatic: Add a test for Savannah bug #12320.
485 2005-03-10  Boris Kolpackov  <boris@kolpackov.net>
487         * scripts/features/patternrules: Add a test for Savannah bug #12267.
489 2005-03-09  Boris Kolpackov  <boris@kolpackov.net>
491         * scripts/variables/DEFAULT_TARGET: Add a test for Savannah
492         bug #12266.
494 2005-03-04  Boris Kolpackov  <boris@kolpackov.net>
496         * scripts/features/patternrules: Add a test for Savannah bug #12202.
498 2005-03-03  Boris Kolpackov  <boris@kolpackov.net>
500         * scripts/features/se_implicit: Add a test for stem
501         termination bug. Add a test for stem triple-expansion bug.
503         * scripts/features/se_statpat: Add a test for stem
504         triple-expansion bug.
506         * scripts/features/statipattrules: Change test #4 to reflect
507         new way empty prerequisite list is handled.
510 2005-03-01  Boris Kolpackov  <boris@kolpackov.net>
512         * scripts/features/statipattrules: Add a test for
513         Savannah bug #12180.
515 2005-02-28  Paul D. Smith  <psmith@gnu.org>
517         * scripts/options/dash-q: Add a test for Savannah bug # 7144.
519         * scripts/options/symlinks: New file to test checking of symlink
520         timestamps.  Can't use filename dash-L because it conflicts with
521         dash-l on case-insensitive filesystems.
523         * scripts/variables/MAKEFILE_LIST, scripts/variables/MFILE_LIST:
524         Rename MAKEFILE_LIST test to MFILE_LIST, for systems that need 8.3
525         unique filenames.
527 2005-02-28  Boris Kolpackov  <boris@kolpackov.net>
529         * scripts/variables/DEFAULT_TARGET: Test the .DEFAULT_TARGET
530         special variable.
532 2005-02-27  Boris Kolpackov  <boris@kolpackov.net>
534         * scripts/features/se_explicit: Test the second expansion in
535         explicit rules.
536         * scripts/features/se_implicit: Test the second expansion in
537         implicit rules.
538         * scripts/features/se_statpat: Test the second expansion in
539         static pattern rules.
540         * scripts/variables/automatic: Fix to work with the second
541         expansion.
543         * scripts/misc/general4: Add a test for bug #12091.
545 2005-02-27  Paul D. Smith  <psmith@gnu.org>
547         * scripts/functions/eval: Check that eval of targets within
548         command scripts fails.  See Savannah bug # 12124.
550 2005-02-26  Paul D. Smith  <psmith@gnu.org>
552         * test_driver.pl (compare_output): If a basic comparison of the
553         log and answer doesn't match, try harder: change all backslashes
554         to slashes and all CRLF to LF.  This helps on DOS/Windows systems.
556 2005-02-09  Paul D. Smith  <psmith@gnu.org>
558         * scripts/features/recursion: Test command line variable settings:
559         only one instance of a given variable should be provided.
561 2004-11-30  Boris Kolpackov  <boris@kolpackov.net>
563         * tests/scripts/functions/abspath: New file: test `abspath'
564         built-in function.
566         * tests/scripts/functions/realpath: New file: test `realpath'
567         built-in function.
569 2004-11-28  Paul D. Smith  <psmith@gnu.org>
571         * scripts/options/dash-C [WINDOWS32]: Add a test for bug #10252;
572         this doesn't really test anything useful in UNIX but...
574         * scripts/variables/SHELL: New file: test proper handling of SHELL
575         according to POSIX rules.  Fixes bug #1276.
577 2004-10-21  Boris Kolpackov  <boris@kolpackov.net>
579         * scripts/functions/word: Test $(firstword ) and $(lastword ).
581 2004-10-05  Boris Kolpackov  <boris@kolpackov.net>
583         * scripts/features/patspecific_vars: Test simple/recursive
584         variable expansion.
586 2004-09-28  Boris Kolpackov  <boris@kolpackov.net>
588         * scripts/features/include: Test dontcare flag inheritance
589         when rebuilding makefiles.
591 2004-09-27  Boris Kolpackov  <boris@kolpackov.net>
593         * scripts/features/patspecific_vars: Test exported variables.
595 2004-09-22  Paul D. Smith  <psmith@gnu.org>
597         * run_make_tests.pl (run_make_test): Don't add newlines to the
598         makestring or answer if they are completely empty.
600         * scripts/features/patternrules: Rename from implicit_prereq_eval.
602         * scripts/test_template: Rework the template.
604 2004-09-21  Boris Kolpackov  <boris@kolpackov.net>
606         * run_make_tests.pl: Change `#!/usr/local/bin/perl' to be
607         `#!/usr/bin/env perl'.
609         * scripts/features/implicit_prereq_eval: Test implicit rule
610         prerequisite evaluation code.
612 2004-09-21  Paul D. Smith  <psmith@gnu.org>
614         * run_make_tests.pl (run_make_test): Enhance to allow the make
615         string to be undef: in that case it reuses the previous make
616         string.  Allows multiple tests on the same makefile.
618         * scripts/variables/flavors: Add some tests for prefix characters
619         interacting with define/endef variables.
621 2004-09-20  Paul D. Smith  <psmith@gnu.org>
623         * scripts/functions/substitution: Rewrite to use run_make_test()
624         interface, and add test for substitution failures reported by
625         Markus Mauhart <qwe123@chello.at>.
627 2004-03-22  Paul D. Smith  <psmith@gnu.org>
629         * test_driver.pl (run_each_test, toplevel, compare_output): Change
630         to track both the testing categories _AND_ the number of
631         individual tests, and report both sets of numbers.
633 2004-02-21  Paul D. Smith  <psmith@gnu.org>
635         * scripts/functions/origin: Set our own environment variable
636         rather than relying on $HOME.
638 2004-01-21  Paul D. Smith  <psmith@gnu.org>
640         * scripts/features/conditionals: Test arguments to ifn?def which
641         contain whitespace (such as a function that is evaluated).  Bug
642         #7257.
644 2004-01-07  Paul D. Smith  <psmith@gnu.org>
646         * scripts/features/order_only: Test order-only prerequisites in
647         pattern rules (patch #2349).
649 2003-11-02  Paul D. Smith  <psmith@gnu.org>
651         * scripts/functions/if: Test if on conditionals with trailing
652         whitespace--bug #5798.
654         * scripts/functions/eval: Test eval in a non-file context--bug #6195.
656 2003-04-19  Paul D. Smith  <psmith@gnu.org>
658         * scripts/features/patspecific_vars: Test multiple patterns
659         matching the same target--Bug #1405.
661 2003-04-09  Paul D. Smith  <psmith@gnu.org>
663         * run_make_tests.pl (set_more_defaults): A new $port_type of
664         'OS/2' for (surprise!) OS/2.  Also choose a wait time of 2 seconds
665         for OS/2.
667 2003-03-28  Paul D. Smith  <psmith@gnu.org>
669         * scripts/targets/SECONDARY: Test the "global" .SECONDARY (with
670         not prerequisites)--Bug #2515.
672 2003-01-30  Paul D. Smith  <psmith@gnu.org>
674         * scripts/features/targetvars: Test very long target-specific
675         variable definition lines (longer than the default make buffer
676         length).  Tests patch # 1022.
678         * scripts/functions/eval: Test very recursive $(eval ...) calls
679         with simple variable expansion (bug #2238).
681         * scripts/functions/word: Test error handling for word and
682         wordlist functions (bug #2407).
684 2003-01-22  Paul D. Smith  <psmith@gnu.org>
686         * scripts/functions/call: Test recursive argument masking (bug
687         #1744).
689 2002-10-25  Paul D. Smith  <psmith@gnu.org>
691         * scripts/functions/eval: Test using $(eval ...) inside
692         conditionals (Bug #1516).
694 2002-10-14  Paul D. Smith  <psmith@gnu.org>
696         * scripts/options/dash-t: Add a test for handling -t on targets
697         with no commands (Bug #1418).
699 2002-10-13  Paul D. Smith  <psmith@gnu.org>
701         * scripts/features/targetvars: Add a test for exporting
702         target-specific vars (Bug #1391).
704 2002-10-05  Paul D. Smith  <psmith@gnu.org>
706         * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D},
707         and $${@F}.
709 2002-09-23  Paul D. Smith  <psmith@gnu.org>
711         * scripts/features/escape: Test handling of escaped comment
712         characters in targets and prerequisites.
714 2002-09-18  Paul D. Smith  <psmith@gnu.org>
716         * scripts/features/export: Test export/unexport of multiple
717         variables in a single command.
719 2002-09-17  Paul D. Smith  <psmith@gnu.org>
721         * scripts/features/targetvars: Tests for Bug #940: test
722         target-specific and pattern-specific variables in conjunction with
723         double-colon targets.
725 2002-09-10  Paul D. Smith  <psmith@gnu.org>
727         * test_driver.pl (compare_output): Match the new format for time
728         skew error messages.
730         * scripts/features/export: Created.  Add tests for export/unexport
731         capabilities, including exporting/unexporting expanded variables.
733         * scripts/features/conditionals: Add a test for expanded variables
734         in ifdef conditionals.
736 2002-09-04  Paul D. Smith  <psmith@gnu.org>
738         * scripts/features/reinvoke: Change touch/sleep combos to utouch
739         invocations.
740         * scripts/features/vpathgpath: Ditto.
741         * scripts/features/vpathplus: Ditto.
742         * scripts/options/dash-n: Ditto.
743         * scripts/targets/INTERMEDIATE: Ditto.
744         * scripts/targets/SECONDARY: Ditto.
746         * scripts/options/dash-t: Added a test for the -t bug fixed by
747         Henning Makholm.  This test was also contributed by Henning.
749         * scripts/misc/general4: Add a test suite for obscure algorithmic
750         features of make.  First test: make sure creation subdirectories
751         as prerequisites of targets works properly.
753         * scripts/misc/version: Remove this bogus test.
755 2002-08-07  Paul D. Smith  <psmith@gnu.org>
757         * scripts/misc/general3: Add a test for makefiles that don't end
758         in newlines.
760         * scripts/variables/special: Create tests for the special
761         variables (.VARIABLES and .TARGETS).  Comment out .TARGETS test
762         for now as it's not yet supported.
764 2002-08-01  Paul D. Smith  <psmith@gnu.org>
766         * scripts/options/dash-B: Add a test for the new -B option.
768 2002-07-11  Paul D. Smith  <psmith@gnu.org>
770         * run_make_tests.pl (valid_option): Add support for Valgrind.  Use
771         -valgrind option to the test suite.
772         (set_more_defaults): Set up the file descriptor to capture
773         Valgrind output.  We have to unset its close-on-exec flag; we
774         hardcode the value for F_SETFD (2) rather than load it; hopefully
775         this will help us avoid breaking the Windows/DOS test suite.
777 2002-07-10  Paul D. Smith  <psmith@gnu.org>
779         * scripts/variables/automatic: Add some tests for $$@, $$(@D), and
780         $$(@F).
782         * test_driver.pl (utouch): Create a new function that creates a
783         file with a specific timestamp offset.  Use of this function will
784         let us avoid lots of annoying sleep() invocations in the tests
785         just to get proper timestamping, which will make the tests run a
786         lot faster.  So far it's only used in the automatic test suite.
788 2002-07-09  Paul D. Smith  <psmith@gnu.org>
790         * scripts/variables/automatic: Create a test for automatic variables.
792 2002-07-08  Paul D. Smith  <psmith@gnu.org>
794         * scripts/features/order_only: Test new order-only prerequisites.
796 2002-07-07  Paul D. Smith  <psmith@gnu.org>
798         * scripts/functions/eval: Test new function.
799         * scripts/functions/value: Test new function.
800         * scripts/variables/MAKEFILE_LIST: Test new variable.
802 2002-04-28  Paul D. Smith  <psmith@gnu.org>
804         * scripts/functions/call: New test: transitive closure
805         implementation using $(call ...) to test variable recursion.
807 2002-04-21  Paul D. Smith  <psmith@gnu.org>
809         * test_driver.pl (compare_dir_tree): Ignore CVS and RCS
810         directories in the script directories.
812 2001-05-02  Paul D. Smith  <psmith@gnu.org>
814         * scripts/variables/flavors: Test define/endef scripts where only
815         one of the command lines is quiet.
817 2000-06-22  Paul D. Smith  <psmith@gnu.org>
819         * scripts/options/dash-q: New file; test the -q option.  Includes
820         a test for PR/1780.
822 2000-06-21  Paul D. Smith  <psmith@gnu.org>
824         * scripts/features/targetvars: Added a test for PR/1709: allowing
825         semicolons in target-specific variable values.
827 2000-06-19  Paul D. Smith  <psmith@gnu.org>
829         * scripts/functions/addsuffix: Test for an empty final argument.
830         Actually this bug might have happened for any function, but this
831         one was handy.
833 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
835         * scripts/options/general: If parallel jobs are not supported,
836         expect a warning message from Make.
838 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
840         * scripts/options/general: Don't try -jN with N != 1 if parallel
841         jobs are not supported.
843 2000-05-24  Paul D. Smith  <psmith@gnu.org>
845         * scripts/options/general: Test general option processing (PR/1716).
847 2000-04-11  Paul D. Smith  <psmith@gnu.org>
849         * scripts/functions/strip: Test empty value to strip (PR/1689).
851 2000-04-08  Eli Zaretskii  <eliz@is.elta.co.il>
853         * scripts/features/reinvoke: Sleep before updating the target
854         files in the first test, to ensure its time stamp really gets
855         newer; otherwise Make might re-exec more than once.
857 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
859         * scripts/features/double_colon: Don't run the parallel tests if
860         parallel jobs aren't supported.
862 2000-04-04  Paul D. Smith  <psmith@gnu.org>
864         * scripts/functions/word: wordlist doesn't swap arguments anymore.
866 2000-03-27  Paul D. Smith  <psmith@gnu.org>
868         * scripts/features/statipattrules: Test that static pattern rules
869         whose prerequisite patterns resolve to empty strings throw an
870         error (instead of dumping core).  Fixes PR/1670.
872         * scripts/features/reinvoke: Make more robust by touching "b"
873         first, to ensure it's not newer than "a".
874         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
875         * scripts/options/dash-n: Ditto.
877         * scripts/functions/call: Whoops.  The fix to PR/1527 caused
878         recursive invocations of $(call ...) to break.  I can't come up
879         with any way to get both working at the same time, so I backed out
880         the fix to 1527 and added a test case for recursive calls.  This
881         also tests the fix for PR/1610.
883         * scripts/features/double_colon: Test that circular dependencies
884         in double-colon rule sets are detected correctly (PR/1671).
886 2000-03-26  Paul D. Smith  <psmith@gnu.org>
888         * scripts/targets/INTERMEDIATE: Test that make doesn't remove
889         .INTERMEDIATE files when given on the command line (PR/1669).
891 2000-03-08  Paul D. Smith  <psmith@gnu.org>
893         * scripts/options/dash-k: Add a test for error detection by
894         multiple targets depending on the same prerequisite with -k.
895         For PR/1634.
897 2000-02-07  Paul D. Smith  <psmith@gnu.org>
899         * scripts/features/escape: Add a test for backslash-escaped spaces
900         in a target name (PR/1586).
902 2000-02-04  Paul D. Smith  <psmith@gnu.org>
904         * scripts/features/patspecific_vars: Add a test for pattern-specific
905         target variables inherited from the parent target (PR/1407).
907 2000-02-02  Paul D. Smith  <psmith@gnu.org>
909         * run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
910         to make sure sorting order, etc. is predictable.
911         Reported by Andreas Jaeger <aj@suse.de>.
913         * run_make_tests.pl (set_more_defaults): Set the $wtime variable
914         depending on the OS.  Eli Zaretskii <eliz@is.elta.co.il> reports
915         this seems to need to be *4* on DOS/Windows, not just 2.  Keep it
916         1 for other systems.
917         * scripts/features/vpathplus (touchfiles): Use the $wtime value
918         instead of hardcoding 2.
919         * scripts/targets/SECONDARY: Ditto.
920         * scripts/targets/INTERMEDIATE: Ditto.
922 2000-01-27  Paul D. Smith  <psmith@gnu.org>
924         * test_driver.pl (toplevel): Don't try to run test scripts which
925         are really directories.
927 2000-01-23  Paul D. Smith  <psmith@gnu.org>
929         * scripts/features/include: Remove a check; the fix caused more
930         problems than the error, so I removed it and removed the test for
931         it.
933 2000-01-11  Paul D. Smith  <psmith@gnu.org>
935         * scripts/functions/call: Add a test for PR/1517 and PR/1527: make
936         sure $(call ...) doesn't eval its arguments and that you can
937         invoke foreach from it without looping forever.
939 1999-12-15  Paul D. Smith  <psmith@gnu.org>
941         * scripts/targets/INTERMEDIATE: Add a test for PR/1423: make sure
942         .INTERMEDIATE settings on files don't disable them as implicit
943         intermediate possibilities.
945 1999-12-01  Paul D. Smith  <psmith@gnu.org>
947         * scripts/features/double_colon: Add a test for PR/1476: Try
948         double-colon rules as non-goal targets and during parallel builds
949         to make sure they're handled serially.
951 1999-11-17  Paul D. Smith  <psmith@gnu.org>
953         * scripts/functions/if: Add a test for PR/1429: put some text
954         after an if-statement to make sure it works.
956         * scripts/features/targetvars: Add a test for PR/1380: handling +=
957         in target-specific variable definitions correctly.
959 1999-10-15  Paul D. Smith  <psmith@gnu.org>
961         * scripts/variables/MAKEFILES: This was really broken: it didn't
962         test anything at all, really.  Rewrote it, plus added a test for
963         PR/1394.
965 1999-10-13  Paul D. Smith  <psmith@gnu.org>
967         * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't
968         behave properly when used with recursive targets".
970 1999-10-08  Paul D. Smith  <psmith@gnu.org>
972         * scripts/features/targetvars: Add a check for PR/1378:
973         "Target-specific vars don't inherit correctly"
975 1999-09-29  Paul D. Smith  <psmith@gnu.org>
977         * test_driver.pl (get_osname): Change $fancy_file_names to
978         $short_filenames and reverse the logic.
979         (run_each_test): Change test of non-existent $port_host to use
980         $short_filenames--problem reported by Eli Zaretskii.
982 1999-09-23  Paul D. Smith  <psmith@gnu.org>
984         * scripts/features/parallelism: Add a check to ensure that the
985         jobserver works when we re-invoke.  Also cleaned up the tests a
986         little, reducing the number of rules we use so the test won't need
987         as many "sleep" commands.
989 1999-09-16  Paul D. Smith  <psmith@gnu.org>
991         * scripts/features/reinvoke: Remove invocations of "touch" in
992         makefiles.  See the comments on the touch function rewrite below.
993         Note that UNIX touch behaves the same way if the file already
994         exists: it sets the time to the _local_ time.  We don't want
995         this.  This is probably a good tip for makefile writers in
996         general, actually... where practical.
997         * scripts/options/dash-l: Ditto.
998         * scripts/options/dash-n: Ditto.
1000         * test_driver.pl (run_each_test): In retrospect, I don't like the
1001         .lN/.bN/.dN postfix required by DOS.  So, for non-DOS systems I
1002         changed it back to use .log, .base, and .diff.
1004         * run_make_tests.pl (set_more_defaults): Move the check for the
1005         make pathname to here from set_defaults (that's too early since it
1006         happens before the command line processing).
1007         Create a new variable $port_type, calculated from $osname, to
1008         specify what kind of system we're running on.  We should integrate
1009         the VOS stuff here, too.
1010         (valid_option): Comment out the workdir/-work stuff so people
1011         won't be fooled into thinking it works... someone needs to fix
1012         this, though!
1014         * scripts/functions/origin: Use $port_type instead of $osname.
1015         * scripts/functions/foreach: Ditto.
1016         * scripts/features/default_names: Ditto.
1018 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1020         * test_driver.pl (touch): Rewrite this function.  Previously it
1021         used to use utime() to hard-set the time based on the current
1022         local clock, or, if the file didn't exist, it merely created it.
1023         This mirrors exactly what real UNIX touch does, but it fails badly
1024         on networked filesystems where the FS server clock is skewed from
1025         the local clock: normally modifying a file causes it to get a mod
1026         time based on the _server's_ clock.  Hard-setting it based on the
1027         _local_ clock causes gratuitous errors and makes the tests
1028         unreliable except on local filesystems.  The new function will
1029         simply modify the file, allowing the filesystem to set the mod
1030         time as it sees fit.
1032         * scripts/features/parallelism: The second test output could
1033         change depending on how fast some scripts completed; use "sleep"
1034         to force the order we want.
1036         * test_driver.pl (toplevel): A bug in Perl 5.000 to Perl 5.004
1037         means that "%ENV = ();" doesn't do the right thing.  This worked
1038         in Perl 4 and was fixed in Perl 5.004_01, but use a loop to delete
1039         the environment rather than require specific versions.
1041         * run_make_tests.pl (set_more_defaults): Don't use Perl 5 s///
1042         modifier "s", so the tests will run with Perl 4.
1043         (set_more_defaults): Set $pure_log to empty if there's no -logfile
1044         option in PURIFYOPTIONS.
1045         (setup_for_test): Don't remove any logs unless $pure_log is set.
1047 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
1049         * scripts/features/reinvoke: Put the SHELL definition in the right
1050         test makefile.
1052 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1054         ChangeLog file for the test suite created.
1057 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
1058 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1059 This file is part of GNU Make.
1061 GNU Make is free software; you can redistribute it and/or modify it under the
1062 terms of the GNU General Public License as published by the Free Software
1063 Foundation; either version 3 of the License, or (at your option) any later
1064 version.
1066 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
1067 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
1068 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
1070 You should have received a copy of the GNU General Public License along with
1071 this program.  If not, see <http://www.gnu.org/licenses/>.