Implement new "load" directive.
[make.git] / tests / ChangeLog
blob7ffd6b04399fb0db94f28243dc48b673b772892c
1 2012-10-29  Paul Smith  <psmith@gnu.org>
3         * scripts/features/load: New test suite for the "load" directive.
5 2012-09-09  Paul Smith  <psmith@gnu.org>
7         * scripts/functions/file: Get errors in the C locale, not the
8         current locale.  Fixes Savannah bug #35764.
10         * scripts/features/escape: Check that backslashes before
11         non-special characters are not removed.
13         * scripts/features/utf8: New test for UTF-8 support.
14         See Savannah bug #36529.
16         * scripts/targets/POSIX: Add tests for default macro values as
17         specified by IEEE Std 1003.1-2008.  See Savannah bug #37069.
19 2012-03-04  Paul Smith  <psmith@gnu.org>
21         * scripts/features/se_explicit: Test $(x:%=%) format in secondary
22         expansion prerequisite lists.  See Savannah bug #16545.
24         * scripts/features/escape: Test escaped ":" in prerequisite lists.
25         See Savannah bug #12126.
27         * scripts/variables/private: Test appending private variables in
28         pattern-specific target rules.  See Savannah bug #35468.
30 2012-03-03  Paul Smith  <psmith@gnu.org>
32         * scripts/variables/SHELL: Ensure .SHELLFLAGS works with options
33         separated by whitespace.
35         * scripts/targets/ONESHELL: Try .ONESHELL in combination with
36         whitespace-separated options in .SHELLFLAGS.  See Savannah bug #35397.
38         * scripts/functions/filter-out: Add filter tests and test escape
39         operations.  See Savannah bug #35410.
41         * guile.supp: Suppress valgrind errors from Guile
42         * run_make_tests.pl: Use the Guile suppression file.
44         * scripts/misc/bs-nl: Check for POSIX and non-POSIX
45         backslash/newline handling.  Addresses Savannah bug #16670.
47 2012-01-29  Paul Smith  <psmith@gnu.org>
49         * scripts/variables/flavors: Add tests for ::=
50         * scripts/variables/define: Ditto
52         * scripts/functions/file: Test the new $(file ...) function.
54 2012-01-12  Paul Smith  <psmith@gnu.org>
56         * scripts/functions/guile: New regression tests for Guile support.
58 2011-12-10  Paul Smith  <psmith@gnu.org>
60         * scripts/targets/SECONDARY: Add prereq statements to ensure rules
61         are printed in the right order for test #9
63 2011-11-14  Paul Smith  <psmith@gnu.org>
65         * scripts/features/double_colon: Check double-colon with escaped
66         filenames.  See Savannah bug #33399.
68 2011-09-18  Paul Smith  <psmith@gnu.org>
70         * scripts/features/parallelism: On re-exec make sure we preserve
71         the value of MAKEFLAGS when necessary.  See Savannah bug #33873.
73         * scripts/features/vpath3: Verify handling of -lfoo libraries
74         found via vpath vs. the standard directory search.
75         See Savannah bug #32511.
77 2011-09-12  Paul Smith  <psmith@gnu.org>
79         * scripts/functions/call: Verify that using export in a $(call ...)
80         context creates a global variable.  See Savannah bug #32498.
82 2011-09-02  Paul Smith  <psmith@gnu.org>
84         * scripts/options/dash-n: Verify that in "-n -t", the -n takes
85         priority.  Patch from Michael Witten <mfwitten@gmail.com>.
87 2011-08-29  Paul Smith  <psmith@gnu.org>
89         * scripts/features/varnesting: Test resetting of variables while
90         expanding them.  See Savannah patch #7534
92 2011-06-12  Paul Smith  <psmith@gnu.org>
94         * scripts/features/archives: Check archives with whitespace at the
95         beginning, end, and extra in the middle.
96         Another test for Savannah bug #30612.
98 2011-05-07  Paul Smith  <psmith@gnu.org>
100         * scripts/variables/private: Ensure we skip private variables when
101         appending.  Test for Savannah bug #32872.
103         * scripts/functions/wildcard: Verify wildcard used to test for
104         file existence/non-existence.
106 2011-05-02  Paul Smith  <psmith@gnu.org>
108         * scripts/functions/sort: Add a test for Savannah bug #33125.
110 2011-04-17  David A. Wheeler  <dwheeler@dwheeler.com>
112         * scripts/features/shell_assignment: Regression for "!=" feature
114 2010-11-06  Paul Smith  <psmith@gnu.org>
116         * scripts/features/targetvars: Fix known-good output for BS/NL changes.
117         * scripts/functions/call: Ditto.
118         * scripts/variables/special: Ditto.
120         * scripts/misc/bs-nl: New test suite for backslash/newline testing.
122 2010-08-29  Paul Smith  <psmith@gnu.org>
124         * scripts/features/errors: Add new error message to output text.
125         * scripts/variables/SHELL: Ditto.
126         * scripts/targets/POSIX: Ditto.
127         * scripts/options/dash-k: Ditto.
128         * scripts/features/vpathplus: Ditto.
129         * scripts/features/patternrules: Ditto.
130         * scripts/features/parallelism: Ditto.
132 2010-08-13  Paul Smith  <psmith@gnu.org>
134         * scripts/features/archives: New regression tests for archive
135         support.  Test for fix to Savannah bug #30612.
137         * run_make_tests.pl (set_more_defaults): Set a %FEATURES hash to
138         the features available in $(.FEATURES).
140 2010-08-10  Paul Smith  <psmith@gnu.org>
142         * scripts/features/reinvoke: Ensure command line variable settings
143         are preserved across make re-exec.  Tests Savannah bug #30723.
145 2010-07-28  Paul Smith  <psmith@gnu.org>
147         * scripts/targets/POSIX: Compatibility issues with Solaris (and
148         Tru64?); "false" returns different exit codes, and set -x shows
149         output with extra whitespace.  Run the commands by hand first to
150         find out what the real shell would do, then compare what make does.
151         * scripts/variables/SHELL: Ditto.
153 2010-07-12  Paul Smith  <psmith@gnu.org>
155         * test_driver.pl: Add a new $perl_name containing the path to Perl.
156         * run_make_tests.pl (run_make_test): Replace the special string
157         #PERL# in a makefile etc. with the path the Perl executable so
158         makefiles can use it.
160         * scripts/targets/ONESHELL: Add a new set of regression tests for
161         the .ONESHELL feature.
163 2010-07-06  Paul Smith  <psmith@gnu.org>
165         * scripts/variables/SHELL: Test the new .SHELLFLAGS variable.
167         * scripts/targets/POSIX: New file.  Test the .POSIX special target.
168         Verify that enabling .POSIX changes the shell flags to set -e.
170 2010-07-01  Paul Smith  <psmith@gnu.org>
172         * scripts/features/recursion: Add a space to separate command-line
173         args.  Fixes Savannah bug #29968.
175 2009-11-12  Boris Kolpackov  <boris@codesynthesis.com>
177         * scripts/features/vpath3: Test for the new library search
178         behavior.
180 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
182         * scripts/features/se_explicit: Enable the test for now fixed
183         Savannah bug 25780.
185 2009-10-06  Boris Kolpackov  <boris@codesynthesis.com>
187         * scripts/variables/undefine: Tests for the new undefine feature.
189 2009-10-03  Paul Smith  <psmith@gnu.org>
191         * scripts/features/parallelism: Test for open Savannah bug #26846.
193         * scripts/variables/MAKE: Rewrite for new run_make_test() format.
195         * scripts/variables/MAKEFLAGS: Created.
196         Add test for Savannah bug #2216 (still open).
198         * scripts/features/include: Test for Savannah bug #102 (still open).
200 2009-09-30  Boris Kolpackov  <boris@codesynthesis.com>
202         * scripts/features/include: Add diagnostics issuing tests for
203         cases where targets have been updated and failed with the
204         dontcare flag. Savannah bugs #15110, #25493, #12686, #17740.
206 2009-09-28  Paul Smith  <psmith@gnu.org>
208         * scripts/functions/shell: Add regression test for Savannah bug
209         #20513 (still open).
211         * scripts/features/se_explicit: Add regression tests for Savannah
212         bug #25780 (still open).
214         * run_make_tests.pl (valid_option): Add a new flag, -all([-_]?tests)?
215         that runs tests we know will fail.  This allows us to add
216         regression tests to the test suite for bugs that haven't been
217         fixed yet.
219 2009-09-28  Boris Kolpackov  <boris@codesynthesis.com>
221         * scripts/features/patspecific_vars: Add a test for the shortest
222         stem first order.
224         * scripts/features/patternrules: Add a test for the shortest stem
225         first order.
227 2009-09-24  Paul Smith  <psmith@gnu.org>
229         * scripts/features/se_implicit: Add a test for order-only
230         secondary expansion prerequisites.
232 2009-09-23  Paul Smith  <psmith@gnu.org>
234         * scripts/features/patternrules: Test that we can remove pattern
235         rules, both single and multiple prerequisites.  Savannah bug #18622.
237         * scripts/features/echoing: Rework for run_make_test().
239 2009-06-14  Paul Smith  <psmith@gnu.org>
241         * scripts/features/vpath: Verify we don't get bogus circular
242         dependency warnings if we choose a different file via vpath during
243         update.  Savannah bug #13529.
245 2009-06-13  Paul Smith  <psmith@gnu.org>
247         * scripts/variables/MAKEFILES: Verify that MAKEFILES included
248         files (and files included by them) don't set the default goal.
249         Savannah bug #13401.
251         * scripts/functions/wildcard: Test that wildcards with
252         non-existent glob matchers return empty.
254 2009-06-09  Paul Smith  <psmith@gnu.org>
256         * scripts/options/dash-B: Test the $? works correctly with -B.
257         Savannah bug #17825.
259         * scripts/features/patternrules: Test that dependencies of
260         "also_make" targets are created properly.  Savannah bug #19108.
262         * test_driver.pl (compare_output): Create a "run" file for failed
263         tests containing the command that was run.
264         (get_runfile): New function.
266         * run_make_tests.pl (valid_option): Enhanced support for valgrind:
267         allow memcheck and massif tools.
269         * scripts/features/patternrules: Have to comment out a line in the
270         first test due to backing out a change that broke the implicit
271         rule search algorithm.  Savannah bug #17752.
272         * scripts/misc/general4: Remove a test that is redundant with
273         patternrules.
275         * scripts/features/parallelism: Add a test for re-exec with
276         jobserver master override.  Savannah bug #18124.
278 2009-06-08  Paul Smith  <psmith@gnu.org>
280         * scripts/features/targetvars: Add a test for continued target
281         vars after a semicolon.  Savannah bug #17521.
283 2009-06-07  Paul Smith  <psmith@gnu.org>
285         * scripts/features/se_explicit: Make sure we catch defining
286         prereqs during snap_deps().  Savannah bug #24622.
288         * scripts/variables/automatic: Check prereq ordering when the
289         target with the recipe has no prereqs.  Savannah bug #21198.
291         * scripts/variables/LIBPATTERNS: Add a new set of test for
292         $(.LIBPATTERNS) (previously untested!)
294 2009-06-04  Paul Smith  <psmith@gnu.org>
296         * scripts/variables/SHELL: The export target-specific SHELL test
297         has an incorrect known-good-value.
299         * scripts/misc/general4: Check for whitespace (ffeed, vtab, etc.)
301         * scripts/features/se_explicit: Add tests for Savannah bug #24588.
303 2009-05-31  Paul Smith  <psmith@gnu.org>
305         * scripts/variables/DEFAULT_GOAL: Add tests for Savannah bug #25697.
307         * scripts/features/targetvars: Add tests of overrides for Savannah
308         bug #26207.
309         * scripts/features/patspecific_vars: Ditto.
311         * scripts/features/patternrules: Add a test for Savannah bug #26593.
313 2009-05-30  Paul Smith  <psmith@gnu.org>
315         * scripts/variables/flavors: Update with new variable flavor tests.
316         * scripts/variables/define: Create a new set of tests for
317         define/endef and move those aspects of the flavors suite here.
319 2009-05-25  Paul Smith  <psmith@gnu.org>
321         * scripts/features/targetvars: Ditto.
323         * scripts/features/export: Test new variable parsing abilities.
325 2009-02-23  Ramon Garcia  <ramon.garcia.f@gmail.com>
327         * scripts/variables/private: Create a new suite of tests for 'private'.
329 2007-11-04  Paul Smith  <psmith@gnu.org>
331         * scripts/functions/eval: Update error message for command -> recipe.
333         * test_driver.pl (compare_output): Allow the answer to be a regex,
334         if surrounded by '/'.
335         * scripts/misc/close_stdout: Use a regex for the answer, since
336         sometimes the error will have a description and sometimes it won't.
338 2007-09-10  Paul Smith  <psmith@gnu.org>
340         * scripts/variables/special: Add tests for .RECIPEPREFIX variable.
342 2007-08-15  Paul Smith  <psmith@gnu.org>
344         These test cases were contributed by
345         Icarus Sparry <savannah@icarus.freeuk.com> and J. David Bryan for
346         Savannah bugs #3330 and #15919.
348         * scripts/targets/SECONDARY: Add tests for Savannah bugs 3330 and
349         15919.
351         * scripts/features/parallelism: Add tests for wrong answer/hang
352         combining INTERMEDIATE, order-only prereqs, and parallelism.
353         See Savannah bugs 3330 and 15919.
355 2007-07-13  Paul Smith  <psmith@gnu.org>
357         Install a timeout so tests can never loop infinitely.
358         Original idea and patch for a single-test version provided by
359         Icarus Sparry <savannah@icarus.freeuk.com>
361         * test_driver.pl (_run_command): New function: this is called by
362         other functions to actually run a command.  Before we run it,
363         install a SIGALRM handler and set up a timer to go off in the
364         future (default is 5s; this can be overridden by individual tests).
365         (run_command): Call it.
366         (run_command_with_output): Call it.
368         * run_make_tests.pl (run_make_with_options): Override the default
369         timeout if the caller requests it.
370         (run_make_test): Pass any timeout override to run_make_with_options.
372         * scripts/features/parallelism: Increase the timeout for long tests.
373         * scripts/options/dash-l: Ditto.
375 2006-10-01  Paul Smith  <psmith@paulandlesley.org>
377         * run_make_tests.pl (set_more_defaults): Remove setting of LANG in
378         ENV here.  This doesn't always work.
379         * test_driver.pl (toplevel): Set LC_ALL to 'C' in the make
380         environment.  Fixes Savannah bug #16698.
382 2006-09-30  Paul Smith  <psmith@paulandlesley.org>
384         * scripts/variables/automatic: Add back the test for bug #8154.
386 2006-04-01  Paul D. Smith  <psmith@gnu.org>
388         * scripts/functions/realpath: Don't run tests with multiple
389         initial slashes on Windows: those paths mean something different.
391 2006-03-19  Paul D. Smith  <psmith@gnu.org>
393         * scripts/features/parallelism: Test that the jobserver is
394         properly managed when we have to re-exec the master instance of
395         make.
397 2006-03-17  Boris Kolpackov  <boris@kolpackov.net>
399         * scripts/features/statipattrules: Add tests for bug #16053.
401 2006-03-09  Paul Smith  <psmith@gnu.org>
403         * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts
404         with DOS drive letters.  Fixes Savannah bug #15947.
406         * test_driver.pl (run_each_test): Set the status properly even
407         when a test fails to execute.  Fixes Savannah bug #15942.
409         * scripts/functions/foreach: Use a different environment variable
410         other than PATH to avoid differences with Windows platforms.
411         Fixes Savannah bug #15938.
413 2006-03-05  Paul D. Smith  <psmith@gnu.org>
415         * run_make_tests.pl (set_more_defaults): Add CYGWIN_NT as a port
416         type W32.  Fixed Savannah bug #15937.
418         * scripts/features/default_names: Don't call error() when the test
419         fails.  Fixes Savannah bug #15941.
421 2006-02-17  Paul D. Smith  <psmith@gnu.org>
423         * scripts/features/targetvars: Test a complex construction which
424         guarantees that we have to merge variable lists of different
425         sizes.  Tests for Savannah bug #15757.
427 2006-02-15  Paul D. Smith  <psmith@gnu.org>
429         * scripts/functions/error: Make sure filename/lineno information
430         is related to where the error is expanded, not where it's set.
431         * scripts/functions/warning: Ditto.
432         * scripts/functions/foreach: Check for different error conditions.
433         * scripts/functions/word: Ditto.
434         * scripts/variables/negative: Test some variable reference failure
435         conditions.
436         * scripts/options/warn-undefined-variables: Test the
437         --warn-undefined-variables flag.
439 2006-02-09  Paul D. Smith  <psmith@gnu.org>
441         * run_make_tests.pl (set_more_defaults): Update valgrind support
442         for newer versions.
443         * test_driver.pl (toplevel): Skip all hidden files/directories (ones
444         beginning with ".").
446         * scripts/functions/andor: Tests for $(and ..) and $(or ...)
447         functions.
449 2006-02-08  Boris Kolpackov  <boris@kolpackov.net>
451         * scripts/features/parallelism: Add a test for bug #15641.
453 2006-02-06  Paul D. Smith  <psmith@gnu.org>
455         * scripts/options/dash-W: Add a test for bug #15341.
457 2006-01-03  Paul D. Smith  <psmith@gnu.org>
459         * scripts/variables/automatic: Add a test for bug #8154.
461         * README: Update to reflect the current state of the test suite.
463 2005-12-12  Paul D. Smith  <psmith@gnu.org>
465         * scripts/features/parallelism, scripts/functions/wildcard,
466         scripts/targets/FORCE, scripts/targets/PHONY,
467         scripts/targets/SILENT: Use the default setting for
468         $delete_command.  Fixes bug #15085.
470         * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file.
472 2005-12-11  Paul D. Smith  <psmith@gnu.org>
474         * scripts/misc/general4: Test implicit rules with '$' in the
475         prereq list & prereq patterns.
476         * scripts/features/se_implicit: Add in .SECONDEXPANSION settings.
478 2005-12-09  Boris Kolpackov  <boris@kolpackov.net>
480         * scripts/features/patternrules: Add a test for bug #13022.
482 2005-12-07  Boris Kolpackov  <boris@kolpackov.net>
484         * scripts/features/double_colon: Add a test for bug #14334.
486 2005-11-17  Boris Kolpackov  <boris@kolpackov.net>
488         * scripts/functions/flavor: Add a test for the flavor function.
490 2005-11-14  Boris Kolpackov  <boris@kolpackov.net>
492         * scripts/variables/INCLUDE_DIRS: Add a test for the .INCLUDE_DIRS
493         special variable.
495 2005-10-24  Paul D. Smith  <psmith@gnu.org>
497         * scripts/misc/general4: Test '$$' in prerequisites list.
498         * scripts/features/statipattrules: Rewrite to use run_make_test().
499         Add various static pattern info.
500         * scripts/features/se_statpat: Enable .SECONDEXPANSION target.
501         * scripts/features/se_explicit: Add tests for handling '$$' in
502         prerequisite lists with and without setting .SECONDEXPANSION.
503         * scripts/features/order_only: Convert to run_make_test().
504         * run_make_tests.pl (set_more_defaults): If we can't get the value
505         of $(MAKE) from make, then fatal immediately.
507 2005-08-31  Paul D. Smith  <psmith@gnu.org>
509         * run_make_tests.pl (get_this_pwd): Require the POSIX module (in
510         an eval to trap errors) and if it exists, use POSIX::getcwd to
511         find the working directory.  If it doesn't exist, go back to the
512         previous methods.  This tries to be more accurate on Windows
513         systems.
515 2005-08-29  Paul D. Smith  <psmith@gnu.org>
517         * scripts/functions/abspath: Add some text to the error messages
518         to get a better idea of what's wrong.  Make warnings instead of
519         errors.
521         * scripts/features/patspecific_vars: Don't use "test", which is
522         UNIX specific.  Print the values and let the test script match
523         them.
525 2005-08-25  Paul Smith  <psmith@gnu.org>
527         * scripts/variables/SHELL: Use a /./ prefix instead of //: the
528         former works better with non-UNIX environments.  Fixes Savannah
529         bug #14129.
531 2005-08-13  Boris Kolpackov  <boris@kolpackov.net>
533         * scripts/functions/wildcard: Wrap calls to $(wildcard ) with
534         $(sort) so that the resulting order is no longer filesystem-
535         dependant.
537 2005-08-10  Boris Kolpackov  <boris@kolpackov.net>
539         * scripts/features/statipattrules: Add a test for Savannah bug #13881.
541 2005-08-07  Paul D. Smith  <psmith@gnu.org>
543         * scripts/features/parallelism: Add a test for a bug reported by
544         Michael Matz (matz@suse.de) in which make exits without waiting
545         for all its children in some situations during parallel builds.
547 2005-07-08  Paul D. Smith  <psmith@gnu.org>
549         * test_driver.pl: Reset the environment to a clean value every
550         time before we invoke make.  I'm suspicious that the environment
551         isn't handled the same way in Windows as it is in UNIX, and some
552         variables are leaking out beyond the tests they are intended for.
553         Create an %extraENV hash tests can set to add more env. vars.
554         * tests/scripts/features/export: Change to use %extraENV.
555         * tests/scripts/functions/eval: Ditto.
556         * tests/scripts/functions/origin: Ditto.
557         * tests/scripts/options/dash-e: Ditto.
558         * tests/scripts/variables/SHELL: Ditto.
560 2005-06-27  Paul D. Smith  <psmith@gnu.org>
562         * scripts/options/dash-W: Use 'echo >>' instead of touch to update
563         files.
564         * scripts/features/reinvoke: Rewrite to be safer on systems with
565         subsecond timestamps.
566         * scripts/features/patternrules: False exits with different error
567         codes on different systems (for example, Linux => 1, Solaris => 255).
569         * scripts/options/dash-W: Set the timestamp to foo.x in the future,
570         to be sure it will be considered updated when it's remade.
572 2005-06-26  Paul D. Smith  <psmith@gnu.org>
574         * scripts/functions/shell: New test suite for the shell function.
576 2005-06-25  Paul D. Smith  <psmith@gnu.org>
578         * scripts/features/include: Test include/-include/sinclude with no
579         arguments.  Tests fix for Savannah bug #1761.
581         * scripts/misc/general3: Implement comprehensive testing of
582         backslash-newline behavior in command scripts: various types of
583         quoting, fast path / slow path, etc.
584         Tests fix for Savannah bug #1332.
586         * scripts/options/symlinks: Test symlinks to non-existent files.
587         Tests fix for Savannah bug #13280.
589         * scripts/misc/general3: Test semicolons in variable references.
590         Tests fix for Savannah bug #1454.
592         * scripts/variables/MAKE_RESTARTS: New file: test the
593         MAKE_RESTARTS variable.
594         * scripts/options/dash-B: Test re-exec doesn't loop infinitely.
595         Tests fix for Savannah bug #7566.
596         * scripts/options/dash-W: New file: test the -W flag, including
597         re-exec infinite looping.
599 2005-06-12  Paul D. Smith  <psmith@gnu.org>
601         * scripts/misc/close_stdout: Add a test for Savannah bug #1328.
602         This test only works on systems that have /dev/full (e.g., Linux).
604 2005-06-09  Paul D. Smith  <psmith@gnu.org>
606         * scripts/functions/foreach: Add a test for Savannah bug #11913.
608 2005-05-31  Boris Kolpackov  <boris@kolpackov.net>
610         * scripts/features/include: Add a test for Savannah bug #13216.
611         * scripts/features/patternrules: Add a test for Savannah bug #13218.
613 2005-05-13  Paul D. Smith  <psmith@gnu.org>
615         * scripts/features/conditionals: Add tests for the new if... else
616         if... endif syntax.
618 2005-05-03  Paul D. Smith  <psmith@gnu.org>
620         * scripts/variables/DEFAULT_GOAL: Rename DEFAULT_TARGET to
621         DEFAULT_GOAL.
623 2005-05-02  Paul D. Smith  <psmith@gnu.org>
625         * scripts/features/parallelism: Add a test for exporting recursive
626         variables containing $(shell ) calls.  Rewrite this script to use
627         run_make_test() everywhere.
629 2005-04-07  Paul D. Smith  <psmith@gnu.org>
631         * scripts/targets/SECONDARY: Add a test for Savannah bug #12331.
633 2005-03-15  Boris Kolpackov  <boris@kolpackov.net>
635         * scripts/variables/automatic: Add a test for Savannah bug #12320.
637 2005-03-10  Boris Kolpackov  <boris@kolpackov.net>
639         * scripts/features/patternrules: Add a test for Savannah bug #12267.
641 2005-03-09  Boris Kolpackov  <boris@kolpackov.net>
643         * scripts/variables/DEFAULT_TARGET: Add a test for Savannah
644         bug #12266.
646 2005-03-04  Boris Kolpackov  <boris@kolpackov.net>
648         * scripts/features/patternrules: Add a test for Savannah bug #12202.
650 2005-03-03  Boris Kolpackov  <boris@kolpackov.net>
652         * scripts/features/se_implicit: Add a test for stem
653         termination bug. Add a test for stem triple-expansion bug.
655         * scripts/features/se_statpat: Add a test for stem
656         triple-expansion bug.
658         * scripts/features/statipattrules: Change test #4 to reflect
659         new way empty prerequisite list is handled.
662 2005-03-01  Boris Kolpackov  <boris@kolpackov.net>
664         * scripts/features/statipattrules: Add a test for
665         Savannah bug #12180.
667 2005-02-28  Paul D. Smith  <psmith@gnu.org>
669         * scripts/options/dash-q: Add a test for Savannah bug # 7144.
671         * scripts/options/symlinks: New file to test checking of symlink
672         timestamps.  Can't use filename dash-L because it conflicts with
673         dash-l on case-insensitive filesystems.
675         * scripts/variables/MAKEFILE_LIST, scripts/variables/MFILE_LIST:
676         Rename MAKEFILE_LIST test to MFILE_LIST, for systems that need 8.3
677         unique filenames.
679 2005-02-28  Boris Kolpackov  <boris@kolpackov.net>
681         * scripts/variables/DEFAULT_TARGET: Test the .DEFAULT_TARGET
682         special variable.
684 2005-02-27  Boris Kolpackov  <boris@kolpackov.net>
686         * scripts/features/se_explicit: Test the second expansion in
687         explicit rules.
688         * scripts/features/se_implicit: Test the second expansion in
689         implicit rules.
690         * scripts/features/se_statpat: Test the second expansion in
691         static pattern rules.
692         * scripts/variables/automatic: Fix to work with the second
693         expansion.
695         * scripts/misc/general4: Add a test for bug #12091.
697 2005-02-27  Paul D. Smith  <psmith@gnu.org>
699         * scripts/functions/eval: Check that eval of targets within
700         command scripts fails.  See Savannah bug # 12124.
702 2005-02-26  Paul D. Smith  <psmith@gnu.org>
704         * test_driver.pl (compare_output): If a basic comparison of the
705         log and answer doesn't match, try harder: change all backslashes
706         to slashes and all CRLF to LF.  This helps on DOS/Windows systems.
708 2005-02-09  Paul D. Smith  <psmith@gnu.org>
710         * scripts/features/recursion: Test command line variable settings:
711         only one instance of a given variable should be provided.
713 2004-11-30  Boris Kolpackov  <boris@kolpackov.net>
715         * tests/scripts/functions/abspath: New file: test `abspath'
716         built-in function.
718         * tests/scripts/functions/realpath: New file: test `realpath'
719         built-in function.
721 2004-11-28  Paul D. Smith  <psmith@gnu.org>
723         * scripts/options/dash-C [WINDOWS32]: Add a test for bug #10252;
724         this doesn't really test anything useful in UNIX but...
726         * scripts/variables/SHELL: New file: test proper handling of SHELL
727         according to POSIX rules.  Fixes bug #1276.
729 2004-10-21  Boris Kolpackov  <boris@kolpackov.net>
731         * scripts/functions/word: Test $(firstword ) and $(lastword ).
733 2004-10-05  Boris Kolpackov  <boris@kolpackov.net>
735         * scripts/features/patspecific_vars: Test simple/recursive
736         variable expansion.
738 2004-09-28  Boris Kolpackov  <boris@kolpackov.net>
740         * scripts/features/include: Test dontcare flag inheritance
741         when rebuilding makefiles.
743 2004-09-27  Boris Kolpackov  <boris@kolpackov.net>
745         * scripts/features/patspecific_vars: Test exported variables.
747 2004-09-22  Paul D. Smith  <psmith@gnu.org>
749         * run_make_tests.pl (run_make_test): Don't add newlines to the
750         makestring or answer if they are completely empty.
752         * scripts/features/patternrules: Rename from implicit_prereq_eval.
754         * scripts/test_template: Rework the template.
756 2004-09-21  Boris Kolpackov  <boris@kolpackov.net>
758         * run_make_tests.pl: Change `#!/usr/local/bin/perl' to be
759         `#!/usr/bin/env perl'.
761         * scripts/features/implicit_prereq_eval: Test implicit rule
762         prerequisite evaluation code.
764 2004-09-21  Paul D. Smith  <psmith@gnu.org>
766         * run_make_tests.pl (run_make_test): Enhance to allow the make
767         string to be undef: in that case it reuses the previous make
768         string.  Allows multiple tests on the same makefile.
770         * scripts/variables/flavors: Add some tests for prefix characters
771         interacting with define/endef variables.
773 2004-09-20  Paul D. Smith  <psmith@gnu.org>
775         * scripts/functions/substitution: Rewrite to use run_make_test()
776         interface, and add test for substitution failures reported by
777         Markus Mauhart <qwe123@chello.at>.
779 2004-03-22  Paul D. Smith  <psmith@gnu.org>
781         * test_driver.pl (run_each_test, toplevel, compare_output): Change
782         to track both the testing categories _AND_ the number of
783         individual tests, and report both sets of numbers.
785 2004-02-21  Paul D. Smith  <psmith@gnu.org>
787         * scripts/functions/origin: Set our own environment variable
788         rather than relying on $HOME.
790 2004-01-21  Paul D. Smith  <psmith@gnu.org>
792         * scripts/features/conditionals: Test arguments to ifn?def which
793         contain whitespace (such as a function that is evaluated).  Bug
794         #7257.
796 2004-01-07  Paul D. Smith  <psmith@gnu.org>
798         * scripts/features/order_only: Test order-only prerequisites in
799         pattern rules (patch #2349).
801 2003-11-02  Paul D. Smith  <psmith@gnu.org>
803         * scripts/functions/if: Test if on conditionals with trailing
804         whitespace--bug #5798.
806         * scripts/functions/eval: Test eval in a non-file context--bug #6195.
808 2003-04-19  Paul D. Smith  <psmith@gnu.org>
810         * scripts/features/patspecific_vars: Test multiple patterns
811         matching the same target--Bug #1405.
813 2003-04-09  Paul D. Smith  <psmith@gnu.org>
815         * run_make_tests.pl (set_more_defaults): A new $port_type of
816         'OS/2' for (surprise!) OS/2.  Also choose a wait time of 2 seconds
817         for OS/2.
819 2003-03-28  Paul D. Smith  <psmith@gnu.org>
821         * scripts/targets/SECONDARY: Test the "global" .SECONDARY (with
822         not prerequisites)--Bug #2515.
824 2003-01-30  Paul D. Smith  <psmith@gnu.org>
826         * scripts/features/targetvars: Test very long target-specific
827         variable definition lines (longer than the default make buffer
828         length).  Tests patch # 1022.
830         * scripts/functions/eval: Test very recursive $(eval ...) calls
831         with simple variable expansion (bug #2238).
833         * scripts/functions/word: Test error handling for word and
834         wordlist functions (bug #2407).
836 2003-01-22  Paul D. Smith  <psmith@gnu.org>
838         * scripts/functions/call: Test recursive argument masking (bug
839         #1744).
841 2002-10-25  Paul D. Smith  <psmith@gnu.org>
843         * scripts/functions/eval: Test using $(eval ...) inside
844         conditionals (Bug #1516).
846 2002-10-14  Paul D. Smith  <psmith@gnu.org>
848         * scripts/options/dash-t: Add a test for handling -t on targets
849         with no commands (Bug #1418).
851 2002-10-13  Paul D. Smith  <psmith@gnu.org>
853         * scripts/features/targetvars: Add a test for exporting
854         target-specific vars (Bug #1391).
856 2002-10-05  Paul D. Smith  <psmith@gnu.org>
858         * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D},
859         and $${@F}.
861 2002-09-23  Paul D. Smith  <psmith@gnu.org>
863         * scripts/features/escape: Test handling of escaped comment
864         characters in targets and prerequisites.
866 2002-09-18  Paul D. Smith  <psmith@gnu.org>
868         * scripts/features/export: Test export/unexport of multiple
869         variables in a single command.
871 2002-09-17  Paul D. Smith  <psmith@gnu.org>
873         * scripts/features/targetvars: Tests for Bug #940: test
874         target-specific and pattern-specific variables in conjunction with
875         double-colon targets.
877 2002-09-10  Paul D. Smith  <psmith@gnu.org>
879         * test_driver.pl (compare_output): Match the new format for time
880         skew error messages.
882         * scripts/features/export: Created.  Add tests for export/unexport
883         capabilities, including exporting/unexporting expanded variables.
885         * scripts/features/conditionals: Add a test for expanded variables
886         in ifdef conditionals.
888 2002-09-04  Paul D. Smith  <psmith@gnu.org>
890         * scripts/features/reinvoke: Change touch/sleep combos to utouch
891         invocations.
892         * scripts/features/vpathgpath: Ditto.
893         * scripts/features/vpathplus: Ditto.
894         * scripts/options/dash-n: Ditto.
895         * scripts/targets/INTERMEDIATE: Ditto.
896         * scripts/targets/SECONDARY: Ditto.
898         * scripts/options/dash-t: Added a test for the -t bug fixed by
899         Henning Makholm.  This test was also contributed by Henning.
901         * scripts/misc/general4: Add a test suite for obscure algorithmic
902         features of make.  First test: make sure creation subdirectories
903         as prerequisites of targets works properly.
905         * scripts/misc/version: Remove this bogus test.
907 2002-08-07  Paul D. Smith  <psmith@gnu.org>
909         * scripts/misc/general3: Add a test for makefiles that don't end
910         in newlines.
912         * scripts/variables/special: Create tests for the special
913         variables (.VARIABLES and .TARGETS).  Comment out .TARGETS test
914         for now as it's not yet supported.
916 2002-08-01  Paul D. Smith  <psmith@gnu.org>
918         * scripts/options/dash-B: Add a test for the new -B option.
920 2002-07-11  Paul D. Smith  <psmith@gnu.org>
922         * run_make_tests.pl (valid_option): Add support for Valgrind.  Use
923         -valgrind option to the test suite.
924         (set_more_defaults): Set up the file descriptor to capture
925         Valgrind output.  We have to unset its close-on-exec flag; we
926         hardcode the value for F_SETFD (2) rather than load it; hopefully
927         this will help us avoid breaking the Windows/DOS test suite.
929 2002-07-10  Paul D. Smith  <psmith@gnu.org>
931         * scripts/variables/automatic: Add some tests for $$@, $$(@D), and
932         $$(@F).
934         * test_driver.pl (utouch): Create a new function that creates a
935         file with a specific timestamp offset.  Use of this function will
936         let us avoid lots of annoying sleep() invocations in the tests
937         just to get proper timestamping, which will make the tests run a
938         lot faster.  So far it's only used in the automatic test suite.
940 2002-07-09  Paul D. Smith  <psmith@gnu.org>
942         * scripts/variables/automatic: Create a test for automatic variables.
944 2002-07-08  Paul D. Smith  <psmith@gnu.org>
946         * scripts/features/order_only: Test new order-only prerequisites.
948 2002-07-07  Paul D. Smith  <psmith@gnu.org>
950         * scripts/functions/eval: Test new function.
951         * scripts/functions/value: Test new function.
952         * scripts/variables/MAKEFILE_LIST: Test new variable.
954 2002-04-28  Paul D. Smith  <psmith@gnu.org>
956         * scripts/functions/call: New test: transitive closure
957         implementation using $(call ...) to test variable recursion.
959 2002-04-21  Paul D. Smith  <psmith@gnu.org>
961         * test_driver.pl (compare_dir_tree): Ignore CVS and RCS
962         directories in the script directories.
964 2001-05-02  Paul D. Smith  <psmith@gnu.org>
966         * scripts/variables/flavors: Test define/endef scripts where only
967         one of the command lines is quiet.
969 2000-06-22  Paul D. Smith  <psmith@gnu.org>
971         * scripts/options/dash-q: New file; test the -q option.  Includes
972         a test for PR/1780.
974 2000-06-21  Paul D. Smith  <psmith@gnu.org>
976         * scripts/features/targetvars: Added a test for PR/1709: allowing
977         semicolons in target-specific variable values.
979 2000-06-19  Paul D. Smith  <psmith@gnu.org>
981         * scripts/functions/addsuffix: Test for an empty final argument.
982         Actually this bug might have happened for any function, but this
983         one was handy.
985 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
987         * scripts/options/general: If parallel jobs are not supported,
988         expect a warning message from Make.
990 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
992         * scripts/options/general: Don't try -jN with N != 1 if parallel
993         jobs are not supported.
995 2000-05-24  Paul D. Smith  <psmith@gnu.org>
997         * scripts/options/general: Test general option processing (PR/1716).
999 2000-04-11  Paul D. Smith  <psmith@gnu.org>
1001         * scripts/functions/strip: Test empty value to strip (PR/1689).
1003 2000-04-08  Eli Zaretskii  <eliz@is.elta.co.il>
1005         * scripts/features/reinvoke: Sleep before updating the target
1006         files in the first test, to ensure its time stamp really gets
1007         newer; otherwise Make might re-exec more than once.
1009 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
1011         * scripts/features/double_colon: Don't run the parallel tests if
1012         parallel jobs aren't supported.
1014 2000-04-04  Paul D. Smith  <psmith@gnu.org>
1016         * scripts/functions/word: wordlist doesn't swap arguments anymore.
1018 2000-03-27  Paul D. Smith  <psmith@gnu.org>
1020         * scripts/features/statipattrules: Test that static pattern rules
1021         whose prerequisite patterns resolve to empty strings throw an
1022         error (instead of dumping core).  Fixes PR/1670.
1024         * scripts/features/reinvoke: Make more robust by touching "b"
1025         first, to ensure it's not newer than "a".
1026         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
1027         * scripts/options/dash-n: Ditto.
1029         * scripts/functions/call: Whoops.  The fix to PR/1527 caused
1030         recursive invocations of $(call ...) to break.  I can't come up
1031         with any way to get both working at the same time, so I backed out
1032         the fix to 1527 and added a test case for recursive calls.  This
1033         also tests the fix for PR/1610.
1035         * scripts/features/double_colon: Test that circular dependencies
1036         in double-colon rule sets are detected correctly (PR/1671).
1038 2000-03-26  Paul D. Smith  <psmith@gnu.org>
1040         * scripts/targets/INTERMEDIATE: Test that make doesn't remove
1041         .INTERMEDIATE files when given on the command line (PR/1669).
1043 2000-03-08  Paul D. Smith  <psmith@gnu.org>
1045         * scripts/options/dash-k: Add a test for error detection by
1046         multiple targets depending on the same prerequisite with -k.
1047         For PR/1634.
1049 2000-02-07  Paul D. Smith  <psmith@gnu.org>
1051         * scripts/features/escape: Add a test for backslash-escaped spaces
1052         in a target name (PR/1586).
1054 2000-02-04  Paul D. Smith  <psmith@gnu.org>
1056         * scripts/features/patspecific_vars: Add a test for pattern-specific
1057         target variables inherited from the parent target (PR/1407).
1059 2000-02-02  Paul D. Smith  <psmith@gnu.org>
1061         * run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
1062         to make sure sorting order, etc. is predictable.
1063         Reported by Andreas Jaeger <aj@suse.de>.
1065         * run_make_tests.pl (set_more_defaults): Set the $wtime variable
1066         depending on the OS.  Eli Zaretskii <eliz@is.elta.co.il> reports
1067         this seems to need to be *4* on DOS/Windows, not just 2.  Keep it
1068         1 for other systems.
1069         * scripts/features/vpathplus (touchfiles): Use the $wtime value
1070         instead of hardcoding 2.
1071         * scripts/targets/SECONDARY: Ditto.
1072         * scripts/targets/INTERMEDIATE: Ditto.
1074 2000-01-27  Paul D. Smith  <psmith@gnu.org>
1076         * test_driver.pl (toplevel): Don't try to run test scripts which
1077         are really directories.
1079 2000-01-23  Paul D. Smith  <psmith@gnu.org>
1081         * scripts/features/include: Remove a check; the fix caused more
1082         problems than the error, so I removed it and removed the test for
1083         it.
1085 2000-01-11  Paul D. Smith  <psmith@gnu.org>
1087         * scripts/functions/call: Add a test for PR/1517 and PR/1527: make
1088         sure $(call ...) doesn't eval its arguments and that you can
1089         invoke foreach from it without looping forever.
1091 1999-12-15  Paul D. Smith  <psmith@gnu.org>
1093         * scripts/targets/INTERMEDIATE: Add a test for PR/1423: make sure
1094         .INTERMEDIATE settings on files don't disable them as implicit
1095         intermediate possibilities.
1097 1999-12-01  Paul D. Smith  <psmith@gnu.org>
1099         * scripts/features/double_colon: Add a test for PR/1476: Try
1100         double-colon rules as non-goal targets and during parallel builds
1101         to make sure they're handled serially.
1103 1999-11-17  Paul D. Smith  <psmith@gnu.org>
1105         * scripts/functions/if: Add a test for PR/1429: put some text
1106         after an if-statement to make sure it works.
1108         * scripts/features/targetvars: Add a test for PR/1380: handling +=
1109         in target-specific variable definitions correctly.
1111 1999-10-15  Paul D. Smith  <psmith@gnu.org>
1113         * scripts/variables/MAKEFILES: This was really broken: it didn't
1114         test anything at all, really.  Rewrote it, plus added a test for
1115         PR/1394.
1117 1999-10-13  Paul D. Smith  <psmith@gnu.org>
1119         * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't
1120         behave properly when used with recursive targets".
1122 1999-10-08  Paul D. Smith  <psmith@gnu.org>
1124         * scripts/features/targetvars: Add a check for PR/1378:
1125         "Target-specific vars don't inherit correctly"
1127 1999-09-29  Paul D. Smith  <psmith@gnu.org>
1129         * test_driver.pl (get_osname): Change $fancy_file_names to
1130         $short_filenames and reverse the logic.
1131         (run_each_test): Change test of non-existent $port_host to use
1132         $short_filenames--problem reported by Eli Zaretskii.
1134 1999-09-23  Paul D. Smith  <psmith@gnu.org>
1136         * scripts/features/parallelism: Add a check to ensure that the
1137         jobserver works when we re-invoke.  Also cleaned up the tests a
1138         little, reducing the number of rules we use so the test won't need
1139         as many "sleep" commands.
1141 1999-09-16  Paul D. Smith  <psmith@gnu.org>
1143         * scripts/features/reinvoke: Remove invocations of "touch" in
1144         makefiles.  See the comments on the touch function rewrite below.
1145         Note that UNIX touch behaves the same way if the file already
1146         exists: it sets the time to the _local_ time.  We don't want
1147         this.  This is probably a good tip for makefile writers in
1148         general, actually... where practical.
1149         * scripts/options/dash-l: Ditto.
1150         * scripts/options/dash-n: Ditto.
1152         * test_driver.pl (run_each_test): In retrospect, I don't like the
1153         .lN/.bN/.dN postfix required by DOS.  So, for non-DOS systems I
1154         changed it back to use .log, .base, and .diff.
1156         * run_make_tests.pl (set_more_defaults): Move the check for the
1157         make pathname to here from set_defaults (that's too early since it
1158         happens before the command line processing).
1159         Create a new variable $port_type, calculated from $osname, to
1160         specify what kind of system we're running on.  We should integrate
1161         the VOS stuff here, too.
1162         (valid_option): Comment out the workdir/-work stuff so people
1163         won't be fooled into thinking it works... someone needs to fix
1164         this, though!
1166         * scripts/functions/origin: Use $port_type instead of $osname.
1167         * scripts/functions/foreach: Ditto.
1168         * scripts/features/default_names: Ditto.
1170 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1172         * test_driver.pl (touch): Rewrite this function.  Previously it
1173         used to use utime() to hard-set the time based on the current
1174         local clock, or, if the file didn't exist, it merely created it.
1175         This mirrors exactly what real UNIX touch does, but it fails badly
1176         on networked filesystems where the FS server clock is skewed from
1177         the local clock: normally modifying a file causes it to get a mod
1178         time based on the _server's_ clock.  Hard-setting it based on the
1179         _local_ clock causes gratuitous errors and makes the tests
1180         unreliable except on local filesystems.  The new function will
1181         simply modify the file, allowing the filesystem to set the mod
1182         time as it sees fit.
1184         * scripts/features/parallelism: The second test output could
1185         change depending on how fast some scripts completed; use "sleep"
1186         to force the order we want.
1188         * test_driver.pl (toplevel): A bug in Perl 5.000 to Perl 5.004
1189         means that "%ENV = ();" doesn't do the right thing.  This worked
1190         in Perl 4 and was fixed in Perl 5.004_01, but use a loop to delete
1191         the environment rather than require specific versions.
1193         * run_make_tests.pl (set_more_defaults): Don't use Perl 5 s///
1194         modifier "s", so the tests will run with Perl 4.
1195         (set_more_defaults): Set $pure_log to empty if there's no -logfile
1196         option in PURIFYOPTIONS.
1197         (setup_for_test): Don't remove any logs unless $pure_log is set.
1199 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
1201         * scripts/features/reinvoke: Put the SHELL definition in the right
1202         test makefile.
1204 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1206         ChangeLog file for the test suite created.
1209 Copyright (C) 1992-2012 Free Software Foundation, Inc.
1210 This file is part of GNU Make.
1212 GNU Make is free software; you can redistribute it and/or modify it under the
1213 terms of the GNU General Public License as published by the Free Software
1214 Foundation; either version 3 of the License, or (at your option) any later
1215 version.
1217 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
1218 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
1219 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
1221 You should have received a copy of the GNU General Public License along with
1222 this program.  If not, see <http://www.gnu.org/licenses/>.