1#!/usr/local/bin/python3.8
2
3# Copyright 2016 Steven Watanabe
4# Distributed under the Boost Software License, Version 1.0.
5# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6
7import BoostBuild
8
9t = BoostBuild.Tester(use_test_config=False)
10
11t.write("main.cpp", """\
12int main() {}
13""")
14
15t.write("Jamroot", """\
16exe test : main.cpp ;
17always test ;
18""")
19
20t.run_build_system()
21t.expect_addition("bin/$toolset/debug*/main.obj")
22t.ignore_addition('bin/*/main.*.rsp')
23t.expect_addition("bin/$toolset/debug*/test.exe")
24t.ignore_addition('bin/*/test.rsp')
25t.expect_nothing_more()
26
27t.run_build_system()
28t.expect_touch("bin/$toolset/debug*/main.obj")
29t.ignore_touch('bin/*/main.*.rsp')
30t.expect_touch("bin/$toolset/debug*/test.exe")
31t.ignore_touch('bin/*/test.rsp')
32t.expect_nothing_more()
33
34t.cleanup()
35