Changeset 2596 in kBuild for vendor/gnumake/current/tests/scripts/features/se_explicit
- Timestamp:
- Jun 19, 2012 10:44:52 PM (12 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
tests (modified) (1 prop)
-
tests/scripts/features/se_explicit (modified) (6 diffs, 2 props)
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
nativetoLF - Property svn:keywords deleted
r501 r2596 25 25 # TEST #1: automatic variables. 26 26 # 27 run_make_test( '27 run_make_test(q! 28 28 .SECONDEXPANSION: 29 .DEFAULT: ; @echo $@29 .DEFAULT: ; @echo '$@' 30 30 31 31 foo: bar baz … … 40 40 $$*.6 41 41 42 ',42 !, 43 43 '', 44 44 'bar … … 61 61 # Test #2: target/pattern -specific variables. 62 62 # 63 run_make_test( '63 run_make_test(q! 64 64 .SECONDEXPANSION: 65 .DEFAULT: ; @echo $@65 .DEFAULT: ; @echo '$@' 66 66 67 67 foo.x: $$a $$b … … 70 70 71 71 %.x: b := baz 72 73 ', 72 !, 74 73 '', 75 74 'bar … … 80 79 # Test #3: order of prerequisites. 81 80 # 82 run_make_test( '81 run_make_test(q! 83 82 .SECONDEXPANSION: 84 .DEFAULT: ; @echo $@83 .DEFAULT: ; @echo '$@' 85 84 86 85 all: foo bar baz 87 86 88 87 # Subtest #1 89 #90 88 foo: foo.1; @: 91 92 89 foo: foo.2 93 94 90 foo: foo.3 95 91 96 97 92 # Subtest #2 98 #99 93 bar: bar.2 100 101 94 bar: bar.1; @: 102 103 95 bar: bar.3 104 96 105 106 97 # Subtest #3 107 #108 98 baz: baz.1 109 110 99 baz: baz.2 111 112 100 baz: ; @: 113 114 ', 101 !, 115 102 '', 116 103 'foo.1 … … 124 111 '); 125 112 113 # TEST #4: eval in a context where there is no reading_file 114 run_make_test(q! 115 .SECONDEXPANSION: 116 all : $$(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 123 run_make_test(q! 124 .SECONDEXPANSION: 125 proj1.exe : proj1.o $$(eval $$(test)) 126 define test 127 proj1.o : proj1.c 128 proj1.c: proj1.h 129 endef 130 !, 131 '', "#MAKE#: *** prerequisites cannot be defined in recipes. Stop.\n", 512); 132 133 134 # Automatic $$+ variable expansion issue. Savannah bug #25780 135 run_make_test(q! 136 all : foo foo 137 .SECONDEXPANSION: 138 all : $$+ ; @echo '$+' 139 foo : ; 140 !, 141 '', "foo foo foo foo\n"); 142 143 144 # Automatic $$+ variable expansion issue. Savannah bug #25780 145 run_make_test(q! 146 all : bar bar 147 bar : ; 148 q%x : ; 149 .SECONDEXPANSION: 150 a%l: q1x $$+ q2x ; @echo '$+' 151 !, 152 '', "q1x bar bar q2x bar bar\n"); 153 154 126 155 # This tells the test driver that the perl test script executed properly. 127 156 1; -
Property svn:eol-style
changed from
Note:
See TracChangeset
for help on using the changeset viewer.

