Changeset 153 for branches/GNU/src/gmake/tests
- Timestamp:
- Sep 8, 2004, 4:43:30 AM (21 years ago)
- Location:
- branches/GNU/src/gmake/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/ChangeLog
r53 r153 1 2004-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 6 2004-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 12 2004-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 1 17 2003-11-02 Paul D. Smith <psmith@gnu.org> 2 18 -
branches/GNU/src/gmake/tests/scripts/features/conditionals
r53 r153 86 86 endif 87 87 88 all:; @echo DEF=$(DEF) DEF2=$(DEF2) 88 89 DEF3 = no 90 FUNC = $1 91 ifdef $(call FUNC,DEF)3 92 DEF3 = yes 93 endif 94 95 all:; @echo DEF=$(DEF) DEF2=$(DEF2) DEF3=$(DEF3) 89 96 90 97 EOF … … 93 100 94 101 &run_make_with_options($makefile2,"",&get_logfile,0); 95 $answer = "DEF=yes DEF2=yes \n";102 $answer = "DEF=yes DEF2=yes DEF3=yes\n"; 96 103 &compare_output($answer,&get_logfile(1)); 97 104 -
branches/GNU/src/gmake/tests/scripts/features/order_only
r53 r153 110 110 unlink(qw(foo baz)); 111 111 112 # Test order-only in pattern rules 113 114 $makefile4 = &get_tmpfile; 115 116 open(MAKEFILE,"> $makefile4"); 117 118 print MAKEFILE <<'EOF'; 119 %.w : %.x | baz 120 @echo '$$^ = $^' 121 @echo '$$| = $|' 122 touch $@ 123 124 all: foo.w 125 126 .PHONY: baz 127 foo.x baz: 128 touch $@ 129 EOF 130 131 close(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 145 unlink(qw(foo.w foo.x baz)); 146 112 147 1; -
branches/GNU/src/gmake/tests/scripts/functions/origin
r53 r153 16 16 'automatic' Automatic variable\n"; 17 17 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; 25 20 26 21 open(MAKEFILE,"> $makefile"); … … 28 23 print MAKEFILE <<EOF; 29 24 foo := bletch garf 30 auto_var = udef CC $homevarMAKE foo CFLAGS WHITE \@25 auto_var = udef CC MAKETEST MAKE foo CFLAGS WHITE \@ 31 26 av = \$(foreach var, \$(auto_var), \$(origin \$(var)) ) 32 27 override WHITE := BLACK … … 34 29 \t\@echo \$(origin undefined) 35 30 \t\@echo \$(origin CC) 36 \t\@echo \$(origin $homevar)31 \t\@echo \$(origin MAKETEST) 37 32 \t\@echo \$(origin MAKE) 38 33 \t\@echo \$(origin foo)
Note:
See TracChangeset
for help on using the changeset viewer.