()
| 163 | |
| 164 | |
| 165 | def test_repeated_ids_for_same_project(): |
| 166 | t = BoostBuild.Tester() |
| 167 | |
| 168 | t.write("jamroot.jam", "project foo ; project foo ;") |
| 169 | t.run_build_system() |
| 170 | |
| 171 | t.write("jamroot.jam", "project foo ; use-project foo : . ;") |
| 172 | t.run_build_system() |
| 173 | |
| 174 | t.write("jamroot.jam", "project foo ; use-project foo : ./. ;") |
| 175 | t.run_build_system() |
| 176 | |
| 177 | t.write("jamroot.jam", """\ |
| 178 | project foo ; |
| 179 | use-project foo : . ; |
| 180 | use-project foo : ./aaa/.. ; |
| 181 | use-project foo : ./. ; |
| 182 | """) |
| 183 | t.run_build_system() |
| 184 | |
| 185 | # On Windows we have a case-insensitive file system and we can use |
| 186 | # backslashes as path separators. |
| 187 | # FIXME: Make a similar test pass on Cygwin. |
| 188 | if sys.platform in ['win32']: |
| 189 | t.write("a/fOo bAr/b/jamfile.jam", "") |
| 190 | t.write("jamroot.jam", r""" |
| 191 | use-project bar : "a/foo bar/b" ; |
| 192 | use-project bar : "a/foO Bar/b" ; |
| 193 | use-project bar : "a/foo BAR/b/" ; |
| 194 | use-project bar : "a\\.\\FOO bar\\b\\" ; |
| 195 | """) |
| 196 | t.run_build_system() |
| 197 | t.rm("a") |
| 198 | |
| 199 | t.write("bar/jamfile.jam", "") |
| 200 | t.write("jamroot.jam", """\ |
| 201 | use-project bar : bar ; |
| 202 | use-project bar : bar/ ; |
| 203 | use-project bar : bar// ; |
| 204 | use-project bar : bar/// ; |
| 205 | use-project bar : bar//// ; |
| 206 | use-project bar : bar/. ; |
| 207 | use-project bar : bar/./ ; |
| 208 | use-project bar : bar/////./ ; |
| 209 | use-project bar : bar/../bar/xxx/.. ; |
| 210 | use-project bar : bar/..///bar/xxx///////.. ; |
| 211 | use-project bar : bar/./../bar/xxx/.. ; |
| 212 | use-project bar : bar/.////../bar/xxx/.. ; |
| 213 | use-project bar : bar/././../bar/xxx/.. ; |
| 214 | use-project bar : bar/././//////////../bar/xxx/.. ; |
| 215 | use-project bar : bar/.///.////../bar/xxx/.. ; |
| 216 | use-project bar : bar/./././xxx/.. ; |
| 217 | use-project bar : bar/xxx////.. ; |
| 218 | use-project bar : bar/xxx/.. ; |
| 219 | use-project bar : bar///////xxx/.. ; |
| 220 | """) |
| 221 | t.run_build_system() |
| 222 | t.rm("bar") |
no test coverage detected