]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/core_typecheck.py
3 # Copyright 2003 Vladimir Prus
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)
7 # This tests the typechecking facilities.
11 t
= BoostBuild
.Tester(["-ffile.jam"], pass_toolset
=0)
13 t
.write("file.jam", """
18 if ! [ MATCH "^(::)" : $(x) ]
20 ECHO "Error: $(x) is not a path" ;
36 t
.run_build_system(["-sARGUMENT=::a/b/c"])
37 t
.run_build_system(["-sARGUMENT=a/b/c"], status
=1, stdout
="""\
38 Error: a/b/c is not a path
39 file.jam:18: in module scope
41 * rule do ( [path] a )
42 * called with: ( a/b/c )
44 file.jam:16:see definition of rule 'do' being called