mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
* new/targets.jam (basic-target.generate-source): Fix regex.
* test/project_test4.py: New test.
[SVN r14374]
32 lines
802 B
Python
32 lines
802 B
Python
#!/usr/bin/python
|
|
|
|
from BoostBuild import Tester
|
|
import os
|
|
from string import strip
|
|
|
|
t = Tester()
|
|
|
|
|
|
t.set_tree("project-test4")
|
|
|
|
t.run_build_system()
|
|
|
|
t.expect_addition("bin/gcc/debug/threading-single/a.obj")
|
|
t.expect_content("bin/gcc/debug/threading-single/a.obj",
|
|
"""gcc/debug/threading-single
|
|
a.cpp
|
|
""")
|
|
|
|
t.expect_addition("bin/gcc/debug/threading-single/a.exe")
|
|
t.expect_content("bin/gcc/debug/threading-single/a.exe",
|
|
"gcc/debug/threading-single\n" +
|
|
"bin/gcc/debug/threading-single/a.obj lib/bin/gcc/debug/optimization-on/threading-single/b.obj\n"
|
|
)
|
|
|
|
t.expect_addition("lib/bin/gcc/debug/optimization-on/threading-single/b.obj")
|
|
t.expect_content("lib/bin/gcc/debug/optimization-on/threading-single/b.obj",
|
|
"""gcc/debug/optimization-on/threading-single
|
|
lib/b.cpp
|
|
""")
|
|
|
|
os.chdir(t.original_workdir) |