()
| 120 | |
| 121 | |
| 122 | def missing_target(): |
| 123 | t = BoostBuild.Tester(pass_toolset=0, pass_d0=False) |
| 124 | |
| 125 | t.write("file.jam", """\ |
| 126 | actions do-print |
| 127 | { |
| 128 | echo updating $(<) |
| 129 | } |
| 130 | |
| 131 | NOTFILE target2 ; |
| 132 | do-print target2 ; |
| 133 | DEPENDS target2 : target1 ; |
| 134 | |
| 135 | UPDATE_NOW target1 : : ignore-minus-n ; |
| 136 | |
| 137 | DEPENDS all : target1 target2 ; |
| 138 | """) |
| 139 | |
| 140 | t.run_build_system(["-ffile.jam", "-n"], status=1, stdout="""\ |
| 141 | don't know how to make target1 |
| 142 | ...found 1 target... |
| 143 | ...can't find 1 target... |
| 144 | ...found 2 targets... |
| 145 | ...can't make 1 target... |
| 146 | """) |
| 147 | |
| 148 | t.cleanup() |
| 149 | |
| 150 | |
| 151 | def build_once(): |
no test coverage detected