]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/test/project_test3.py
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / test / project_test3.py
index 4f6cda2a7614493d9ad6b08b34a96e19a92ecf29..82b238f68db4e7f5a075acbb6cd3e25f02a0bf15 100644 (file)
@@ -22,114 +22,114 @@ t.expect_output_lines("error: Could not find parent for project at '.'\n"
 t.set_tree("project-test3")
 t.run_build_system()
 
-t.expect_addition("bin/$toolset/debug/a.obj")
-t.expect_content("bin/$toolset/debug/a.obj", """\
+t.expect_addition("bin/$toolset/debug*/a.obj")
+t.expect_content("bin/$toolset/debug*/a.obj", """\
 $toolset/debug
 a.cpp
 """)
 
-t.expect_addition("bin/$toolset/debug/a.exe")
-t.expect_content("bin/$toolset/debug/a.exe",
-"$toolset/debug\n" +
-"bin/$toolset/debug/a.obj lib/bin/$toolset/debug/b.obj " +
-"lib2/bin/$toolset/debug/c.obj lib2/bin/$toolset/debug/d.obj " +
-"lib2/helper/bin/$toolset/debug/e.obj " +
-"lib3/bin/$toolset/debug/f.obj\n"
+t.expect_addition("bin/$toolset/debug*/a.exe")
+t.expect_content("bin/$toolset/debug*/a.exe",
+"$toolset/debug*\n" +
+"bin/$toolset/debug*/a.obj lib/bin/$toolset/debug*/b.obj " +
+"lib2/bin/$toolset/debug*/c.obj lib2/bin/$toolset/debug*/d.obj " +
+"lib2/helper/bin/$toolset/debug*/e.obj " +
+"lib3/bin/$toolset/debug*/f.obj\n"
 )
 
-t.expect_addition("lib/bin/$toolset/debug/b.obj")
-t.expect_content("lib/bin/$toolset/debug/b.obj", """\
+t.expect_addition("lib/bin/$toolset/debug*/b.obj")
+t.expect_content("lib/bin/$toolset/debug*/b.obj", """\
 $toolset/debug
 lib/b.cpp
 """)
 
-t.expect_addition("lib/bin/$toolset/debug/m.exe")
-t.expect_content("lib/bin/$toolset/debug/m.exe", """\
+t.expect_addition("lib/bin/$toolset/debug*/m.exe")
+t.expect_content("lib/bin/$toolset/debug*/m.exe", """\
 $toolset/debug
-lib/bin/$toolset/debug/b.obj lib2/bin/$toolset/debug/c.obj
+lib/bin/$toolset/debug*/b.obj lib2/bin/$toolset/debug*/c.obj
 """)
 
-t.expect_addition("lib2/bin/$toolset/debug/c.obj")
-t.expect_content("lib2/bin/$toolset/debug/c.obj", """\
+t.expect_addition("lib2/bin/$toolset/debug*/c.obj")
+t.expect_content("lib2/bin/$toolset/debug*/c.obj", """\
 $toolset/debug
 lib2/c.cpp
 """)
 
-t.expect_addition("lib2/bin/$toolset/debug/d.obj")
-t.expect_content("lib2/bin/$toolset/debug/d.obj", """\
+t.expect_addition("lib2/bin/$toolset/debug*/d.obj")
+t.expect_content("lib2/bin/$toolset/debug*/d.obj", """\
 $toolset/debug
 lib2/d.cpp
 """)
 
-t.expect_addition("lib2/bin/$toolset/debug/l.exe")
-t.expect_content("lib2/bin/$toolset/debug/l.exe", """\
+t.expect_addition("lib2/bin/$toolset/debug*/l.exe")
+t.expect_content("lib2/bin/$toolset/debug*/l.exe", """\
 $toolset/debug
-lib2/bin/$toolset/debug/c.obj bin/$toolset/debug/a.obj
+lib2/bin/$toolset/debug*/c.obj bin/$toolset/debug*/a.obj
 """)
 
-t.expect_addition("lib2/helper/bin/$toolset/debug/e.obj")
-t.expect_content("lib2/helper/bin/$toolset/debug/e.obj", """\
+t.expect_addition("lib2/helper/bin/$toolset/debug*/e.obj")
+t.expect_content("lib2/helper/bin/$toolset/debug*/e.obj", """\
 $toolset/debug
 lib2/helper/e.cpp
 """)
 
-t.expect_addition("lib3/bin/$toolset/debug/f.obj")
-t.expect_content("lib3/bin/$toolset/debug/f.obj", """\
+t.expect_addition("lib3/bin/$toolset/debug*/f.obj")
+t.expect_content("lib3/bin/$toolset/debug*/f.obj", """\
 $toolset/debug
-lib3/f.cpp lib2/helper/bin/$toolset/debug/e.obj
+lib3/f.cpp lib2/helper/bin/$toolset/debug*/e.obj
 """)
 
 t.touch("a.cpp")
 t.run_build_system()
-t.expect_touch(["bin/$toolset/debug/a.obj",
-                "bin/$toolset/debug/a.exe",
-                "lib2/bin/$toolset/debug/l.exe"])
+t.expect_touch(["bin/$toolset/debug*/a.obj",
+                "bin/$toolset/debug*/a.exe",
+                "lib2/bin/$toolset/debug*/l.exe"])
 
 t.run_build_system(["release", "optimization=off,speed"])
-t.expect_addition(["bin/$toolset/release/a.exe",
-                  "bin/$toolset/release/a.obj",
-                  "bin/$toolset/release/optimization-off/a.exe",
-                  "bin/$toolset/release/optimization-off/a.obj"])
+t.expect_addition(["bin/$toolset/release/optimization-off*/a.exe",
+                  "bin/$toolset/release/optimization-off*/a.obj",
+                  "bin/$toolset/release*/a.exe",
+                  "bin/$toolset/release*/a.obj"])
 
 t.run_build_system(["--clean-all"])
-t.expect_removal(["bin/$toolset/debug/a.obj",
-                 "bin/$toolset/debug/a.exe",
-                 "lib/bin/$toolset/debug/b.obj",
-                 "lib/bin/$toolset/debug/m.exe",
-                 "lib2/bin/$toolset/debug/c.obj",
-                 "lib2/bin/$toolset/debug/d.obj",
-                 "lib2/bin/$toolset/debug/l.exe",
-                 "lib3/bin/$toolset/debug/f.obj"])
+t.expect_removal(["bin/$toolset/debug*/a.obj",
+                 "bin/$toolset/debug*/a.exe",
+                 "lib/bin/$toolset/debug*/b.obj",
+                 "lib/bin/$toolset/debug*/m.exe",
+                 "lib2/bin/$toolset/debug*/c.obj",
+                 "lib2/bin/$toolset/debug*/d.obj",
+                 "lib2/bin/$toolset/debug*/l.exe",
+                 "lib3/bin/$toolset/debug*/f.obj"])
 
 # Now test target ids in command line.
 t.set_tree("project-test3")
 t.run_build_system(["lib//b.obj"])
-t.expect_addition("lib/bin/$toolset/debug/b.obj")
+t.expect_addition("lib/bin/$toolset/debug*/b.obj")
 t.expect_nothing_more()
 
 t.run_build_system(["--clean", "lib//b.obj"])
-t.expect_removal("lib/bin/$toolset/debug/b.obj")
+t.expect_removal("lib/bin/$toolset/debug*/b.obj")
 t.expect_nothing_more()
 
 t.run_build_system(["lib//b.obj"])
-t.expect_addition("lib/bin/$toolset/debug/b.obj")
+t.expect_addition("lib/bin/$toolset/debug*/b.obj")
 t.expect_nothing_more()
 
 t.run_build_system(["release", "lib2/helper//e.obj", "/lib3//f.obj"])
-t.expect_addition("lib2/helper/bin/$toolset/release/e.obj")
-t.expect_addition("lib3/bin/$toolset/release/f.obj")
+t.expect_addition("lib2/helper/bin/$toolset/release*/e.obj")
+t.expect_addition("lib3/bin/$toolset/release*/f.obj")
 t.expect_nothing_more()
 
 # Test project ids in command line work as well.
 t.set_tree("project-test3")
 t.run_build_system(["/lib2"])
-t.expect_addition("lib2/bin/$toolset/debug/" *
+t.expect_addition("lib2/bin/$toolset/debug*/" *
     BoostBuild.List("c.obj d.obj l.exe"))
-t.expect_addition("bin/$toolset/debug/a.obj")
+t.expect_addition("bin/$toolset/debug*/a.obj")
 t.expect_nothing_more()
 
 t.run_build_system(["lib"])
-t.expect_addition("lib/bin/$toolset/debug/" *
+t.expect_addition("lib/bin/$toolset/debug*/" *
     BoostBuild.List("b.obj m.exe"))
 t.expect_nothing_more()