1 2012-09-09 Paul Smith <psmith@gnu.org>
3 * scripts/features/escape: Check that backslashes before
4 non-special characters are not removed.
6 * scripts/features/utf8: New test for UTF-8 support.
7 See Savannah bug #36529.
9 * scripts/targets/POSIX: Add tests for default macro values as
10 specified by IEEE Std 1003.1-2008. See Savannah bug #37069.
12 2012-03-04 Paul Smith <psmith@gnu.org>
14 * scripts/features/se_explicit: Test $(x:%=%) format in secondary
15 expansion prerequisite lists. See Savannah bug #16545.
17 * scripts/features/escape: Test escaped ":" in prerequisite lists.
18 See Savannah bug #12126.
20 * scripts/variables/private: Test appending private variables in
21 pattern-specific target rules. See Savannah bug #35468.
23 2012-03-03 Paul Smith <psmith@gnu.org>
25 * scripts/variables/SHELL: Ensure .SHELLFLAGS works with options
26 separated by whitespace.
28 * scripts/targets/ONESHELL: Try .ONESHELL in combination with
29 whitespace-separated options in .SHELLFLAGS. See Savannah bug #35397.
31 * scripts/functions/filter-out: Add filter tests and test escape
32 operations. See Savannah bug #35410.
34 * guile.supp: Suppress valgrind errors from Guile
35 * run_make_tests.pl: Use the Guile suppression file.
37 * scripts/misc/bs-nl: Check for POSIX and non-POSIX
38 backslash/newline handling. Addresses Savannah bug #16670.
40 2012-01-29 Paul Smith <psmith@gnu.org>
42 * scripts/variables/flavors: Add tests for ::=
43 * scripts/variables/define: Ditto
45 * scripts/functions/file: Test the new $(file ...) function.
47 2012-01-12 Paul Smith <psmith@gnu.org>
49 * scripts/functions/guile: New regression tests for Guile support.
51 2011-12-10 Paul Smith <psmith@gnu.org>
53 * scripts/targets/SECONDARY: Add prereq statements to ensure rules
54 are printed in the right order for test #9
56 2011-11-14 Paul Smith <psmith@gnu.org>
58 * scripts/features/double_colon: Check double-colon with escaped
59 filenames. See Savannah bug #33399.
61 2011-09-18 Paul Smith <psmith@gnu.org>
63 * scripts/features/parallelism: On re-exec make sure we preserve
64 the value of MAKEFLAGS when necessary. See Savannah bug #33873.
66 * scripts/features/vpath3: Verify handling of -lfoo libraries
67 found via vpath vs. the standard directory search.
68 See Savannah bug #32511.
70 2011-09-12 Paul Smith <psmith@gnu.org>
72 * scripts/functions/call: Verify that using export in a $(call ...)
73 context creates a global variable. See Savannah bug #32498.
75 2011-09-02 Paul Smith <psmith@gnu.org>
77 * scripts/options/dash-n: Verify that in "-n -t", the -n takes
78 priority. Patch from Michael Witten <mfwitten@gmail.com>.
80 2011-08-29 Paul Smith <psmith@gnu.org>
82 * scripts/features/varnesting: Test resetting of variables while
83 expanding them. See Savannah patch #7534
85 2011-06-12 Paul Smith <psmith@gnu.org>
87 * scripts/features/archives: Check archives with whitespace at the
88 beginning, end, and extra in the middle.
89 Another test for Savannah bug #30612.
91 2011-05-07 Paul Smith <psmith@gnu.org>
93 * scripts/variables/private: Ensure we skip private variables when
94 appending. Test for Savannah bug #32872.
96 * scripts/functions/wildcard: Verify wildcard used to test for
97 file existence/non-existence.
99 2011-05-02 Paul Smith <psmith@gnu.org>
101 * scripts/functions/sort: Add a test for Savannah bug #33125.
103 2011-04-17 David A. Wheeler <dwheeler@dwheeler.com>
105 * scripts/features/shell_assignment: Regression for "!=" feature
107 2010-11-06 Paul Smith <psmith@gnu.org>
109 * scripts/features/targetvars: Fix known-good output for BS/NL changes.
110 * scripts/functions/call: Ditto.
111 * scripts/variables/special: Ditto.
113 * scripts/misc/bs-nl: New test suite for backslash/newline testing.
115 2010-08-29 Paul Smith <psmith@gnu.org>
117 * scripts/features/errors: Add new error message to output text.
118 * scripts/variables/SHELL: Ditto.
119 * scripts/targets/POSIX: Ditto.
120 * scripts/options/dash-k: Ditto.
121 * scripts/features/vpathplus: Ditto.
122 * scripts/features/patternrules: Ditto.
123 * scripts/features/parallelism: Ditto.
125 2010-08-13 Paul Smith <psmith@gnu.org>
127 * scripts/features/archives: New regression tests for archive
128 support. Test for fix to Savannah bug #30612.
130 * run_make_tests.pl (set_more_defaults): Set a %FEATURES hash to
131 the features available in $(.FEATURES).
133 2010-08-10 Paul Smith <psmith@gnu.org>
135 * scripts/features/reinvoke: Ensure command line variable settings
136 are preserved across make re-exec. Tests Savannah bug #30723.
138 2010-07-28 Paul Smith <psmith@gnu.org>
140 * scripts/targets/POSIX: Compatibility issues with Solaris (and
141 Tru64?); "false" returns different exit codes, and set -x shows
142 output with extra whitespace. Run the commands by hand first to
143 find out what the real shell would do, then compare what make does.
144 * scripts/variables/SHELL: Ditto.
146 2010-07-12 Paul Smith <psmith@gnu.org>
148 * test_driver.pl: Add a new $perl_name containing the path to Perl.
149 * run_make_tests.pl (run_make_test): Replace the special string
150 #PERL# in a makefile etc. with the path the Perl executable so
151 makefiles can use it.
153 * scripts/targets/ONESHELL: Add a new set of regression tests for
154 the .ONESHELL feature.
156 2010-07-06 Paul Smith <psmith@gnu.org>
158 * scripts/variables/SHELL: Test the new .SHELLFLAGS variable.
160 * scripts/targets/POSIX: New file. Test the .POSIX special target.
161 Verify that enabling .POSIX changes the shell flags to set -e.
163 2010-07-01 Paul Smith <psmith@gnu.org>
165 * scripts/features/recursion: Add a space to separate command-line
166 args. Fixes Savannah bug #29968.
168 2009-11-12 Boris Kolpackov <boris@codesynthesis.com>
170 * scripts/features/vpath3: Test for the new library search
173 2009-10-06 Boris Kolpackov <boris@codesynthesis.com>
175 * scripts/features/se_explicit: Enable the test for now fixed
178 2009-10-06 Boris Kolpackov <boris@codesynthesis.com>
180 * scripts/variables/undefine: Tests for the new undefine feature.
182 2009-10-03 Paul Smith <psmith@gnu.org>
184 * scripts/features/parallelism: Test for open Savannah bug #26846.
186 * scripts/variables/MAKE: Rewrite for new run_make_test() format.
188 * scripts/variables/MAKEFLAGS: Created.
189 Add test for Savannah bug #2216 (still open).
191 * scripts/features/include: Test for Savannah bug #102 (still open).
193 2009-09-30 Boris Kolpackov <boris@codesynthesis.com>
195 * scripts/features/include: Add diagnostics issuing tests for
196 cases where targets have been updated and failed with the
197 dontcare flag. Savannah bugs #15110, #25493, #12686, #17740.
199 2009-09-28 Paul Smith <psmith@gnu.org>
201 * scripts/functions/shell: Add regression test for Savannah bug
204 * scripts/features/se_explicit: Add regression tests for Savannah
205 bug #25780 (still open).
207 * run_make_tests.pl (valid_option): Add a new flag, -all([-_]?tests)?
208 that runs tests we know will fail. This allows us to add
209 regression tests to the test suite for bugs that haven't been
212 2009-09-28 Boris Kolpackov <boris@codesynthesis.com>
214 * scripts/features/patspecific_vars: Add a test for the shortest
217 * scripts/features/patternrules: Add a test for the shortest stem
220 2009-09-24 Paul Smith <psmith@gnu.org>
222 * scripts/features/se_implicit: Add a test for order-only
223 secondary expansion prerequisites.
225 2009-09-23 Paul Smith <psmith@gnu.org>
227 * scripts/features/patternrules: Test that we can remove pattern
228 rules, both single and multiple prerequisites. Savannah bug #18622.
230 * scripts/features/echoing: Rework for run_make_test().
232 2009-06-14 Paul Smith <psmith@gnu.org>
234 * scripts/features/vpath: Verify we don't get bogus circular
235 dependency warnings if we choose a different file via vpath during
236 update. Savannah bug #13529.
238 2009-06-13 Paul Smith <psmith@gnu.org>
240 * scripts/variables/MAKEFILES: Verify that MAKEFILES included
241 files (and files included by them) don't set the default goal.
244 * scripts/functions/wildcard: Test that wildcards with
245 non-existent glob matchers return empty.
247 2009-06-09 Paul Smith <psmith@gnu.org>
249 * scripts/options/dash-B: Test the $? works correctly with -B.
252 * scripts/features/patternrules: Test that dependencies of
253 "also_make" targets are created properly. Savannah bug #19108.
255 * test_driver.pl (compare_output): Create a "run" file for failed
256 tests containing the command that was run.
257 (get_runfile): New function.
259 * run_make_tests.pl (valid_option): Enhanced support for valgrind:
260 allow memcheck and massif tools.
262 * scripts/features/patternrules: Have to comment out a line in the
263 first test due to backing out a change that broke the implicit
264 rule search algorithm. Savannah bug #17752.
265 * scripts/misc/general4: Remove a test that is redundant with
268 * scripts/features/parallelism: Add a test for re-exec with
269 jobserver master override. Savannah bug #18124.
271 2009-06-08 Paul Smith <psmith@gnu.org>
273 * scripts/features/targetvars: Add a test for continued target
274 vars after a semicolon. Savannah bug #17521.
276 2009-06-07 Paul Smith <psmith@gnu.org>
278 * scripts/features/se_explicit: Make sure we catch defining
279 prereqs during snap_deps(). Savannah bug #24622.
281 * scripts/variables/automatic: Check prereq ordering when the
282 target with the recipe has no prereqs. Savannah bug #21198.
284 * scripts/variables/LIBPATTERNS: Add a new set of test for
285 $(.LIBPATTERNS) (previously untested!)
287 2009-06-04 Paul Smith <psmith@gnu.org>
289 * scripts/variables/SHELL: The export target-specific SHELL test
290 has an incorrect known-good-value.
292 * scripts/misc/general4: Check for whitespace (ffeed, vtab, etc.)
294 * scripts/features/se_explicit: Add tests for Savannah bug #24588.
296 2009-05-31 Paul Smith <psmith@gnu.org>
298 * scripts/variables/DEFAULT_GOAL: Add tests for Savannah bug #25697.
300 * scripts/features/targetvars: Add tests of overrides for Savannah
302 * scripts/features/patspecific_vars: Ditto.
304 * scripts/features/patternrules: Add a test for Savannah bug #26593.
306 2009-05-30 Paul Smith <psmith@gnu.org>
308 * scripts/variables/flavors: Update with new variable flavor tests.
309 * scripts/variables/define: Create a new set of tests for
310 define/endef and move those aspects of the flavors suite here.
312 2009-05-25 Paul Smith <psmith@gnu.org>
314 * scripts/features/targetvars: Ditto.
316 * scripts/features/export: Test new variable parsing abilities.
318 2009-02-23 Ramon Garcia <ramon.garcia.f@gmail.com>
320 * scripts/variables/private: Create a new suite of tests for 'private'.
322 2007-11-04 Paul Smith <psmith@gnu.org>
324 * scripts/functions/eval: Update error message for command -> recipe.
326 * test_driver.pl (compare_output): Allow the answer to be a regex,
327 if surrounded by '/'.
328 * scripts/misc/close_stdout: Use a regex for the answer, since
329 sometimes the error will have a description and sometimes it won't.
331 2007-09-10 Paul Smith <psmith@gnu.org>
333 * scripts/variables/special: Add tests for .RECIPEPREFIX variable.
335 2007-08-15 Paul Smith <psmith@gnu.org>
337 These test cases were contributed by
338 Icarus Sparry <savannah@icarus.freeuk.com> and J. David Bryan for
339 Savannah bugs #3330 and #15919.
341 * scripts/targets/SECONDARY: Add tests for Savannah bugs 3330 and
344 * scripts/features/parallelism: Add tests for wrong answer/hang
345 combining INTERMEDIATE, order-only prereqs, and parallelism.
346 See Savannah bugs 3330 and 15919.
348 2007-07-13 Paul Smith <psmith@gnu.org>
350 Install a timeout so tests can never loop infinitely.
351 Original idea and patch for a single-test version provided by
352 Icarus Sparry <savannah@icarus.freeuk.com>
354 * test_driver.pl (_run_command): New function: this is called by
355 other functions to actually run a command. Before we run it,
356 install a SIGALRM handler and set up a timer to go off in the
357 future (default is 5s; this can be overridden by individual tests).
358 (run_command): Call it.
359 (run_command_with_output): Call it.
361 * run_make_tests.pl (run_make_with_options): Override the default
362 timeout if the caller requests it.
363 (run_make_test): Pass any timeout override to run_make_with_options.
365 * scripts/features/parallelism: Increase the timeout for long tests.
366 * scripts/options/dash-l: Ditto.
368 2006-10-01 Paul Smith <psmith@paulandlesley.org>
370 * run_make_tests.pl (set_more_defaults): Remove setting of LANG in
371 ENV here. This doesn't always work.
372 * test_driver.pl (toplevel): Set LC_ALL to 'C' in the make
373 environment. Fixes Savannah bug #16698.
375 2006-09-30 Paul Smith <psmith@paulandlesley.org>
377 * scripts/variables/automatic: Add back the test for bug #8154.
379 2006-04-01 Paul D. Smith <psmith@gnu.org>
381 * scripts/functions/realpath: Don't run tests with multiple
382 initial slashes on Windows: those paths mean something different.
384 2006-03-19 Paul D. Smith <psmith@gnu.org>
386 * scripts/features/parallelism: Test that the jobserver is
387 properly managed when we have to re-exec the master instance of
390 2006-03-17 Boris Kolpackov <boris@kolpackov.net>
392 * scripts/features/statipattrules: Add tests for bug #16053.
394 2006-03-09 Paul Smith <psmith@gnu.org>
396 * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts
397 with DOS drive letters. Fixes Savannah bug #15947.
399 * test_driver.pl (run_each_test): Set the status properly even
400 when a test fails to execute. Fixes Savannah bug #15942.
402 * scripts/functions/foreach: Use a different environment variable
403 other than PATH to avoid differences with Windows platforms.
404 Fixes Savannah bug #15938.
406 2006-03-05 Paul D. Smith <psmith@gnu.org>
408 * run_make_tests.pl (set_more_defaults): Add CYGWIN_NT as a port
409 type W32. Fixed Savannah bug #15937.
411 * scripts/features/default_names: Don't call error() when the test
412 fails. Fixes Savannah bug #15941.
414 2006-02-17 Paul D. Smith <psmith@gnu.org>
416 * scripts/features/targetvars: Test a complex construction which
417 guarantees that we have to merge variable lists of different
418 sizes. Tests for Savannah bug #15757.
420 2006-02-15 Paul D. Smith <psmith@gnu.org>
422 * scripts/functions/error: Make sure filename/lineno information
423 is related to where the error is expanded, not where it's set.
424 * scripts/functions/warning: Ditto.
425 * scripts/functions/foreach: Check for different error conditions.
426 * scripts/functions/word: Ditto.
427 * scripts/variables/negative: Test some variable reference failure
429 * scripts/options/warn-undefined-variables: Test the
430 --warn-undefined-variables flag.
432 2006-02-09 Paul D. Smith <psmith@gnu.org>
434 * run_make_tests.pl (set_more_defaults): Update valgrind support
436 * test_driver.pl (toplevel): Skip all hidden files/directories (ones
439 * scripts/functions/andor: Tests for $(and ..) and $(or ...)
442 2006-02-08 Boris Kolpackov <boris@kolpackov.net>
444 * scripts/features/parallelism: Add a test for bug #15641.
446 2006-02-06 Paul D. Smith <psmith@gnu.org>
448 * scripts/options/dash-W: Add a test for bug #15341.
450 2006-01-03 Paul D. Smith <psmith@gnu.org>
452 * scripts/variables/automatic: Add a test for bug #8154.
454 * README: Update to reflect the current state of the test suite.
456 2005-12-12 Paul D. Smith <psmith@gnu.org>
458 * scripts/features/parallelism, scripts/functions/wildcard,
459 scripts/targets/FORCE, scripts/targets/PHONY,
460 scripts/targets/SILENT: Use the default setting for
461 $delete_command. Fixes bug #15085.
463 * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file.
465 2005-12-11 Paul D. Smith <psmith@gnu.org>
467 * scripts/misc/general4: Test implicit rules with '$' in the
468 prereq list & prereq patterns.
469 * scripts/features/se_implicit: Add in .SECONDEXPANSION settings.
471 2005-12-09 Boris Kolpackov <boris@kolpackov.net>
473 * scripts/features/patternrules: Add a test for bug #13022.
475 2005-12-07 Boris Kolpackov <boris@kolpackov.net>
477 * scripts/features/double_colon: Add a test for bug #14334.
479 2005-11-17 Boris Kolpackov <boris@kolpackov.net>
481 * scripts/functions/flavor: Add a test for the flavor function.
483 2005-11-14 Boris Kolpackov <boris@kolpackov.net>
485 * scripts/variables/INCLUDE_DIRS: Add a test for the .INCLUDE_DIRS
488 2005-10-24 Paul D. Smith <psmith@gnu.org>
490 * scripts/misc/general4: Test '$$' in prerequisites list.
491 * scripts/features/statipattrules: Rewrite to use run_make_test().
492 Add various static pattern info.
493 * scripts/features/se_statpat: Enable .SECONDEXPANSION target.
494 * scripts/features/se_explicit: Add tests for handling '$$' in
495 prerequisite lists with and without setting .SECONDEXPANSION.
496 * scripts/features/order_only: Convert to run_make_test().
497 * run_make_tests.pl (set_more_defaults): If we can't get the value
498 of $(MAKE) from make, then fatal immediately.
500 2005-08-31 Paul D. Smith <psmith@gnu.org>
502 * run_make_tests.pl (get_this_pwd): Require the POSIX module (in
503 an eval to trap errors) and if it exists, use POSIX::getcwd to
504 find the working directory. If it doesn't exist, go back to the
505 previous methods. This tries to be more accurate on Windows
508 2005-08-29 Paul D. Smith <psmith@gnu.org>
510 * scripts/functions/abspath: Add some text to the error messages
511 to get a better idea of what's wrong. Make warnings instead of
514 * scripts/features/patspecific_vars: Don't use "test", which is
515 UNIX specific. Print the values and let the test script match
518 2005-08-25 Paul Smith <psmith@gnu.org>
520 * scripts/variables/SHELL: Use a /./ prefix instead of //: the
521 former works better with non-UNIX environments. Fixes Savannah
524 2005-08-13 Boris Kolpackov <boris@kolpackov.net>
526 * scripts/functions/wildcard: Wrap calls to $(wildcard ) with
527 $(sort) so that the resulting order is no longer filesystem-
530 2005-08-10 Boris Kolpackov <boris@kolpackov.net>
532 * scripts/features/statipattrules: Add a test for Savannah bug #13881.
534 2005-08-07 Paul D. Smith <psmith@gnu.org>
536 * scripts/features/parallelism: Add a test for a bug reported by
537 Michael Matz (matz@suse.de) in which make exits without waiting
538 for all its children in some situations during parallel builds.
540 2005-07-08 Paul D. Smith <psmith@gnu.org>
542 * test_driver.pl: Reset the environment to a clean value every
543 time before we invoke make. I'm suspicious that the environment
544 isn't handled the same way in Windows as it is in UNIX, and some
545 variables are leaking out beyond the tests they are intended for.
546 Create an %extraENV hash tests can set to add more env. vars.
547 * tests/scripts/features/export: Change to use %extraENV.
548 * tests/scripts/functions/eval: Ditto.
549 * tests/scripts/functions/origin: Ditto.
550 * tests/scripts/options/dash-e: Ditto.
551 * tests/scripts/variables/SHELL: Ditto.
553 2005-06-27 Paul D. Smith <psmith@gnu.org>
555 * scripts/options/dash-W: Use 'echo >>' instead of touch to update
557 * scripts/features/reinvoke: Rewrite to be safer on systems with
558 subsecond timestamps.
559 * scripts/features/patternrules: False exits with different error
560 codes on different systems (for example, Linux => 1, Solaris => 255).
562 * scripts/options/dash-W: Set the timestamp to foo.x in the future,
563 to be sure it will be considered updated when it's remade.
565 2005-06-26 Paul D. Smith <psmith@gnu.org>
567 * scripts/functions/shell: New test suite for the shell function.
569 2005-06-25 Paul D. Smith <psmith@gnu.org>
571 * scripts/features/include: Test include/-include/sinclude with no
572 arguments. Tests fix for Savannah bug #1761.
574 * scripts/misc/general3: Implement comprehensive testing of
575 backslash-newline behavior in command scripts: various types of
576 quoting, fast path / slow path, etc.
577 Tests fix for Savannah bug #1332.
579 * scripts/options/symlinks: Test symlinks to non-existent files.
580 Tests fix for Savannah bug #13280.
582 * scripts/misc/general3: Test semicolons in variable references.
583 Tests fix for Savannah bug #1454.
585 * scripts/variables/MAKE_RESTARTS: New file: test the
586 MAKE_RESTARTS variable.
587 * scripts/options/dash-B: Test re-exec doesn't loop infinitely.
588 Tests fix for Savannah bug #7566.
589 * scripts/options/dash-W: New file: test the -W flag, including
590 re-exec infinite looping.
592 2005-06-12 Paul D. Smith <psmith@gnu.org>
594 * scripts/misc/close_stdout: Add a test for Savannah bug #1328.
595 This test only works on systems that have /dev/full (e.g., Linux).
597 2005-06-09 Paul D. Smith <psmith@gnu.org>
599 * scripts/functions/foreach: Add a test for Savannah bug #11913.
601 2005-05-31 Boris Kolpackov <boris@kolpackov.net>
603 * scripts/features/include: Add a test for Savannah bug #13216.
604 * scripts/features/patternrules: Add a test for Savannah bug #13218.
606 2005-05-13 Paul D. Smith <psmith@gnu.org>
608 * scripts/features/conditionals: Add tests for the new if... else
611 2005-05-03 Paul D. Smith <psmith@gnu.org>
613 * scripts/variables/DEFAULT_GOAL: Rename DEFAULT_TARGET to
616 2005-05-02 Paul D. Smith <psmith@gnu.org>
618 * scripts/features/parallelism: Add a test for exporting recursive
619 variables containing $(shell ) calls. Rewrite this script to use
620 run_make_test() everywhere.
622 2005-04-07 Paul D. Smith <psmith@gnu.org>
624 * scripts/targets/SECONDARY: Add a test for Savannah bug #12331.
626 2005-03-15 Boris Kolpackov <boris@kolpackov.net>
628 * scripts/variables/automatic: Add a test for Savannah bug #12320.
630 2005-03-10 Boris Kolpackov <boris@kolpackov.net>
632 * scripts/features/patternrules: Add a test for Savannah bug #12267.
634 2005-03-09 Boris Kolpackov <boris@kolpackov.net>
636 * scripts/variables/DEFAULT_TARGET: Add a test for Savannah
639 2005-03-04 Boris Kolpackov <boris@kolpackov.net>
641 * scripts/features/patternrules: Add a test for Savannah bug #12202.
643 2005-03-03 Boris Kolpackov <boris@kolpackov.net>
645 * scripts/features/se_implicit: Add a test for stem
646 termination bug. Add a test for stem triple-expansion bug.
648 * scripts/features/se_statpat: Add a test for stem
649 triple-expansion bug.
651 * scripts/features/statipattrules: Change test #4 to reflect
652 new way empty prerequisite list is handled.
655 2005-03-01 Boris Kolpackov <boris@kolpackov.net>
657 * scripts/features/statipattrules: Add a test for
660 2005-02-28 Paul D. Smith <psmith@gnu.org>
662 * scripts/options/dash-q: Add a test for Savannah bug # 7144.
664 * scripts/options/symlinks: New file to test checking of symlink
665 timestamps. Can't use filename dash-L because it conflicts with
666 dash-l on case-insensitive filesystems.
668 * scripts/variables/MAKEFILE_LIST, scripts/variables/MFILE_LIST:
669 Rename MAKEFILE_LIST test to MFILE_LIST, for systems that need 8.3
672 2005-02-28 Boris Kolpackov <boris@kolpackov.net>
674 * scripts/variables/DEFAULT_TARGET: Test the .DEFAULT_TARGET
677 2005-02-27 Boris Kolpackov <boris@kolpackov.net>
679 * scripts/features/se_explicit: Test the second expansion in
681 * scripts/features/se_implicit: Test the second expansion in
683 * scripts/features/se_statpat: Test the second expansion in
684 static pattern rules.
685 * scripts/variables/automatic: Fix to work with the second
688 * scripts/misc/general4: Add a test for bug #12091.
690 2005-02-27 Paul D. Smith <psmith@gnu.org>
692 * scripts/functions/eval: Check that eval of targets within
693 command scripts fails. See Savannah bug # 12124.
695 2005-02-26 Paul D. Smith <psmith@gnu.org>
697 * test_driver.pl (compare_output): If a basic comparison of the
698 log and answer doesn't match, try harder: change all backslashes
699 to slashes and all CRLF to LF. This helps on DOS/Windows systems.
701 2005-02-09 Paul D. Smith <psmith@gnu.org>
703 * scripts/features/recursion: Test command line variable settings:
704 only one instance of a given variable should be provided.
706 2004-11-30 Boris Kolpackov <boris@kolpackov.net>
708 * tests/scripts/functions/abspath: New file: test `abspath'
711 * tests/scripts/functions/realpath: New file: test `realpath'
714 2004-11-28 Paul D. Smith <psmith@gnu.org>
716 * scripts/options/dash-C [WINDOWS32]: Add a test for bug #10252;
717 this doesn't really test anything useful in UNIX but...
719 * scripts/variables/SHELL: New file: test proper handling of SHELL
720 according to POSIX rules. Fixes bug #1276.
722 2004-10-21 Boris Kolpackov <boris@kolpackov.net>
724 * scripts/functions/word: Test $(firstword ) and $(lastword ).
726 2004-10-05 Boris Kolpackov <boris@kolpackov.net>
728 * scripts/features/patspecific_vars: Test simple/recursive
731 2004-09-28 Boris Kolpackov <boris@kolpackov.net>
733 * scripts/features/include: Test dontcare flag inheritance
734 when rebuilding makefiles.
736 2004-09-27 Boris Kolpackov <boris@kolpackov.net>
738 * scripts/features/patspecific_vars: Test exported variables.
740 2004-09-22 Paul D. Smith <psmith@gnu.org>
742 * run_make_tests.pl (run_make_test): Don't add newlines to the
743 makestring or answer if they are completely empty.
745 * scripts/features/patternrules: Rename from implicit_prereq_eval.
747 * scripts/test_template: Rework the template.
749 2004-09-21 Boris Kolpackov <boris@kolpackov.net>
751 * run_make_tests.pl: Change `#!/usr/local/bin/perl' to be
752 `#!/usr/bin/env perl'.
754 * scripts/features/implicit_prereq_eval: Test implicit rule
755 prerequisite evaluation code.
757 2004-09-21 Paul D. Smith <psmith@gnu.org>
759 * run_make_tests.pl (run_make_test): Enhance to allow the make
760 string to be undef: in that case it reuses the previous make
761 string. Allows multiple tests on the same makefile.
763 * scripts/variables/flavors: Add some tests for prefix characters
764 interacting with define/endef variables.
766 2004-09-20 Paul D. Smith <psmith@gnu.org>
768 * scripts/functions/substitution: Rewrite to use run_make_test()
769 interface, and add test for substitution failures reported by
770 Markus Mauhart <qwe123@chello.at>.
772 2004-03-22 Paul D. Smith <psmith@gnu.org>
774 * test_driver.pl (run_each_test, toplevel, compare_output): Change
775 to track both the testing categories _AND_ the number of
776 individual tests, and report both sets of numbers.
778 2004-02-21 Paul D. Smith <psmith@gnu.org>
780 * scripts/functions/origin: Set our own environment variable
781 rather than relying on $HOME.
783 2004-01-21 Paul D. Smith <psmith@gnu.org>
785 * scripts/features/conditionals: Test arguments to ifn?def which
786 contain whitespace (such as a function that is evaluated). Bug
789 2004-01-07 Paul D. Smith <psmith@gnu.org>
791 * scripts/features/order_only: Test order-only prerequisites in
792 pattern rules (patch #2349).
794 2003-11-02 Paul D. Smith <psmith@gnu.org>
796 * scripts/functions/if: Test if on conditionals with trailing
797 whitespace--bug #5798.
799 * scripts/functions/eval: Test eval in a non-file context--bug #6195.
801 2003-04-19 Paul D. Smith <psmith@gnu.org>
803 * scripts/features/patspecific_vars: Test multiple patterns
804 matching the same target--Bug #1405.
806 2003-04-09 Paul D. Smith <psmith@gnu.org>
808 * run_make_tests.pl (set_more_defaults): A new $port_type of
809 'OS/2' for (surprise!) OS/2. Also choose a wait time of 2 seconds
812 2003-03-28 Paul D. Smith <psmith@gnu.org>
814 * scripts/targets/SECONDARY: Test the "global" .SECONDARY (with
815 not prerequisites)--Bug #2515.
817 2003-01-30 Paul D. Smith <psmith@gnu.org>
819 * scripts/features/targetvars: Test very long target-specific
820 variable definition lines (longer than the default make buffer
821 length). Tests patch # 1022.
823 * scripts/functions/eval: Test very recursive $(eval ...) calls
824 with simple variable expansion (bug #2238).
826 * scripts/functions/word: Test error handling for word and
827 wordlist functions (bug #2407).
829 2003-01-22 Paul D. Smith <psmith@gnu.org>
831 * scripts/functions/call: Test recursive argument masking (bug
834 2002-10-25 Paul D. Smith <psmith@gnu.org>
836 * scripts/functions/eval: Test using $(eval ...) inside
837 conditionals (Bug #1516).
839 2002-10-14 Paul D. Smith <psmith@gnu.org>
841 * scripts/options/dash-t: Add a test for handling -t on targets
842 with no commands (Bug #1418).
844 2002-10-13 Paul D. Smith <psmith@gnu.org>
846 * scripts/features/targetvars: Add a test for exporting
847 target-specific vars (Bug #1391).
849 2002-10-05 Paul D. Smith <psmith@gnu.org>
851 * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D},
854 2002-09-23 Paul D. Smith <psmith@gnu.org>
856 * scripts/features/escape: Test handling of escaped comment
857 characters in targets and prerequisites.
859 2002-09-18 Paul D. Smith <psmith@gnu.org>
861 * scripts/features/export: Test export/unexport of multiple
862 variables in a single command.
864 2002-09-17 Paul D. Smith <psmith@gnu.org>
866 * scripts/features/targetvars: Tests for Bug #940: test
867 target-specific and pattern-specific variables in conjunction with
868 double-colon targets.
870 2002-09-10 Paul D. Smith <psmith@gnu.org>
872 * test_driver.pl (compare_output): Match the new format for time
875 * scripts/features/export: Created. Add tests for export/unexport
876 capabilities, including exporting/unexporting expanded variables.
878 * scripts/features/conditionals: Add a test for expanded variables
879 in ifdef conditionals.
881 2002-09-04 Paul D. Smith <psmith@gnu.org>
883 * scripts/features/reinvoke: Change touch/sleep combos to utouch
885 * scripts/features/vpathgpath: Ditto.
886 * scripts/features/vpathplus: Ditto.
887 * scripts/options/dash-n: Ditto.
888 * scripts/targets/INTERMEDIATE: Ditto.
889 * scripts/targets/SECONDARY: Ditto.
891 * scripts/options/dash-t: Added a test for the -t bug fixed by
892 Henning Makholm. This test was also contributed by Henning.
894 * scripts/misc/general4: Add a test suite for obscure algorithmic
895 features of make. First test: make sure creation subdirectories
896 as prerequisites of targets works properly.
898 * scripts/misc/version: Remove this bogus test.
900 2002-08-07 Paul D. Smith <psmith@gnu.org>
902 * scripts/misc/general3: Add a test for makefiles that don't end
905 * scripts/variables/special: Create tests for the special
906 variables (.VARIABLES and .TARGETS). Comment out .TARGETS test
907 for now as it's not yet supported.
909 2002-08-01 Paul D. Smith <psmith@gnu.org>
911 * scripts/options/dash-B: Add a test for the new -B option.
913 2002-07-11 Paul D. Smith <psmith@gnu.org>
915 * run_make_tests.pl (valid_option): Add support for Valgrind. Use
916 -valgrind option to the test suite.
917 (set_more_defaults): Set up the file descriptor to capture
918 Valgrind output. We have to unset its close-on-exec flag; we
919 hardcode the value for F_SETFD (2) rather than load it; hopefully
920 this will help us avoid breaking the Windows/DOS test suite.
922 2002-07-10 Paul D. Smith <psmith@gnu.org>
924 * scripts/variables/automatic: Add some tests for $$@, $$(@D), and
927 * test_driver.pl (utouch): Create a new function that creates a
928 file with a specific timestamp offset. Use of this function will
929 let us avoid lots of annoying sleep() invocations in the tests
930 just to get proper timestamping, which will make the tests run a
931 lot faster. So far it's only used in the automatic test suite.
933 2002-07-09 Paul D. Smith <psmith@gnu.org>
935 * scripts/variables/automatic: Create a test for automatic variables.
937 2002-07-08 Paul D. Smith <psmith@gnu.org>
939 * scripts/features/order_only: Test new order-only prerequisites.
941 2002-07-07 Paul D. Smith <psmith@gnu.org>
943 * scripts/functions/eval: Test new function.
944 * scripts/functions/value: Test new function.
945 * scripts/variables/MAKEFILE_LIST: Test new variable.
947 2002-04-28 Paul D. Smith <psmith@gnu.org>
949 * scripts/functions/call: New test: transitive closure
950 implementation using $(call ...) to test variable recursion.
952 2002-04-21 Paul D. Smith <psmith@gnu.org>
954 * test_driver.pl (compare_dir_tree): Ignore CVS and RCS
955 directories in the script directories.
957 2001-05-02 Paul D. Smith <psmith@gnu.org>
959 * scripts/variables/flavors: Test define/endef scripts where only
960 one of the command lines is quiet.
962 2000-06-22 Paul D. Smith <psmith@gnu.org>
964 * scripts/options/dash-q: New file; test the -q option. Includes
967 2000-06-21 Paul D. Smith <psmith@gnu.org>
969 * scripts/features/targetvars: Added a test for PR/1709: allowing
970 semicolons in target-specific variable values.
972 2000-06-19 Paul D. Smith <psmith@gnu.org>
974 * scripts/functions/addsuffix: Test for an empty final argument.
975 Actually this bug might have happened for any function, but this
978 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
980 * scripts/options/general: If parallel jobs are not supported,
981 expect a warning message from Make.
983 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
985 * scripts/options/general: Don't try -jN with N != 1 if parallel
986 jobs are not supported.
988 2000-05-24 Paul D. Smith <psmith@gnu.org>
990 * scripts/options/general: Test general option processing (PR/1716).
992 2000-04-11 Paul D. Smith <psmith@gnu.org>
994 * scripts/functions/strip: Test empty value to strip (PR/1689).
996 2000-04-08 Eli Zaretskii <eliz@is.elta.co.il>
998 * scripts/features/reinvoke: Sleep before updating the target
999 files in the first test, to ensure its time stamp really gets
1000 newer; otherwise Make might re-exec more than once.
1002 2000-04-07 Eli Zaretskii <eliz@is.elta.co.il>
1004 * scripts/features/double_colon: Don't run the parallel tests if
1005 parallel jobs aren't supported.
1007 2000-04-04 Paul D. Smith <psmith@gnu.org>
1009 * scripts/functions/word: wordlist doesn't swap arguments anymore.
1011 2000-03-27 Paul D. Smith <psmith@gnu.org>
1013 * scripts/features/statipattrules: Test that static pattern rules
1014 whose prerequisite patterns resolve to empty strings throw an
1015 error (instead of dumping core). Fixes PR/1670.
1017 * scripts/features/reinvoke: Make more robust by touching "b"
1018 first, to ensure it's not newer than "a".
1019 Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
1020 * scripts/options/dash-n: Ditto.
1022 * scripts/functions/call: Whoops. The fix to PR/1527 caused
1023 recursive invocations of $(call ...) to break. I can't come up
1024 with any way to get both working at the same time, so I backed out
1025 the fix to 1527 and added a test case for recursive calls. This
1026 also tests the fix for PR/1610.
1028 * scripts/features/double_colon: Test that circular dependencies
1029 in double-colon rule sets are detected correctly (PR/1671).
1031 2000-03-26 Paul D. Smith <psmith@gnu.org>
1033 * scripts/targets/INTERMEDIATE: Test that make doesn't remove
1034 .INTERMEDIATE files when given on the command line (PR/1669).
1036 2000-03-08 Paul D. Smith <psmith@gnu.org>
1038 * scripts/options/dash-k: Add a test for error detection by
1039 multiple targets depending on the same prerequisite with -k.
1042 2000-02-07 Paul D. Smith <psmith@gnu.org>
1044 * scripts/features/escape: Add a test for backslash-escaped spaces
1045 in a target name (PR/1586).
1047 2000-02-04 Paul D. Smith <psmith@gnu.org>
1049 * scripts/features/patspecific_vars: Add a test for pattern-specific
1050 target variables inherited from the parent target (PR/1407).
1052 2000-02-02 Paul D. Smith <psmith@gnu.org>
1054 * run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
1055 to make sure sorting order, etc. is predictable.
1056 Reported by Andreas Jaeger <aj@suse.de>.
1058 * run_make_tests.pl (set_more_defaults): Set the $wtime variable
1059 depending on the OS. Eli Zaretskii <eliz@is.elta.co.il> reports
1060 this seems to need to be *4* on DOS/Windows, not just 2. Keep it
1061 1 for other systems.
1062 * scripts/features/vpathplus (touchfiles): Use the $wtime value
1063 instead of hardcoding 2.
1064 * scripts/targets/SECONDARY: Ditto.
1065 * scripts/targets/INTERMEDIATE: Ditto.
1067 2000-01-27 Paul D. Smith <psmith@gnu.org>
1069 * test_driver.pl (toplevel): Don't try to run test scripts which
1070 are really directories.
1072 2000-01-23 Paul D. Smith <psmith@gnu.org>
1074 * scripts/features/include: Remove a check; the fix caused more
1075 problems than the error, so I removed it and removed the test for
1078 2000-01-11 Paul D. Smith <psmith@gnu.org>
1080 * scripts/functions/call: Add a test for PR/1517 and PR/1527: make
1081 sure $(call ...) doesn't eval its arguments and that you can
1082 invoke foreach from it without looping forever.
1084 1999-12-15 Paul D. Smith <psmith@gnu.org>
1086 * scripts/targets/INTERMEDIATE: Add a test for PR/1423: make sure
1087 .INTERMEDIATE settings on files don't disable them as implicit
1088 intermediate possibilities.
1090 1999-12-01 Paul D. Smith <psmith@gnu.org>
1092 * scripts/features/double_colon: Add a test for PR/1476: Try
1093 double-colon rules as non-goal targets and during parallel builds
1094 to make sure they're handled serially.
1096 1999-11-17 Paul D. Smith <psmith@gnu.org>
1098 * scripts/functions/if: Add a test for PR/1429: put some text
1099 after an if-statement to make sure it works.
1101 * scripts/features/targetvars: Add a test for PR/1380: handling +=
1102 in target-specific variable definitions correctly.
1104 1999-10-15 Paul D. Smith <psmith@gnu.org>
1106 * scripts/variables/MAKEFILES: This was really broken: it didn't
1107 test anything at all, really. Rewrote it, plus added a test for
1110 1999-10-13 Paul D. Smith <psmith@gnu.org>
1112 * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't
1113 behave properly when used with recursive targets".
1115 1999-10-08 Paul D. Smith <psmith@gnu.org>
1117 * scripts/features/targetvars: Add a check for PR/1378:
1118 "Target-specific vars don't inherit correctly"
1120 1999-09-29 Paul D. Smith <psmith@gnu.org>
1122 * test_driver.pl (get_osname): Change $fancy_file_names to
1123 $short_filenames and reverse the logic.
1124 (run_each_test): Change test of non-existent $port_host to use
1125 $short_filenames--problem reported by Eli Zaretskii.
1127 1999-09-23 Paul D. Smith <psmith@gnu.org>
1129 * scripts/features/parallelism: Add a check to ensure that the
1130 jobserver works when we re-invoke. Also cleaned up the tests a
1131 little, reducing the number of rules we use so the test won't need
1132 as many "sleep" commands.
1134 1999-09-16 Paul D. Smith <psmith@gnu.org>
1136 * scripts/features/reinvoke: Remove invocations of "touch" in
1137 makefiles. See the comments on the touch function rewrite below.
1138 Note that UNIX touch behaves the same way if the file already
1139 exists: it sets the time to the _local_ time. We don't want
1140 this. This is probably a good tip for makefile writers in
1141 general, actually... where practical.
1142 * scripts/options/dash-l: Ditto.
1143 * scripts/options/dash-n: Ditto.
1145 * test_driver.pl (run_each_test): In retrospect, I don't like the
1146 .lN/.bN/.dN postfix required by DOS. So, for non-DOS systems I
1147 changed it back to use .log, .base, and .diff.
1149 * run_make_tests.pl (set_more_defaults): Move the check for the
1150 make pathname to here from set_defaults (that's too early since it
1151 happens before the command line processing).
1152 Create a new variable $port_type, calculated from $osname, to
1153 specify what kind of system we're running on. We should integrate
1154 the VOS stuff here, too.
1155 (valid_option): Comment out the workdir/-work stuff so people
1156 won't be fooled into thinking it works... someone needs to fix
1159 * scripts/functions/origin: Use $port_type instead of $osname.
1160 * scripts/functions/foreach: Ditto.
1161 * scripts/features/default_names: Ditto.
1163 1999-09-15 Paul D. Smith <psmith@gnu.org>
1165 * test_driver.pl (touch): Rewrite this function. Previously it
1166 used to use utime() to hard-set the time based on the current
1167 local clock, or, if the file didn't exist, it merely created it.
1168 This mirrors exactly what real UNIX touch does, but it fails badly
1169 on networked filesystems where the FS server clock is skewed from
1170 the local clock: normally modifying a file causes it to get a mod
1171 time based on the _server's_ clock. Hard-setting it based on the
1172 _local_ clock causes gratuitous errors and makes the tests
1173 unreliable except on local filesystems. The new function will
1174 simply modify the file, allowing the filesystem to set the mod
1175 time as it sees fit.
1177 * scripts/features/parallelism: The second test output could
1178 change depending on how fast some scripts completed; use "sleep"
1179 to force the order we want.
1181 * test_driver.pl (toplevel): A bug in Perl 5.000 to Perl 5.004
1182 means that "%ENV = ();" doesn't do the right thing. This worked
1183 in Perl 4 and was fixed in Perl 5.004_01, but use a loop to delete
1184 the environment rather than require specific versions.
1186 * run_make_tests.pl (set_more_defaults): Don't use Perl 5 s///
1187 modifier "s", so the tests will run with Perl 4.
1188 (set_more_defaults): Set $pure_log to empty if there's no -logfile
1189 option in PURIFYOPTIONS.
1190 (setup_for_test): Don't remove any logs unless $pure_log is set.
1192 1999-09-15 Eli Zaretskii <eliz@is.elta.co.il>
1194 * scripts/features/reinvoke: Put the SHELL definition in the right
1197 1999-09-15 Paul D. Smith <psmith@gnu.org>
1199 ChangeLog file for the test suite created.
1202 Copyright (C) 1992-2012 Free Software Foundation, Inc.
1203 This file is part of GNU Make.
1205 GNU Make is free software; you can redistribute it and/or modify it under the
1206 terms of the GNU General Public License as published by the Free Software
1207 Foundation; either version 3 of the License, or (at your option) any later
1210 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
1211 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
1212 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1214 You should have received a copy of the GNU General Public License along with
1215 this program. If not, see <http://www.gnu.org/licenses/>.