2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 04:02:14 +00:00
Files
build/test/core_scanner.py
Nikita Kniazev fcaafb3593 python3 shebang (#258)
* python3 shebang
* CI: execute python scripts via shebang
2023-04-17 09:19:00 -05:00

37 lines
568 B
Python

#!/usr/bin/env python3
# Copyright 2018 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.bfgroup.xyz/b2/LICENSE.txt)
# Tests the parsing of tokens
import BoostBuild
t = BoostBuild.Tester(pass_toolset=0)
t.write("file.jam", """\
rule test1 ( args * )
{
EXIT $(args) : 0 ;
}
test1
a # a comment
# another comment
b
c #| a multiline comment |# d
#| another
multiline
comment
|#
e "#f" ;
""")
t.run_build_system(["-ffile.jam"], stdout="""\
a b c d e #f
""")
t.cleanup()