mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
26 lines
650 B
Python
26 lines
650 B
Python
#!/usr/bin/python
|
|
|
|
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
|
# distribute this software is granted provided this copyright notice appears in
|
|
# all copies. This software is provided "as is" without express or implied
|
|
# warranty, and with no claim as to its suitability for any purpose.
|
|
|
|
from BoostBuild import Tester, List
|
|
from string import find
|
|
|
|
# Create a temporary working directory
|
|
t = Tester()
|
|
|
|
# Create the needed files
|
|
t.write("project-root.jam", """
|
|
constant FOO : foobar ;
|
|
ECHO $(FOO) ;
|
|
""")
|
|
t.write("Jamfile", """
|
|
""")
|
|
|
|
t.run_build_system()
|
|
t.fail_test(find(t.stdout(), "foobar") == -1)
|
|
|
|
t.cleanup()
|