mirror of
https://github.com/boostorg/build.git
synced 2026-02-02 20:52:13 +00:00
* python3 shebang (cherry picked from commit 9f0d565b06482a90b59d07ef9e7b9aadd698926c) * CI: execute python scripts via shebang (cherry picked from commit cf36b637abe2125cf6895bec593b4cbcf71ae570) --------- Co-authored-by: Nikita Kniazev <nok.raven@gmail.com>
25 lines
534 B
Python
25 lines
534 B
Python
#!/usr/bin/env python3
|
|
|
|
# Copyright 2003 Vladimir Prus
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
|
|
|
|
import BoostBuild
|
|
import string
|
|
|
|
t = BoostBuild.Tester()
|
|
|
|
t.write("jamroot.jam", """\
|
|
lib main : main.cpp l ;
|
|
lib l : l.cpp main ;
|
|
""")
|
|
|
|
t.write("main.cpp", "")
|
|
t.write("l.cpp", "")
|
|
|
|
t.run_build_system(["--no-error-backtrace"], status=1)
|
|
t.fail_test(t.stdout().find(
|
|
"error: Recursion in main target references") == -1)
|
|
|
|
t.cleanup()
|