2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00
Files
build/test/stage.py
Vladimir Prus 41b44f946c Fix the stage rule, so that it allows sources with directory names.
* new/stage.jam:
   (stage-target-class): Strip directory names when determining the name of
   the target file.

* test/stage.py: Update the test.


[SVN r16892]
2003-01-13 16:28:47 +00:00

21 lines
367 B
Python

#!/usr/bin/python
# Test staging
from BoostBuild import Tester, dll_suffix
t = Tester()
t.write("project-root.jam", "import gcc ;")
t.write("Jamfile", """
lib a : a.cpp ;
stage dist : a a.h aux/1 ;
""")
t.write("a.cpp", "")
t.write("a.h", "")
t.write("aux/1", "")
t.run_build_system()
t.expect_addition(["dist/a" + dll_suffix, "dist/a.h", "dist/1"])
t.cleanup()