VirtualBox

Ignore:
Timestamp:
May 16, 2005 4:54:08 PM (20 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/scripts/features/include

    r53 r284  
    33$description = "Test various forms of the GNU make `include' command.";
    44
    5 $details = "Test include, -include, sinclude and various regressions involving them.
     5$details = "\
     6Test include, -include, sinclude and various regressions involving them.
    67Test extra whitespace at the end of the include, multiple -includes and
    78sincludes (should not give an error) and make sure that errors are reported
     
    1617print MAKEFILE <<EOF;
    1718\#Extra space at the end of the following file name
    18 include $makefile2                 
     19include $makefile2
    1920all: ; \@echo There should be no errors for this makefile.
    2021
     
    4748&compare_output($answer, &get_logfile(1));
    4849
     50$makefile = undef;
     51
    4952# Try to build the "error" target; this will fail since we don't know
    5053# how to create makeit.mk, but we should also get a message (even though
     
    5255# see one during the makefile run phase).
    5356
    54 # The fix to this caused more problems than the error, so I removed it.
    55 # pds -- 22 Jan 2000
     57run_make_test
     58  ('
     59-include foo.mk
     60error: foo.mk ; @echo $@
     61',
     62   '',
     63   "#MAKE#: *** No rule to make target `foo.mk', needed by `error'.  Stop.\n",
     64   512
     65  );
    5666
    57 #&run_make_with_options($makefile, "error", &get_logfile, 512);
    58 #$answer = "$make_name: *** No rule to make target `makeit.mk', needed by `error'.\n";
    59 #&compare_output($answer, &get_logfile(1));
     67# Make sure that target-specific variables don't impact things.  This could
     68# happen because a file record is created when a target-specific variable is
     69# set.
     70
     71run_make_test
     72  ('
     73bar.mk: foo := baz
     74-include bar.mk
     75hello: ; @echo hello
     76',
     77   '',
     78   "hello\n"
     79  );
     80
     81# Test inheritance of dontcare flag when rebuilding makefiles.
     82#
     83run_make_test('
     84.PHONY: all
     85all: ; @:
     86
     87-include foo
     88
     89foo: bar; @:
     90', '', '');
    6091
    61921;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette