diff options
author | Steven Knight <knight@baldmt.com> | 2002-01-11 03:17:45 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-01-11 03:17:45 (GMT) |
commit | 73d5fcf51f9002bb3a0da8a32576b2e8ce0cb54a (patch) | |
tree | a8312b6ab6dc5cdd45c711c757dd59150223efdc /test/YACC.py | |
parent | 74c6fdcbeadb1b42f134f7f9b864763d29bb8338 (diff) | |
download | SCons-73d5fcf51f9002bb3a0da8a32576b2e8ce0cb54a.zip SCons-73d5fcf51f9002bb3a0da8a32576b2e8ce0cb54a.tar.gz SCons-73d5fcf51f9002bb3a0da8a32576b2e8ce0cb54a.tar.bz2 |
Check for the existence of lex and yacc in those tests and bail with NO RESULT if they're not present..
Diffstat (limited to 'test/YACC.py')
-rw-r--r-- | test/YACC.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/YACC.py b/test/YACC.py index f497c69..a405985 100644 --- a/test/YACC.py +++ b/test/YACC.py @@ -25,6 +25,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os +import os.path import string import sys import TestSCons @@ -36,8 +37,17 @@ if sys.platform == 'win32': else: _exe = '' +yacc = None +for dir in string.split(os.environ['PATH'], os.pathsep): + y = os.path.join(dir, 'yacc' + _exe) + if os.path.exists(y): + yacc = y + break + test = TestSCons.TestSCons() +test.no_result(not yacc) + test.write("wrapper.py", """import os import string |