]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/notfile.py
602415ae5e87f45d51ac843d962a17e36dcb6e7b
3 # Copyright (C) Vladimir Prus 2005.
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)
8 # Basic tests for the 'notfile' rule.
13 t
= BoostBuild
.Tester()
15 t
.write("jamroot.jam", """\
17 notfile say : "echo hi" ;
18 exe hello : hello.cpp ;
19 notfile hello_valgrind : @valgrind : hello ;
20 actions valgrind { valgrind $(>[1]) }
23 t
.write("hello.cpp", """\
25 int main() { std::cout << "Hello!\\n"; }
28 t
.run_build_system(["-n", "-d+2"])
30 t
.fail_test(t
.stdout().find("echo hi") == -1)
32 name
= t
.adjust_names("bin/$toolset/debug*/hello.exe")[0]
33 name
= apply(os
.path
.join
, name
.split("/"));
34 t
.expect_output_lines(" valgrind *%s " % name
)