()
| 172 | t.cleanup() |
| 173 | |
| 174 | def test_order_graph(): |
| 175 | t = BoostBuild.Tester(use_test_config=False) |
| 176 | t.write("jamroot.jam", """ |
| 177 | obj test : test.cpp : |
| 178 | <include>b&&a |
| 179 | <include>c&&b |
| 180 | <include>a |
| 181 | <include>c |
| 182 | <include>b |
| 183 | <include>e&&b&&d |
| 184 | ; |
| 185 | """) |
| 186 | t.write("test.cpp", """ |
| 187 | #include <test1.h> |
| 188 | #include <test2.h> |
| 189 | #include <test3.h> |
| 190 | #include <test4.h> |
| 191 | int main() {} |
| 192 | """) |
| 193 | t.write("b/test1.h", "") |
| 194 | t.write("a/test1.h", "#error should find b/test1.h\n") |
| 195 | |
| 196 | t.write("c/test2.h", "") |
| 197 | t.write("b/test2.h", "#error should find c/test2.h\n") |
| 198 | |
| 199 | t.write("e/test3.h", "") |
| 200 | t.write("b/test3.h", "#error should find e/test3.h\n") |
| 201 | |
| 202 | t.write("b/test4.h", "") |
| 203 | t.write("d/test4.h", "#error should find b/test4.h\n") |
| 204 | |
| 205 | t.run_build_system() |
| 206 | t.expect_addition("bin/$toolset/debug*/test.obj") |
| 207 | |
| 208 | t.touch("b/test1.h") |
| 209 | t.run_build_system() |
| 210 | t.expect_touch("bin/$toolset/debug*/test.obj") |
| 211 | t.expect_nothing_more() |
| 212 | |
| 213 | t.touch("a/test1.h") |
| 214 | t.run_build_system() |
| 215 | t.expect_nothing_more() |
| 216 | |
| 217 | t.touch("c/test2.h") |
| 218 | t.run_build_system() |
| 219 | t.expect_touch("bin/$toolset/debug*/test.obj") |
| 220 | t.expect_nothing_more() |
| 221 | |
| 222 | t.touch("b/test2.h") |
| 223 | t.run_build_system() |
| 224 | t.expect_nothing_more() |
| 225 | |
| 226 | t.touch("e/test3.h") |
| 227 | t.run_build_system() |
| 228 | t.expect_touch("bin/$toolset/debug*/test.obj") |
| 229 | t.expect_nothing_more() |
| 230 | |
| 231 | t.touch("b/test3.h") |
no test coverage detected