Bump the version to 3.82.90.
[make/kirr.git] / tests / ChangeLog
blob527ecd80adb4dec9d09d9b17ce63c0122f243cab
1 2010-08-29  Paul Smith  <psmith@gnu.org>
3         * scripts/features/errors: Add new error message to output text.
4         * scripts/variables/SHELL: Ditto.
5         * scripts/targets/POSIX: Ditto.
6         * scripts/options/dash-k: Ditto.
7         * scripts/features/vpathplus: Ditto.
8         * scripts/features/patternrules: Ditto.
9         * scripts/features/parallelism: Ditto.
11 2010-08-13  Paul Smith  <psmith@gnu.org>
13         * scripts/features/archives: New regression tests for archive
14         support.  Test for fix to Savannah bug #30612.
16         * run_make_tests.pl (set_more_defaults): Set a %FEATURES hash to
17         the features available in $(.FEATURES).
19 2010-08-10  Paul Smith  <psmith@gnu.org>
21         * scripts/features/reinvoke: Ensure command line variable settings
22         are preserved across make re-exec.  Tests Savannah bug #30723.
24 2010-07-28  Paul Smith  <psmith@gnu.org>
26         * scripts/targets/POSIX: Compatibility issues with Solaris (and
27         Tru64?); "false" returns different exit codes, and set -x shows
28         output with extra whitespace.  Run the commands by hand first to
29         find out what the real shell would do, then compare what make does.
30         * scripts/variables/SHELL: Ditto.
32 2010-07-12  Paul Smith  <psmith@gnu.org>
34         * test_driver.pl: Add a new $perl_name containing the path to Perl.
35         * run_make_tests.pl (run_make_test): Replace the special string
36         #PERL# in a makefile etc. with the path the Perl executable so
37         makefiles can use it.
39         * scripts/targets/ONESHELL: Add a new set of regression tests for
40         the .ONESHELL feature.
42 2010-07-06  Paul Smith  <psmith@gnu.org>
44         * scripts/variables/SHELL: Test the new .SHELLFLAGS variable.
46         * scripts/targets/POSIX: New file.  Test the .POSIX special target.
47         Verify that enabling .POSIX changes the shell flags to set -e.
49 2010-07-01  Paul Smith  <psmith@gnu.org>
51         * scripts/features/recursion: Add a space to separate command-line
52         args.  Fixes Savannah bug #29968.
54 2009-11-12  Boris Kolpackov  <boris@codesynthesis.com>
56         * scripts/features/vpath3: Test for the new library search
57         behavior.
59 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
61         * scripts/features/se_explicit: Enable the test for now fixed
62         Savannah bug 25780.
64 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
66         * scripts/variables/undefine: Tests for the new undefine feature.
68 2009-10-03  Paul Smith  <psmith@gnu.org>
70         * scripts/features/parallelism: Test for open Savannah bug #26846.
72         * scripts/variables/MAKE: Rewrite for new run_make_test() format.
74         * scripts/variables/MAKEFLAGS: Created.
75         Add test for Savannah bug #2216 (still open).
77         * scripts/features/include: Test for Savannah bug #102 (still open).
79 2009-09-30  Boris Kolpackov  <boris@codesynthesis.com>
81         * scripts/features/include: Add diagnostics issuing tests for
82         cases where targets have been updated and failed with the
83         dontcare flag. Savannah bugs #15110, #25493, #12686, #17740.
85 2009-09-28  Paul Smith  <psmith@gnu.org>
87         * scripts/functions/shell: Add regression test for Savannah bug
88         #20513 (still open).
90         * scripts/features/se_explicit: Add regression tests for Savannah
91         bug #25780 (still open).
93         * run_make_tests.pl (valid_option): Add a new flag, -all([-_]?tests)?
94         that runs tests we know will fail.  This allows us to add
95         regression tests to the test suite for bugs that haven't been
96         fixed yet.
98 2009-09-28  Boris Kolpackov  <boris@codesynthesis.com>
100         * scripts/features/patspecific_vars: Add a test for the shortest
101         stem first order.
103         * scripts/features/patternrules: Add a test for the shortest stem
104         first order.
106 2009-09-24  Paul Smith  <psmith@gnu.org>
108         * scripts/features/se_implicit: Add a test for order-only
109         secondary expansion prerequisites.
111 2009-09-23  Paul Smith  <psmith@gnu.org>
113         * scripts/features/patternrules: Test that we can remove pattern
114         rules, both single and multiple prerequisites.  Savannah bug #18622.
116         * scripts/features/echoing: Rework for run_make_test().
118 2009-06-14  Paul Smith  <psmith@gnu.org>
120         * scripts/features/vpath: Verify we don't get bogus circular
121         dependency warnings if we choose a different file via vpath during
122         update.  Savannah bug #13529.
124 2009-06-13  Paul Smith  <psmith@gnu.org>
126         * scripts/variables/MAKEFILES: Verify that MAKEFILES included
127         files (and files included by them) don't set the default goal.
128         Savannah bug #13401.
130         * scripts/functions/wildcard: Test that wildcards with
131         non-existent glob matchers return empty.
133 2009-06-09  Paul Smith  <psmith@gnu.org>
135         * scripts/options/dash-B: Test the $? works correctly with -B.
136         Savannah bug #17825.
138         * scripts/features/patternrules: Test that dependencies of
139         "also_make" targets are created properly.  Savannah bug #19108.
141         * test_driver.pl (compare_output): Create a "run" file for failed
142         tests containing the command that was run.
143         (get_runfile): New function.
145         * run_make_tests.pl (valid_option): Enhanced support for valgrind:
146         allow memcheck and massif tools.
148         * scripts/features/patternrules: Have to comment out a line in the
149         first test due to backing out a change that broke the implicit
150         rule search algorithm.  Savannah bug #17752.
151         * scripts/misc/general4: Remove a test that is redundant with
152         patternrules.
154         * scripts/features/parallelism: Add a test for re-exec with
155         jobserver master override.  Savannah bug #18124.
157 2009-06-08  Paul Smith  <psmith@gnu.org>
159         * scripts/features/targetvars: Add a test for continued target
160         vars after a semicolon.  Savannah bug #17521.
162 2009-06-07  Paul Smith  <psmith@gnu.org>
164         * scripts/features/se_explicit: Make sure we catch defining
165         prereqs during snap_deps().  Savannah bug #24622.
167         * scripts/variables/automatic: Check prereq ordering when the
168         target with the recipe has no prereqs.  Savannah bug #21198.
170         * scripts/variables/LIBPATTERNS: Add a new set of test for
171         $(.LIBPATTERNS) (previously untested!)
173 2009-06-04  Paul Smith  <psmith@gnu.org>
175         * scripts/variables/SHELL: The export target-specific SHELL test
176         has an incorrect known-good-value.
178         * scripts/misc/general4: Check for whitespace (ffeed, vtab, etc.)
180         * scripts/features/se_explicit: Add tests for Savannah bug #24588.
182 2009-05-31  Paul Smith  <psmith@gnu.org>
184         * scripts/variables/DEFAULT_GOAL: Add tests for Savannah bug #25697.
186         * scripts/features/targetvars: Add tests of overrides for Savannah
187         bug #26207.
188         * scripts/features/patspecific_vars: Ditto.
190         * scripts/features/patternrules: Add a test for Savannah bug #26593.
192 2009-05-30  Paul Smith  <psmith@gnu.org>
194         * scripts/variables/flavors: Update with new variable flavor tests.
195         * scripts/variables/define: Create a new set of tests for
196         define/endef and move those aspects of the flavors suite here.
198 2009-05-25  Paul Smith  <psmith@gnu.org>
200         * scripts/features/targetvars: Ditto.
202         * scripts/features/export: Test new variable parsing abilities.
204 2009-02-23  Ramon Garcia  <ramon.garcia.f@gmail.com>
206         * scripts/variables/private: Create a new suite of tests for 'private'.
208 2007-11-04  Paul Smith  <psmith@gnu.org>
210         * scripts/functions/eval: Update error message for command -> recipe.
212         * test_driver.pl (compare_output): Allow the answer to be a regex,
213         if surrounded by '/'.
214         * scripts/misc/close_stdout: Use a regex for the answer, since
215         sometimes the error will have a description and sometimes it won't.
217 2007-09-10  Paul Smith  <psmith@gnu.org>
219         * scripts/variables/special: Add tests for .RECIPEPREFIX variable.
221 2007-08-15  Paul Smith  <psmith@gnu.org>
223         These test cases were contributed by
224         Icarus Sparry <savannah@icarus.freeuk.com> and J. David Bryan for
225         Savannah bugs #3330 and #15919.
227         * scripts/targets/SECONDARY: Add tests for Savannah bugs 3330 and
228         15919.
230         * scripts/features/parallelism: Add tests for wrong answer/hang
231         combining INTERMEDIATE, order-only prereqs, and parallelism.
232         See Savannah bugs 3330 and 15919.
234 2007-07-13  Paul Smith  <psmith@gnu.org>
236         Install a timeout so tests can never loop infinitely.
237         Original idea and patch for a single-test version provided by
238         Icarus Sparry <savannah@icarus.freeuk.com>
240         * test_driver.pl (_run_command): New function: this is called by
241         other functions to actually run a command.  Before we run it,
242         install a SIGALRM handler and set up a timer to go off in the
243         future (default is 5s; this can be overridden by individual tests).
244         (run_command): Call it.
245         (run_command_with_output): Call it.
247         * run_make_tests.pl (run_make_with_options): Override the default
248         timeout if the caller requests it.
249         (run_make_test): Pass any timeout override to run_make_with_options.
251         * scripts/features/parallelism: Increase the timeout for long tests.
252         * scripts/options/dash-l: Ditto.
254 2006-10-01  Paul Smith  <psmith@paulandlesley.org>
256         * run_make_tests.pl (set_more_defaults): Remove setting of LANG in
257         ENV here.  This doesn't always work.
258         * test_driver.pl (toplevel): Set LC_ALL to 'C' in the make
259         environment.  Fixes Savannah bug #16698.
261 2006-09-30  Paul Smith  <psmith@paulandlesley.org>
263         * scripts/variables/automatic: Add back the test for bug #8154.
265 2006-04-01  Paul D. Smith  <psmith@gnu.org>
267         * scripts/functions/realpath: Don't run tests with multiple
268         initial slashes on Windows: those paths mean something different.
270 2006-03-19  Paul D. Smith  <psmith@gnu.org>
272         * scripts/features/parallelism: Test that the jobserver is
273         properly managed when we have to re-exec the master instance of
274         make.
276 2006-03-17  Boris Kolpackov  <boris@kolpackov.net>
278         * scripts/features/statipattrules: Add tests for bug #16053.
280 2006-03-09  Paul Smith  <psmith@gnu.org>
282         * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts
283         with DOS drive letters.  Fixes Savannah bug #15947.
285         * test_driver.pl (run_each_test): Set the status properly even
286         when a test fails to execute.  Fixes Savannah bug #15942.
288         * scripts/functions/foreach: Use a different environment variable
289         other than PATH to avoid differences with Windows platforms.
290         Fixes Savannah bug #15938.
292 2006-03-05  Paul D. Smith  <psmith@gnu.org>
294         * run_make_tests.pl (set_more_defaults): Add CYGWIN_NT as a port
295         type W32.  Fixed Savannah bug #15937.
297         * scripts/features/default_names: Don't call error() when the test
298         fails.  Fixes Savannah bug #15941.
300 2006-02-17  Paul D. Smith  <psmith@gnu.org>
302         * scripts/features/targetvars: Test a complex construction which
303         guarantees that we have to merge variable lists of different
304         sizes.  Tests for Savannah bug #15757.
306 2006-02-15  Paul D. Smith  <psmith@gnu.org>
308         * scripts/functions/error: Make sure filename/lineno information
309         is related to where the error is expanded, not where it's set.
310         * scripts/functions/warning: Ditto.
311         * scripts/functions/foreach: Check for different error conditions.
312         * scripts/functions/word: Ditto.
313         * scripts/variables/negative: Test some variable reference failure
314         conditions.
315         * scripts/options/warn-undefined-variables: Test the
316         --warn-undefined-variables flag.
318 2006-02-09  Paul D. Smith  <psmith@gnu.org>
320         * run_make_tests.pl (set_more_defaults): Update valgrind support
321         for newer versions.
322         * test_driver.pl (toplevel): Skip all hidden files/directories (ones
323         beginning with ".").
325         * scripts/functions/andor: Tests for $(and ..) and $(or ...)
326         functions.
328 2006-02-08  Boris Kolpackov  <boris@kolpackov.net>
330         * scripts/features/parallelism: Add a test for bug #15641.
332 2006-02-06  Paul D. Smith  <psmith@gnu.org>
334         * scripts/options/dash-W: Add a test for bug #15341.
336 2006-01-03  Paul D. Smith  <psmith@gnu.org>
338         * scripts/variables/automatic: Add a test for bug #8154.
340         * README: Update to reflect the current state of the test suite.
342 2005-12-12  Paul D. Smith  <psmith@gnu.org>
344         * scripts/features/parallelism, scripts/functions/wildcard,
345         scripts/targets/FORCE, scripts/targets/PHONY,
346         scripts/targets/SILENT: Use the default setting for
347         $delete_command.  Fixes bug #15085.
349         * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file.
351 2005-12-11  Paul D. Smith  <psmith@gnu.org>
353         * scripts/misc/general4: Test implicit rules with '$' in the
354         prereq list & prereq patterns.
355         * scripts/features/se_implicit: Add in .SECONDEXPANSION settings.
357 2005-12-09  Boris Kolpackov  <boris@kolpackov.net>
359         * scripts/features/patternrules: Add a test for bug #13022.
361 2005-12-07  Boris Kolpackov  <boris@kolpackov.net>
363         * scripts/features/double_colon: Add a test for bug #14334.
365 2005-11-17  Boris Kolpackov  <boris@kolpackov.net>
367         * scripts/functions/flavor: Add a test for the flavor function.
369 2005-11-14  Boris Kolpackov  <boris@kolpackov.net>
371         * scripts/variables/INCLUDE_DIRS: Add a test for the .INCLUDE_DIRS
372         special variable.
374 2005-10-24  Paul D. Smith  <psmith@gnu.org>
376         * scripts/misc/general4: Test '$$' in prerequisites list.
377         * scripts/features/statipattrules: Rewrite to use run_make_test().
378         Add various static pattern info.
379         * scripts/features/se_statpat: Enable .SECONDEXPANSION target.
380         * scripts/features/se_explicit: Add tests for handling '$$' in
381         prerequisite lists with and without setting .SECONDEXPANSION.
382         * scripts/features/order_only: Convert to run_make_test().
383         * run_make_tests.pl (set_more_defaults): If we can't get the value
384         of $(MAKE) from make, then fatal immediately.
386 2005-08-31  Paul D. Smith  <psmith@gnu.org>
388         * run_make_tests.pl (get_this_pwd): Require the POSIX module (in
389         an eval to trap errors) and if it exists, use POSIX::getcwd to
390         find the working directory.  If it doesn't exist, go back to the
391         previous methods.  This tries to be more accurate on Windows
392         systems.
394 2005-08-29  Paul D. Smith  <psmith@gnu.org>
396         * scripts/functions/abspath: Add some text to the error messages
397         to get a better idea of what's wrong.  Make warnings instead of
398         errors.
400         * scripts/features/patspecific_vars: Don't use "test", which is
401         UNIX specific.  Print the values and let the test script match
402         them.
404 2005-08-25  Paul Smith  <psmith@gnu.org>
406         * scripts/variables/SHELL: Use a /./ prefix instead of //: the
407         former works better with non-UNIX environments.  Fixes Savannah
408         bug #14129.
410 2005-08-13  Boris Kolpackov  <boris@kolpackov.net>
412         * scripts/functions/wildcard: Wrap calls to $(wildcard ) with
413         $(sort) so that the resulting order is no longer filesystem-
414         dependant.
416 2005-08-10  Boris Kolpackov  <boris@kolpackov.net>
418         * scripts/features/statipattrules: Add a test for Savannah bug #13881.
420 2005-08-07  Paul D. Smith  <psmith@gnu.org>
422         * scripts/features/parallelism: Add a test for a bug reported by
423         Michael Matz (matz@suse.de) in which make exits without waiting
424         for all its children in some situations during parallel builds.
426 2005-07-08  Paul D. Smith  <psmith@gnu.org>
428         * test_driver.pl: Reset the environment to a clean value every
429         time before we invoke make.  I'm suspicious that the environment
430         isn't handled the same way in Windows as it is in UNIX, and some
431         variables are leaking out beyond the tests they are intended for.
432         Create an %extraENV hash tests can set to add more env. vars.
433         * tests/scripts/features/export: Change to use %extraENV.
434         * tests/scripts/functions/eval: Ditto.
435         * tests/scripts/functions/origin: Ditto.
436         * tests/scripts/options/dash-e: Ditto.
437         * tests/scripts/variables/SHELL: Ditto.
439 2005-06-27  Paul D. Smith  <psmith@gnu.org>
441         * scripts/options/dash-W: Use 'echo >>' instead of touch to update
442         files.
443         * scripts/features/reinvoke: Rewrite to be safer on systems with
444         subsecond timestamps.
445         * scripts/features/patternrules: False exits with different error
446         codes on different systems (for example, Linux => 1, Solaris => 255).
448         * scripts/options/dash-W: Set the timestamp to foo.x in the future,
449         to be sure it will be considered updated when it's remade.
451 2005-06-26  Paul D. Smith  <psmith@gnu.org>
453         * scripts/functions/shell: New test suite for the shell function.
455 2005-06-25  Paul D. Smith  <psmith@gnu.org>
457         * scripts/features/include: Test include/-include/sinclude with no
458         arguments.  Tests fix for Savannah bug #1761.
460         * scripts/misc/general3: Implement comprehensive testing of
461         backslash-newline behavior in command scripts: various types of
462         quoting, fast path / slow path, etc.
463         Tests fix for Savannah bug #1332.
465         * scripts/options/symlinks: Test symlinks to non-existent files.
466         Tests fix for Savannah bug #13280.
468         * scripts/misc/general3: Test semicolons in variable references.
469         Tests fix for Savannah bug #1454.
471         * scripts/variables/MAKE_RESTARTS: New file: test the
472         MAKE_RESTARTS variable.
473         * scripts/options/dash-B: Test re-exec doesn't loop infinitely.
474         Tests fix for Savannah bug #7566.
475         * scripts/options/dash-W: New file: test the -W flag, including
476         re-exec infinite looping.
478 2005-06-12  Paul D. Smith  <psmith@gnu.org>
480         * scripts/misc/close_stdout: Add a test for Savannah bug #1328.
481         This test only works on systems that have /dev/full (e.g., Linux).
483 2005-06-09  Paul D. Smith  <psmith@gnu.org>
485         * scripts/functions/foreach: Add a test for Savannah bug #11913.
487 2005-05-31  Boris Kolpackov  <boris@kolpackov.net>
489         * scripts/features/include: Add a test for Savannah bug #13216.
490         * scripts/features/patternrules: Add a test for Savannah bug #13218.
492 2005-05-13  Paul D. Smith  <psmith@gnu.org>
494         * scripts/features/conditionals: Add tests for the new if... else
495         if... endif syntax.
497 2005-05-03  Paul D. Smith  <psmith@gnu.org>
499         * scripts/variables/DEFAULT_GOAL: Rename DEFAULT_TARGET to
500         DEFAULT_GOAL.
502 2005-05-02  Paul D. Smith  <psmith@gnu.org>
504         * scripts/features/parallelism: Add a test for exporting recursive
505         variables containing $(shell ) calls.  Rewrite this script to use
506         run_make_test() everywhere.
508 2005-04-07  Paul D. Smith  <psmith@gnu.org>
510         * scripts/targets/SECONDARY: Add a test for Savannah bug #12331.
512 2005-03-15  Boris Kolpackov  <boris@kolpackov.net>
514         * scripts/variables/automatic: Add a test for Savannah bug #12320.
516 2005-03-10  Boris Kolpackov  <boris@kolpackov.net>
518         * scripts/features/patternrules: Add a test for Savannah bug #12267.
520 2005-03-09  Boris Kolpackov  <boris@kolpackov.net>
522         * scripts/variables/DEFAULT_TARGET: Add a test for Savannah
523         bug #12266.
525 2005-03-04  Boris Kolpackov  <boris@kolpackov.net>
527         * scripts/features/patternrules: Add a test for Savannah bug #12202.
529 2005-03-03  Boris Kolpackov  <boris@kolpackov.net>
531         * scripts/features/se_implicit: Add a test for stem
532         termination bug. Add a test for stem triple-expansion bug.
534         * scripts/features/se_statpat: Add a test for stem
535         triple-expansion bug.
537         * scripts/features/statipattrules: Change test #4 to reflect
538         new way empty prerequisite list is handled.
541 2005-03-01  Boris Kolpackov  <boris@kolpackov.net>
543         * scripts/features/statipattrules: Add a test for
544         Savannah bug #12180.
546 2005-02-28  Paul D. Smith  <psmith@gnu.org>
548         * scripts/options/dash-q: Add a test for Savannah bug # 7144.
550         * scripts/options/symlinks: New file to test checking of symlink
551         timestamps.  Can't use filename dash-L because it conflicts with
552         dash-l on case-insensitive filesystems.
554         * scripts/variables/MAKEFILE_LIST, scripts/variables/MFILE_LIST:
555         Rename MAKEFILE_LIST test to MFILE_LIST, for systems that need 8.3
556         unique filenames.
558 2005-02-28  Boris Kolpackov  <boris@kolpackov.net>
560         * scripts/variables/DEFAULT_TARGET: Test the .DEFAULT_TARGET
561         special variable.
563 2005-02-27  Boris Kolpackov  <boris@kolpackov.net>
565         * scripts/features/se_explicit: Test the second expansion in
566         explicit rules.
567         * scripts/features/se_implicit: Test the second expansion in
568         implicit rules.
569         * scripts/features/se_statpat: Test the second expansion in
570         static pattern rules.
571         * scripts/variables/automatic: Fix to work with the second
572         expansion.
574         * scripts/misc/general4: Add a test for bug #12091.
576 2005-02-27  Paul D. Smith  <psmith@gnu.org>
578         * scripts/functions/eval: Check that eval of targets within
579         command scripts fails.  See Savannah bug # 12124.
581 2005-02-26  Paul D. Smith  <psmith@gnu.org>
583         * test_driver.pl (compare_output): If a basic comparison of the
584         log and answer doesn't match, try harder: change all backslashes
585         to slashes and all CRLF to LF.  This helps on DOS/Windows systems.
587 2005-02-09  Paul D. Smith  <psmith@gnu.org>
589         * scripts/features/recursion: Test command line variable settings:
590         only one instance of a given variable should be provided.
592 2004-11-30  Boris Kolpackov  <boris@kolpackov.net>
594         * tests/scripts/functions/abspath: New file: test `abspath'
595         built-in function.
597         * tests/scripts/functions/realpath: New file: test `realpath'
598         built-in function.
600 2004-11-28  Paul D. Smith  <psmith@gnu.org>
602         * scripts/options/dash-C [WINDOWS32]: Add a test for bug #10252;
603         this doesn't really test anything useful in UNIX but...
605         * scripts/variables/SHELL: New file: test proper handling of SHELL
606         according to POSIX rules.  Fixes bug #1276.
608 2004-10-21  Boris Kolpackov  <boris@kolpackov.net>
610         * scripts/functions/word: Test $(firstword ) and $(lastword ).
612 2004-10-05  Boris Kolpackov  <boris@kolpackov.net>
614         * scripts/features/patspecific_vars: Test simple/recursive
615         variable expansion.
617 2004-09-28  Boris Kolpackov  <boris@kolpackov.net>
619         * scripts/features/include: Test dontcare flag inheritance
620         when rebuilding makefiles.
622 2004-09-27  Boris Kolpackov  <boris@kolpackov.net>
624         * scripts/features/patspecific_vars: Test exported variables.
626 2004-09-22  Paul D. Smith  <psmith@gnu.org>
628         * run_make_tests.pl (run_make_test): Don't add newlines to the
629         makestring or answer if they are completely empty.
631         * scripts/features/patternrules: Rename from implicit_prereq_eval.
633         * scripts/test_template: Rework the template.
635 2004-09-21  Boris Kolpackov  <boris@kolpackov.net>
637         * run_make_tests.pl: Change `#!/usr/local/bin/perl' to be
638         `#!/usr/bin/env perl'.
640         * scripts/features/implicit_prereq_eval: Test implicit rule
641         prerequisite evaluation code.
643 2004-09-21  Paul D. Smith  <psmith@gnu.org>
645         * run_make_tests.pl (run_make_test): Enhance to allow the make
646         string to be undef: in that case it reuses the previous make
647         string.  Allows multiple tests on the same makefile.
649         * scripts/variables/flavors: Add some tests for prefix characters
650         interacting with define/endef variables.
652 2004-09-20  Paul D. Smith  <psmith@gnu.org>
654         * scripts/functions/substitution: Rewrite to use run_make_test()
655         interface, and add test for substitution failures reported by
656         Markus Mauhart <qwe123@chello.at>.
658 2004-03-22  Paul D. Smith  <psmith@gnu.org>
660         * test_driver.pl (run_each_test, toplevel, compare_output): Change
661         to track both the testing categories _AND_ the number of
662         individual tests, and report both sets of numbers.
664 2004-02-21  Paul D. Smith  <psmith@gnu.org>
666         * scripts/functions/origin: Set our own environment variable
667         rather than relying on $HOME.
669 2004-01-21  Paul D. Smith  <psmith@gnu.org>
671         * scripts/features/conditionals: Test arguments to ifn?def which
672         contain whitespace (such as a function that is evaluated).  Bug
673         #7257.
675 2004-01-07  Paul D. Smith  <psmith@gnu.org>
677         * scripts/features/order_only: Test order-only prerequisites in
678         pattern rules (patch #2349).
680 2003-11-02  Paul D. Smith  <psmith@gnu.org>
682         * scripts/functions/if: Test if on conditionals with trailing
683         whitespace--bug #5798.
685         * scripts/functions/eval: Test eval in a non-file context--bug #6195.
687 2003-04-19  Paul D. Smith  <psmith@gnu.org>
689         * scripts/features/patspecific_vars: Test multiple patterns
690         matching the same target--Bug #1405.
692 2003-04-09  Paul D. Smith  <psmith@gnu.org>
694         * run_make_tests.pl (set_more_defaults): A new $port_type of
695         'OS/2' for (surprise!) OS/2.  Also choose a wait time of 2 seconds
696         for OS/2.
698 2003-03-28  Paul D. Smith  <psmith@gnu.org>
700         * scripts/targets/SECONDARY: Test the "global" .SECONDARY (with
701         not prerequisites)--Bug #2515.
703 2003-01-30  Paul D. Smith  <psmith@gnu.org>
705         * scripts/features/targetvars: Test very long target-specific
706         variable definition lines (longer than the default make buffer
707         length).  Tests patch # 1022.
709         * scripts/functions/eval: Test very recursive $(eval ...) calls
710         with simple variable expansion (bug #2238).
712         * scripts/functions/word: Test error handling for word and
713         wordlist functions (bug #2407).
715 2003-01-22  Paul D. Smith  <psmith@gnu.org>
717         * scripts/functions/call: Test recursive argument masking (bug
718         #1744).
720 2002-10-25  Paul D. Smith  <psmith@gnu.org>
722         * scripts/functions/eval: Test using $(eval ...) inside
723         conditionals (Bug #1516).
725 2002-10-14  Paul D. Smith  <psmith@gnu.org>
727         * scripts/options/dash-t: Add a test for handling -t on targets
728         with no commands (Bug #1418).
730 2002-10-13  Paul D. Smith  <psmith@gnu.org>
732         * scripts/features/targetvars: Add a test for exporting
733         target-specific vars (Bug #1391).
735 2002-10-05  Paul D. Smith  <psmith@gnu.org>
737         * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D},
738         and $${@F}.
740 2002-09-23  Paul D. Smith  <psmith@gnu.org>
742         * scripts/features/escape: Test handling of escaped comment
743         characters in targets and prerequisites.
745 2002-09-18  Paul D. Smith  <psmith@gnu.org>
747         * scripts/features/export: Test export/unexport of multiple
748         variables in a single command.
750 2002-09-17  Paul D. Smith  <psmith@gnu.org>
752         * scripts/features/targetvars: Tests for Bug #940: test
753         target-specific and pattern-specific variables in conjunction with
754         double-colon targets.
756 2002-09-10  Paul D. Smith  <psmith@gnu.org>
758         * test_driver.pl (compare_output): Match the new format for time
759         skew error messages.
761         * scripts/features/export: Created.  Add tests for export/unexport
762         capabilities, including exporting/unexporting expanded variables.
764         * scripts/features/conditionals: Add a test for expanded variables
765         in ifdef conditionals.
767 2002-09-04  Paul D. Smith  <psmith@gnu.org>
769         * scripts/features/reinvoke: Change touch/sleep combos to utouch
770         invocations.
771         * scripts/features/vpathgpath: Ditto.
772         * scripts/features/vpathplus: Ditto.
773         * scripts/options/dash-n: Ditto.
774         * scripts/targets/INTERMEDIATE: Ditto.
775         * scripts/targets/SECONDARY: Ditto.
777         * scripts/options/dash-t: Added a test for the -t bug fixed by
778         Henning Makholm.  This test was also contributed by Henning.
780         * scripts/misc/general4: Add a test suite for obscure algorithmic
781         features of make.  First test: make sure creation subdirectories
782         as prerequisites of targets works properly.
784         * scripts/misc/version: Remove this bogus test.
786 2002-08-07  Paul D. Smith  <psmith@gnu.org>
788         * scripts/misc/general3: Add a test for makefiles that don't end
789         in newlines.
791         * scripts/variables/special: Create tests for the special
792         variables (.VARIABLES and .TARGETS).  Comment out .TARGETS test
793         for now as it's not yet supported.
795 2002-08-01  Paul D. Smith  <psmith@gnu.org>
797         * scripts/options/dash-B: Add a test for the new -B option.
799 2002-07-11  Paul D. Smith  <psmith@gnu.org>
801         * run_make_tests.pl (valid_option): Add support for Valgrind.  Use
802         -valgrind option to the test suite.
803         (set_more_defaults): Set up the file descriptor to capture
804         Valgrind output.  We have to unset its close-on-exec flag; we
805         hardcode the value for F_SETFD (2) rather than load it; hopefully
806         this will help us avoid breaking the Windows/DOS test suite.
808 2002-07-10  Paul D. Smith  <psmith@gnu.org>
810         * scripts/variables/automatic: Add some tests for $$@, $$(@D), and
811         $$(@F).
813         * test_driver.pl (utouch): Create a new function that creates a
814         file with a specific timestamp offset.  Use of this function will
815         let us avoid lots of annoying sleep() invocations in the tests
816         just to get proper timestamping, which will make the tests run a
817         lot faster.  So far it's only used in the automatic test suite.
819 2002-07-09  Paul D. Smith  <psmith@gnu.org>
821         * scripts/variables/automatic: Create a test for automatic variables.
823 2002-07-08  Paul D. Smith  <psmith@gnu.org>
825         * scripts/features/order_only: Test new order-only prerequisites.
827 2002-07-07  Paul D. Smith  <psmith@gnu.org>
829         * scripts/functions/eval: Test new function.
830         * scripts/functions/value: Test new function.
831         * scripts/variables/MAKEFILE_LIST: Test new variable.
833 2002-04-28  Paul D. Smith  <psmith@gnu.org>
835         * scripts/functions/call: New test: transitive closure
836         implementation using $(call ...) to test variable recursion.
838 2002-04-21  Paul D. Smith  <psmith@gnu.org>
840         * test_driver.pl (compare_dir_tree): Ignore CVS and RCS
841         directories in the script directories.
843 2001-05-02  Paul D. Smith  <psmith@gnu.org>
845         * scripts/variables/flavors: Test define/endef scripts where only
846         one of the command lines is quiet.
848 2000-06-22  Paul D. Smith  <psmith@gnu.org>
850         * scripts/options/dash-q: New file; test the -q option.  Includes
851         a test for PR/1780.
853 2000-06-21  Paul D. Smith  <psmith@gnu.org>
855         * scripts/features/targetvars: Added a test for PR/1709: allowing
856         semicolons in target-specific variable values.
858 2000-06-19  Paul D. Smith  <psmith@gnu.org>
860         * scripts/functions/addsuffix: Test for an empty final argument.
861         Actually this bug might have happened for any function, but this
862         one was handy.
864 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
866         * scripts/options/general: If parallel jobs are not supported,
867         expect a warning message from Make.
869 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
871         * scripts/options/general: Don't try -jN with N != 1 if parallel
872         jobs are not supported.
874 2000-05-24  Paul D. Smith  <psmith@gnu.org>
876         * scripts/options/general: Test general option processing (PR/1716).
878 2000-04-11  Paul D. Smith  <psmith@gnu.org>
880         * scripts/functions/strip: Test empty value to strip (PR/1689).
882 2000-04-08  Eli Zaretskii  <eliz@is.elta.co.il>
884         * scripts/features/reinvoke: Sleep before updating the target
885         files in the first test, to ensure its time stamp really gets
886         newer; otherwise Make might re-exec more than once.
888 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
890         * scripts/features/double_colon: Don't run the parallel tests if
891         parallel jobs aren't supported.
893 2000-04-04  Paul D. Smith  <psmith@gnu.org>
895         * scripts/functions/word: wordlist doesn't swap arguments anymore.
897 2000-03-27  Paul D. Smith  <psmith@gnu.org>
899         * scripts/features/statipattrules: Test that static pattern rules
900         whose prerequisite patterns resolve to empty strings throw an
901         error (instead of dumping core).  Fixes PR/1670.
903         * scripts/features/reinvoke: Make more robust by touching "b"
904         first, to ensure it's not newer than "a".
905         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
906         * scripts/options/dash-n: Ditto.
908         * scripts/functions/call: Whoops.  The fix to PR/1527 caused
909         recursive invocations of $(call ...) to break.  I can't come up
910         with any way to get both working at the same time, so I backed out
911         the fix to 1527 and added a test case for recursive calls.  This
912         also tests the fix for PR/1610.
914         * scripts/features/double_colon: Test that circular dependencies
915         in double-colon rule sets are detected correctly (PR/1671).
917 2000-03-26  Paul D. Smith  <psmith@gnu.org>
919         * scripts/targets/INTERMEDIATE: Test that make doesn't remove
920         .INTERMEDIATE files when given on the command line (PR/1669).
922 2000-03-08  Paul D. Smith  <psmith@gnu.org>
924         * scripts/options/dash-k: Add a test for error detection by
925         multiple targets depending on the same prerequisite with -k.
926         For PR/1634.
928 2000-02-07  Paul D. Smith  <psmith@gnu.org>
930         * scripts/features/escape: Add a test for backslash-escaped spaces
931         in a target name (PR/1586).
933 2000-02-04  Paul D. Smith  <psmith@gnu.org>
935         * scripts/features/patspecific_vars: Add a test for pattern-specific
936         target variables inherited from the parent target (PR/1407).
938 2000-02-02  Paul D. Smith  <psmith@gnu.org>
940         * run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
941         to make sure sorting order, etc. is predictable.
942         Reported by Andreas Jaeger <aj@suse.de>.
944         * run_make_tests.pl (set_more_defaults): Set the $wtime variable
945         depending on the OS.  Eli Zaretskii <eliz@is.elta.co.il> reports
946         this seems to need to be *4* on DOS/Windows, not just 2.  Keep it
947         1 for other systems.
948         * scripts/features/vpathplus (touchfiles): Use the $wtime value
949         instead of hardcoding 2.
950         * scripts/targets/SECONDARY: Ditto.
951         * scripts/targets/INTERMEDIATE: Ditto.
953 2000-01-27  Paul D. Smith  <psmith@gnu.org>
955         * test_driver.pl (toplevel): Don't try to run test scripts which
956         are really directories.
958 2000-01-23  Paul D. Smith  <psmith@gnu.org>
960         * scripts/features/include: Remove a check; the fix caused more
961         problems than the error, so I removed it and removed the test for
962         it.
964 2000-01-11  Paul D. Smith  <psmith@gnu.org>
966         * scripts/functions/call: Add a test for PR/1517 and PR/1527: make
967         sure $(call ...) doesn't eval its arguments and that you can
968         invoke foreach from it without looping forever.
970 1999-12-15  Paul D. Smith  <psmith@gnu.org>
972         * scripts/targets/INTERMEDIATE: Add a test for PR/1423: make sure
973         .INTERMEDIATE settings on files don't disable them as implicit
974         intermediate possibilities.
976 1999-12-01  Paul D. Smith  <psmith@gnu.org>
978         * scripts/features/double_colon: Add a test for PR/1476: Try
979         double-colon rules as non-goal targets and during parallel builds
980         to make sure they're handled serially.
982 1999-11-17  Paul D. Smith  <psmith@gnu.org>
984         * scripts/functions/if: Add a test for PR/1429: put some text
985         after an if-statement to make sure it works.
987         * scripts/features/targetvars: Add a test for PR/1380: handling +=
988         in target-specific variable definitions correctly.
990 1999-10-15  Paul D. Smith  <psmith@gnu.org>
992         * scripts/variables/MAKEFILES: This was really broken: it didn't
993         test anything at all, really.  Rewrote it, plus added a test for
994         PR/1394.
996 1999-10-13  Paul D. Smith  <psmith@gnu.org>
998         * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't
999         behave properly when used with recursive targets".
1001 1999-10-08  Paul D. Smith  <psmith@gnu.org>
1003         * scripts/features/targetvars: Add a check for PR/1378:
1004         "Target-specific vars don't inherit correctly"
1006 1999-09-29  Paul D. Smith  <psmith@gnu.org>
1008         * test_driver.pl (get_osname): Change $fancy_file_names to
1009         $short_filenames and reverse the logic.
1010         (run_each_test): Change test of non-existent $port_host to use
1011         $short_filenames--problem reported by Eli Zaretskii.
1013 1999-09-23  Paul D. Smith  <psmith@gnu.org>
1015         * scripts/features/parallelism: Add a check to ensure that the
1016         jobserver works when we re-invoke.  Also cleaned up the tests a
1017         little, reducing the number of rules we use so the test won't need
1018         as many "sleep" commands.
1020 1999-09-16  Paul D. Smith  <psmith@gnu.org>
1022         * scripts/features/reinvoke: Remove invocations of "touch" in
1023         makefiles.  See the comments on the touch function rewrite below.
1024         Note that UNIX touch behaves the same way if the file already
1025         exists: it sets the time to the _local_ time.  We don't want
1026         this.  This is probably a good tip for makefile writers in
1027         general, actually... where practical.
1028         * scripts/options/dash-l: Ditto.
1029         * scripts/options/dash-n: Ditto.
1031         * test_driver.pl (run_each_test): In retrospect, I don't like the
1032         .lN/.bN/.dN postfix required by DOS.  So, for non-DOS systems I
1033         changed it back to use .log, .base, and .diff.
1035         * run_make_tests.pl (set_more_defaults): Move the check for the
1036         make pathname to here from set_defaults (that's too early since it
1037         happens before the command line processing).
1038         Create a new variable $port_type, calculated from $osname, to
1039         specify what kind of system we're running on.  We should integrate
1040         the VOS stuff here, too.
1041         (valid_option): Comment out the workdir/-work stuff so people
1042         won't be fooled into thinking it works... someone needs to fix
1043         this, though!
1045         * scripts/functions/origin: Use $port_type instead of $osname.
1046         * scripts/functions/foreach: Ditto.
1047         * scripts/features/default_names: Ditto.
1049 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1051         * test_driver.pl (touch): Rewrite this function.  Previously it
1052         used to use utime() to hard-set the time based on the current
1053         local clock, or, if the file didn't exist, it merely created it.
1054         This mirrors exactly what real UNIX touch does, but it fails badly
1055         on networked filesystems where the FS server clock is skewed from
1056         the local clock: normally modifying a file causes it to get a mod
1057         time based on the _server's_ clock.  Hard-setting it based on the
1058         _local_ clock causes gratuitous errors and makes the tests
1059         unreliable except on local filesystems.  The new function will
1060         simply modify the file, allowing the filesystem to set the mod
1061         time as it sees fit.
1063         * scripts/features/parallelism: The second test output could
1064         change depending on how fast some scripts completed; use "sleep"
1065         to force the order we want.
1067         * test_driver.pl (toplevel): A bug in Perl 5.000 to Perl 5.004
1068         means that "%ENV = ();" doesn't do the right thing.  This worked
1069         in Perl 4 and was fixed in Perl 5.004_01, but use a loop to delete
1070         the environment rather than require specific versions.
1072         * run_make_tests.pl (set_more_defaults): Don't use Perl 5 s///
1073         modifier "s", so the tests will run with Perl 4.
1074         (set_more_defaults): Set $pure_log to empty if there's no -logfile
1075         option in PURIFYOPTIONS.
1076         (setup_for_test): Don't remove any logs unless $pure_log is set.
1078 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
1080         * scripts/features/reinvoke: Put the SHELL definition in the right
1081         test makefile.
1083 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1085         ChangeLog file for the test suite created.
1088 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
1089 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1090 This file is part of GNU Make.
1092 GNU Make is free software; you can redistribute it and/or modify it under the
1093 terms of the GNU General Public License as published by the Free Software
1094 Foundation; either version 3 of the License, or (at your option) any later
1095 version.
1097 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
1098 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
1099 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
1101 You should have received a copy of the GNU General Public License along with
1102 this program.  If not, see <http://www.gnu.org/licenses/>.