|
40 | 40 |
|
41 | 41 | test.verbose_set(1) |
42 | 42 | test.file_fixture('fixture/SConstruct_variant', 'SConstruct') |
| 43 | +test.file_fixture('fixture/src_SConscript_cpppath', 'src/SConscript_cpppath') |
43 | 44 | test.file_fixture('test_main.c', 'src/test_main.c') |
44 | 45 | test.run() |
45 | 46 |
|
|
84 | 85 | "directory": "%(workdir)s", |
85 | 86 | "file": "%(variant3_src_file)s", |
86 | 87 | "output": "%(output3_file)s" |
| 88 | + }, |
| 89 | + { |
| 90 | + "command": "%(exe)s mygcc.py cc -o %(output4_file)s -c -I%(inc_build4)s -I%(inc_src)s %(src_file)s", |
| 91 | + "directory": "%(workdir)s", |
| 92 | + "file": "%(src_file)s", |
| 93 | + "output": "%(output4_file)s" |
87 | 94 | } |
88 | 95 | ] |
89 | 96 | """ % {'exe': sys.executable, |
|
92 | 99 | 'output_file': os.path.join('build', 'test_main.o'), |
93 | 100 | 'output2_file': os.path.join('build2', 'test_main.o'), |
94 | 101 | 'output3_file': os.path.join('build3', 'test_main_copy.o'), |
| 102 | + 'output4_file': os.path.join('build4', 'test_main.o'), |
95 | 103 | 'variant_src_file': os.path.join('build', 'test_main.c'), |
96 | | - 'variant3_src_file': os.path.join('build3', 'test_main_copy.c') |
| 104 | + 'variant3_src_file': os.path.join('build3', 'test_main_copy.c'), |
| 105 | + 'inc_build4': os.path.join('build4', 'inc'), |
| 106 | + 'inc_src': os.path.join('src', 'inc'), |
97 | 107 | } |
98 | 108 |
|
99 | 109 | if sys.platform == 'win32': |
|
122 | 132 | "directory": "%(workdir)s", |
123 | 133 | "file": "%(abs_variant3_src_file)s", |
124 | 134 | "output": "%(abs_output3_file)s" |
| 135 | + }, |
| 136 | + { |
| 137 | + "command": "%(exe)s mygcc.py cc -o %(output4_file)s -c -I%(inc_build4)s -I%(inc_src)s %(src_file)s", |
| 138 | + "directory": "%(workdir)s", |
| 139 | + "file": "%(abs_src_file)s", |
| 140 | + "output": "%(abs_output4_file)s" |
125 | 141 | } |
126 | 142 | ] |
127 | 143 | """ % {'exe': sys.executable, |
|
131 | 147 | 'abs_output_file': os.path.join(test.workdir, 'build', 'test_main.o'), |
132 | 148 | 'abs_output2_file': os.path.join(test.workdir, 'build2', 'test_main.o'), |
133 | 149 | 'abs_output3_file': os.path.join(test.workdir, 'build3', 'test_main_copy.o'), |
| 150 | + 'abs_output4_file': os.path.join(test.workdir, 'build4', 'test_main.o'), |
134 | 151 | 'output_file': os.path.join('build', 'test_main.o'), |
135 | 152 | 'output2_file': os.path.join('build2', 'test_main.o'), |
136 | 153 | 'output3_file': os.path.join('build3', 'test_main_copy.o'), |
| 154 | + 'output4_file': os.path.join('build4', 'test_main.o'), |
137 | 155 | 'abs_variant3_src_file': os.path.join(test.workdir, 'build3', 'test_main_copy.c'), |
138 | 156 | 'variant_src_file': os.path.join('build', 'test_main.c'), |
139 | | - 'variant3_src_file': os.path.join('build3', 'test_main_copy.c') |
| 157 | + 'variant3_src_file': os.path.join('build3', 'test_main_copy.c'), |
| 158 | + 'inc_build4': os.path.join('build4', 'inc'), |
| 159 | + 'inc_src': os.path.join('src', 'inc'), |
140 | 160 | } |
141 | 161 |
|
142 | 162 | if sys.platform == 'win32': |
|
0 commit comments