diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /boost/tools/build/test/abs_workdir.py | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/tools/build/test/abs_workdir.py')
| -rw-r--r-- | boost/tools/build/test/abs_workdir.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/boost/tools/build/test/abs_workdir.py b/boost/tools/build/test/abs_workdir.py new file mode 100644 index 00000000..fa6aadc5 --- /dev/null +++ b/boost/tools/build/test/abs_workdir.py @@ -0,0 +1,26 @@ +# Niklaus Giger, 2005-03-15 +# Testing whether we may run a test in absolute directories. There are no tests +# for temporary directories as this is implictly tested in a lot of other cases. + +# TODO: Move to a separate testing-system test group. +# TODO: Make the test not display any output on success. +# TODO: Make sure implemented path handling is correct under Windows, Cygwin & +# Unix/Linux. + +import BoostBuild +import os +import tempfile + +t = BoostBuild.Tester(["-ffile.jam"], workdir=os.getcwd(), pass_d0=False, + pass_toolset=False) + +t.write("file.jam", "EXIT [ PWD ] : 0 ;") + +t.run_build_system() +t.expect_output_lines("*%s*" % tempfile.gettempdir(), False) +t.expect_output_lines("*build/v2/test*") + +t.run_build_system(status=1, subdir="/must/fail/with/absolute/path", + stderr=None) + +t.cleanup() |
