Ignore:
Timestamp:
Sep 8, 2004, 4:43:30 AM (21 years ago)
Author:
bird
Message:

GNU Make 3.81beta1.

Location:
branches/GNU/src/gmake/tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/ChangeLog

    r53 r153  
     12004-02-21  Paul D. Smith  <psmith@gnu.org>
     2
     3        * scripts/functions/origin: Set our own environment variable
     4        rather than relying on $HOME.
     5
     62004-01-21  Paul D. Smith  <psmith@gnu.org>
     7
     8        * scripts/features/conditionals: Test arguments to ifn?def which
     9        contain whitespace (such as a function that is evaluated).  Bug
     10        #7257.
     11
     122004-01-07  Paul D. Smith  <psmith@gnu.org>
     13
     14        * scripts/features/order_only: Test order-only prerequisites in
     15        pattern rules (patch #2349).
     16
    1172003-11-02  Paul D. Smith  <psmith@gnu.org>
    218
  • branches/GNU/src/gmake/tests/scripts/features/conditionals

    r53 r153  
    8686endif
    8787
    88 all:; @echo DEF=$(DEF) DEF2=$(DEF2)
     88
     89DEF3 = no
     90FUNC = $1
     91ifdef $(call FUNC,DEF)3
     92  DEF3 = yes
     93endif
     94
     95all:; @echo DEF=$(DEF) DEF2=$(DEF2) DEF3=$(DEF3)
    8996
    9097EOF
     
    93100
    94101&run_make_with_options($makefile2,"",&get_logfile,0);
    95 $answer = "DEF=yes DEF2=yes\n";
     102$answer = "DEF=yes DEF2=yes DEF3=yes\n";
    96103&compare_output($answer,&get_logfile(1));
    97104
  • branches/GNU/src/gmake/tests/scripts/features/order_only

    r53 r153  
    110110unlink(qw(foo baz));
    111111
     112# Test order-only in pattern rules
     113
     114$makefile4 = &get_tmpfile;
     115
     116open(MAKEFILE,"> $makefile4");
     117
     118print MAKEFILE <<'EOF';
     119%.w : %.x | baz
     120        @echo '$$^ = $^'
     121        @echo '$$| = $|'
     122        touch $@
     123
     124all: foo.w
     125
     126.PHONY: baz
     127foo.x baz:
     128        touch $@
     129EOF
     130
     131close(MAKEFILE);
     132
     133# TEST #7 -- make sure the parser was correct.
     134
     135&run_make_with_options($makefile4, "", &get_logfile);
     136$answer = "touch foo.x\ntouch baz\n\$^ = foo.x\n\$| = baz\ntouch foo.w\n";
     137&compare_output($answer,&get_logfile(1));
     138
     139# TEST #8 -- now we do it again: this time foo.w won't be built
     140
     141&run_make_with_options($makefile4, "", &get_logfile);
     142$answer = "touch baz\n";
     143&compare_output($answer,&get_logfile(1));
     144
     145unlink(qw(foo.w foo.x baz));
     146
    1121471;
  • branches/GNU/src/gmake/tests/scripts/functions/origin

    r53 r153  
    1616'automatic'            Automatic variable\n";
    1717
    18 # On WIN32 systems, HOME is meaningless. SystemRoot should be defined
    19 # though.  With DJGPP, HOME is not guaranteed to be defined.  Use DJDIR
    20 # instead.
    21 #
    22 $homevar = (($port_type eq 'Windows') ? "SystemRoot"
    23             : (($port_type eq 'DOS') ? "DJDIR"
    24                : "HOME"));
     18# Set an environment variable
     19$ENV{MAKETEST} = 1;
    2520
    2621open(MAKEFILE,"> $makefile");
     
    2823print MAKEFILE <<EOF;
    2924foo := bletch garf
    30 auto_var = udef CC $homevar MAKE foo CFLAGS WHITE \@
     25auto_var = udef CC MAKETEST MAKE foo CFLAGS WHITE \@
    3126av = \$(foreach var, \$(auto_var), \$(origin \$(var)) )
    3227override WHITE := BLACK
     
    3429\t\@echo \$(origin undefined)
    3530\t\@echo \$(origin CC)
    36 \t\@echo \$(origin $homevar)
     31\t\@echo \$(origin MAKETEST)
    3732\t\@echo \$(origin MAKE)
    3833\t\@echo \$(origin foo)
Note: See TracChangeset for help on using the changeset viewer.