VirtualBox

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

GNU Make 3.81beta1.

Location:
branches/GNU/src/gmake/tests/scripts/features
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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;
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