#!/usr/bin/python # # Copyright (c) 2008 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) from BoostBuild import Tester tester = Tester() tester.write("Jamroot", """ obj test : test.cpp : a&&b ; """) tester.write("test.cpp", """ #include #include int main() { } """) tester.write("a/test1.hpp", """ """) tester.write("b/test2.hpp", """ """) tester.run_build_system() tester.expect_addition("bin/$toolset/debug/test.obj") tester.touch("a/test1.hpp") tester.run_build_system() tester.expect_touch("bin/$toolset/debug/test.obj") tester.touch("b/test2.hpp") tester.run_build_system() tester.expect_touch("bin/$toolset/debug/test.obj") tester.cleanup()