summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/build/test/core_scanner.py
blob: af078a00be41ffa80eb3afc95496e3524988b0c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/python

# Copyright 2018 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.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()