1#!/usr/local/bin/python3.8
2
3# Copyright 2018 Steven Watanabe
4# Distributed under the Boost Software License, Version 1.0.
5# (See accompanying file LICENSE_1_0.txt or copy at
6# http://www.boost.org/LICENSE_1_0.txt)
7
8# Tests the parsing of tokens
9
10import BoostBuild
11
12t = BoostBuild.Tester(pass_toolset=0)
13
14t.write("file.jam", """\
15rule test1 ( args * )
16{
17    EXIT $(args) : 0 ;
18}
19
20test1
21a # a comment
22# another comment
23b
24c #| a multiline comment |# d
25#| another
26multiline
27comment
28|#
29e "#f" ;
30""")
31
32t.run_build_system(["-ffile.jam"], stdout="""\
33a b c d e #f
34""")
35
36t.cleanup()
37