Changeset 2591 in kBuild for trunk/src/kmk/tests/scripts/features/se_explicit
- Timestamp:
- Jun 17, 2012 8:45:31 PM (12 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
tests (modified) (1 prop)
-
tests/scripts/features/se_explicit (modified) (6 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
- Property svn:ignore
-
old new 13 13 stamp-* 14 14 makebook* 15 15 16 .*gdbinit 17 .gdb_history 18 16 19 *.dep 17 20 *.dvi … … 31 34 *.pg 32 35 *.pgs 36 33 37 README 34 38 README.DOS 35 39 README.W32 40 README.OS2 36 41 aclocal.m4 37 42 autom4te.cache … … 52 57 config.h.W32 53 58 config.h-vms 59 54 60 loadavg 55 61 loadavg.c 56 62 make 63 57 64 .deps 58 65 .dep_segment 66 ID 67 TAGS 68 59 69 _* 60 70 sun4 … … 72 82 sol2 73 83 i486-linux 84 74 85 customs 86 75 87 install-sh 76 88 mkinstalldirs 89 90 .directive.asc
-
- Property svn:ignore
-
trunk/src/kmk/tests
- Property svn:ignore
--- +++
- Property svn:ignore
-
trunk/src/kmk/tests/scripts/features/se_explicit
- Property svn:keywords deleted
r1981 r2591 27 27 # TEST #1: automatic variables. 28 28 # 29 run_make_test( '29 run_make_test(q! 30 30 .SECONDEXPANSION: 31 .DEFAULT: ; @echo $@31 .DEFAULT: ; @echo '$@' 32 32 33 33 foo: bar baz … … 42 42 $$*.6 43 43 44 ',44 !, 45 45 '-j1', 46 46 'bar … … 63 63 # Test #2: target/pattern -specific variables. 64 64 # 65 run_make_test( '65 run_make_test(q! 66 66 .SECONDEXPANSION: 67 .DEFAULT: ; @echo $@67 .DEFAULT: ; @echo '$@' 68 68 69 69 foo.x: $$a $$b … … 72 72 73 73 %.x: b := baz 74 75 ', 74 !, 76 75 '', 77 76 'bar … … 82 81 # Test #3: order of prerequisites. 83 82 # 84 run_make_test( '83 run_make_test(q! 85 84 .SECONDEXPANSION: 86 .DEFAULT: ; @echo $@85 .DEFAULT: ; @echo '$@' 87 86 88 87 all: foo bar baz 89 88 90 89 # Subtest #1 91 #92 90 foo: foo.1; @: 93 94 91 foo: foo.2 95 96 92 foo: foo.3 97 93 98 99 94 # Subtest #2 100 #101 95 bar: bar.2 102 103 96 bar: bar.1; @: 104 105 97 bar: bar.3 106 98 107 108 99 # Subtest #3 109 #110 100 baz: baz.1 111 112 101 baz: baz.2 113 114 102 baz: ; @: 115 116 ', 103 !, 117 104 '-j1', 118 105 'foo.1 … … 126 113 '); 127 114 115 # TEST #4: eval in a context where there is no reading_file 116 run_make_test(q! 117 .SECONDEXPANSION: 118 all : $$(eval $$(info test)) 119 !, 120 '', "test\n#MAKE#: Nothing to be done for `all'.\n"); 121 122 # TEST #5: (NEGATIVE) catch eval in a prereq list trying to create new 123 # target/prereq relationships. 124 125 run_make_test(q! 126 .SECONDEXPANSION: 127 proj1.exe : proj1.o $$(eval $$(test)) 128 define test 129 proj1.o : proj1.c 130 proj1.c: proj1.h 131 endef 132 !, 133 '', "#MAKE#: *** prerequisites cannot be defined in recipes. Stop.\n", 512); 134 135 136 # Automatic $$+ variable expansion issue. Savannah bug #25780 137 run_make_test(q! 138 all : foo foo 139 .SECONDEXPANSION: 140 all : $$+ ; @echo '$+' 141 foo : ; 142 !, 143 '', "foo foo foo foo\n"); 144 145 146 # Automatic $$+ variable expansion issue. Savannah bug #25780 147 run_make_test(q! 148 all : bar bar 149 bar : ; 150 q%x : ; 151 .SECONDEXPANSION: 152 a%l: q1x $$+ q2x ; @echo '$+' 153 !, 154 '', "q1x bar bar q2x bar bar\n"); 155 156 128 157 # This tells the test driver that the perl test script executed properly. 129 158 1;
Note:
See TracChangeset
for help on using the changeset viewer.

