1# Niklaus Giger, 2005-03-15 2# Testing whether we may run a test in absolute directories. There are no tests 3# for temporary directories as this is implictly tested in a lot of other cases. 4 5# TODO: Move to a separate testing-system test group. 6# TODO: Make the test not display any output on success. 7# TODO: Make sure implemented path handling is correct under Windows, Cygwin & 8# Unix/Linux. 9 10import BoostBuild 11import os 12import tempfile 13 14t = BoostBuild.Tester(["-ffile.jam"], workdir=os.getcwd(), pass_d0=False, 15 pass_toolset=False) 16 17t.write("file.jam", "EXIT [ PWD ] : 0 ;") 18 19t.run_build_system() 20t.expect_output_lines("*%s*" % tempfile.gettempdir(), False) 21t.expect_output_lines("*build/v2/test*") 22 23t.run_build_system(status=1, subdir="/must/fail/with/absolute/path", 24 stderr=None) 25 26t.cleanup() 27