mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
* new/path.jam
(make-NT, make-UNIX): Convert empty path into "."
* new/project.jam
(path-relative-to-project-location): New rule.
* new/stage.jam
(stage-target-class.construct): Use the above rule.
* new/symlink.jam
(symlink-targets.construct): Call 'set-path' on created
virtual targets.
(ln): Attempts at better handling creating symlinks in
directories.
* new/virtual-target.jam
(abstract-file-target.actual-name): If explicit path was
given, include it in grist.
* test/symlink.py: New test.
* test/test_all.py
Run new test.
[SVN r16889]
32 lines
624 B
Python
32 lines
624 B
Python
#!/usr/bin/python
|
|
|
|
# Test the 'symlink' rule
|
|
|
|
from BoostBuild import Tester, dll_suffix
|
|
import os
|
|
t = Tester()
|
|
|
|
if os.name != 'posix':
|
|
print "The symlink tests can be run on posix only"
|
|
sys.exit(1)
|
|
|
|
t.write("project-root.jam", "import gcc ;")
|
|
t.write("Jamfile", """
|
|
exe hello : hello.cpp ;
|
|
symlink hello_release : hello/<variant>release ;
|
|
symlink hello_debug : hello/<variant>debug ;
|
|
symlink links/hello_release : hello/<variant>release ;
|
|
""")
|
|
t.write("hello.cpp", """
|
|
int main()
|
|
{
|
|
return 0;
|
|
}
|
|
""")
|
|
|
|
t.run_build_system()
|
|
t.expect_addition(['hello_debug', 'hello_release', 'links/hello_release'])
|
|
|
|
|
|
t.cleanup()
|