2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00
Files
build/test/rootless.py
github-actions[bot] def908ed01 [Backport version/4.10.0] python3 shebang (#266)
* 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>
2023-04-17 14:23:50 -05:00

37 lines
999 B
Python

#!/usr/bin/env python3
# Copyright 2018 Rene Rivera
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.bfgroup.xyz/b2/LICENSE.txt)
import BoostBuild
import os
t = BoostBuild.Tester(translate_suffixes=0)
t.set_tree("rootless/test1")
t.run_build_system(status=1)
t.expect_output_lines("error: no Jamfile in current directory*")
t.set_tree("rootless/test1")
t.run_build_system(subdir="sub_root")
t.expect_addition("sub_root/bin/a.txt")
t.set_tree("rootless/test1")
t.run_build_system(subdir="sub_root", extra_args=["--build-dir=../bin"])
t.expect_output_lines("warning: the --build-dir option will be ignored")
t.set_tree("rootless/test2")
t.run_build_system(subdir="sub_root", extra_args=["--build-dir=../bin"])
t.expect_addition("bin/foo/a.txt")
t.set_tree("rootless/test3")
t.run_build_system()
t.set_tree("rootless/test3")
t.run_build_system(subdir="sub/inner")
t.expect_addition("bins/sub/inner/a.txt")
t.cleanup()