VirtualBox

Ignore:
Timestamp:
Jun 19, 2012 10:44:52 PM (12 years ago)
Author:
bird
Message:

gnumake/current -> 3.82-cvs.

Location:
vendor/gnumake/current
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current

    • Property svn:ignore deleted
  • vendor/gnumake/current/tests

    • Property svn:ignore deleted
  • vendor/gnumake/current/tests/scripts/features/se_explicit

    • Property svn:eol-style changed from native to LF
    • Property svn:keywords deleted
    r501 r2596  
    2525# TEST #1: automatic variables.
    2626#
    27 run_make_test('
     27run_make_test(q!
    2828.SECONDEXPANSION:
    29 .DEFAULT: ; @echo $@
     29.DEFAULT: ; @echo '$@'
    3030
    3131foo: bar baz
     
    4040     $$*.6
    4141
    42 ',
     42!,
    4343'',
    4444'bar
     
    6161# Test #2: target/pattern -specific variables.
    6262#
    63 run_make_test('
     63run_make_test(q!
    6464.SECONDEXPANSION:
    65 .DEFAULT: ; @echo $@
     65.DEFAULT: ; @echo '$@'
    6666
    6767foo.x: $$a $$b
     
    7070
    7171%.x: b := baz
    72 
    73 ',
     72!,
    7473'',
    7574'bar
     
    8079# Test #3: order of prerequisites.
    8180#
    82 run_make_test('
     81run_make_test(q!
    8382.SECONDEXPANSION:
    84 .DEFAULT: ; @echo $@
     83.DEFAULT: ; @echo '$@'
    8584
    8685all: foo bar baz
    8786
    8887# Subtest #1
    89 #
    9088foo: foo.1; @:
    91 
    9289foo: foo.2
    93 
    9490foo: foo.3
    9591
    96 
    9792# Subtest #2
    98 #
    9993bar: bar.2
    100 
    10194bar: bar.1; @:
    102 
    10395bar: bar.3
    10496
    105 
    10697# Subtest #3
    107 #
    10898baz: baz.1
    109 
    11099baz: baz.2
    111 
    112100baz: ; @:
    113 
    114 ',
     101!,
    115102'',
    116103'foo.1
     
    124111');
    125112
     113# TEST #4: eval in a context where there is no reading_file
     114run_make_test(q!
     115.SECONDEXPANSION:
     116all : $$(eval $$(info test))
     117!,
     118            '', "test\n#MAKE#: Nothing to be done for `all'.\n");
     119
     120# TEST #5: (NEGATIVE) catch eval in a prereq list trying to create new
     121# target/prereq relationships.
     122
     123run_make_test(q!
     124.SECONDEXPANSION:
     125proj1.exe : proj1.o $$(eval $$(test))
     126define test
     127proj1.o : proj1.c
     128proj1.c: proj1.h
     129endef
     130!,
     131              '', "#MAKE#: *** prerequisites cannot be defined in recipes.  Stop.\n", 512);
     132
     133
     134# Automatic $$+ variable expansion issue.  Savannah bug #25780
     135run_make_test(q!
     136all : foo foo
     137.SECONDEXPANSION:
     138all : $$+ ; @echo '$+'
     139foo : ;
     140!,
     141                  '', "foo foo foo foo\n");
     142
     143
     144# Automatic $$+ variable expansion issue.  Savannah bug #25780
     145run_make_test(q!
     146all : bar bar
     147bar : ;
     148q%x : ;
     149.SECONDEXPANSION:
     150a%l: q1x $$+ q2x ; @echo '$+'
     151!,
     152                  '', "q1x bar bar q2x bar bar\n");
     153
     154
    126155# This tells the test driver that the perl test script executed properly.
    1271561;
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