]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/core_jamshell.py
3 # Copyright 2014 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)
10 t
= BoostBuild
.Tester(pass_toolset
=False)
12 t
.write("file.jam", """
17 # Raw commands only work on Windows
20 JAMSHELL on test-raw = % ;
21 JAMSHELL on test-raw-fail = % ;
23 ACTION on test-raw = "\"$(PYTHON)\" -V" ;
26 ACTION on test-raw-fail = missing-executable ;
29 # On Windows, the command is stored in a temporary
30 # file. On other systems it is passed directly.
33 JAMSHELL on test-py = $(PYTHON) ;
37 JAMSHELL on test-py = $(PYTHON) -c ;
40 from __future__ import print_function
41 print(\\\",\\\".join([str(x) for x in range(3)]))
45 DEPENDS all : test-raw test-raw-fail test-py ;
48 t
.run_build_system(["-ffile.jam", "-d1", "-sPYTHON=" + sys
.executable
], status
=1)
49 t
.expect_output_lines([
50 "...failed run test-raw-fail...",
52 "...failed updating 1 target...",
53 "...updated 2 targets..."])