diff options
author | William Deegan <bill@baddogconsulting.com> | 2019-03-03 01:52:32 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2019-03-03 01:52:32 (GMT) |
commit | 08f5e913d3b70a07672873c4573e236c4ccc7ac1 (patch) | |
tree | 779bce734128bf71e62e2ed75b1543b66b59aa62 /test/YACC | |
parent | 701ffd2746fbabe4d1908abbcb4a2d29eaf688f4 (diff) | |
download | SCons-08f5e913d3b70a07672873c4573e236c4ccc7ac1.zip SCons-08f5e913d3b70a07672873c4573e236c4ccc7ac1.tar.gz SCons-08f5e913d3b70a07672873c4573e236c4ccc7ac1.tar.bz2 |
Add support for usign chocolatey install winflexbison package with tools named win_bison
Diffstat (limited to 'test/YACC')
-rw-r--r-- | test/YACC/live-check-output-cleaned.py | 3 | ||||
-rw-r--r-- | test/YACC/live.py | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/test/YACC/live-check-output-cleaned.py b/test/YACC/live-check-output-cleaned.py index 8329b94..9adaaf0 100644 --- a/test/YACC/live-check-output-cleaned.py +++ b/test/YACC/live-check-output-cleaned.py @@ -34,12 +34,13 @@ _exe = TestSCons._exe test = TestSCons.TestSCons() -yacc = test.where_is('yacc') or test.where_is('bison') +yacc = test.where_is('yacc') or test.where_is('bison') or test.where_is('win_bison') if not yacc: test.skip_test('No yacc or bison found; skipping test.\n') test.write('SConstruct', """ +DefaultEnvironment(tools=[]) foo = Environment(YACCFLAGS='-v -d', tools = ['default', 'yacc']) foo.CFile(source = 'foo.y') """ % locals()) diff --git a/test/YACC/live.py b/test/YACC/live.py index a79d3db..4567dba 100644 --- a/test/YACC/live.py +++ b/test/YACC/live.py @@ -37,18 +37,15 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() -yacc = test.where_is('yacc') or test.where_is('bison') +yacc = test.where_is('yacc') or test.where_is('bison') or test.where_is('win_bison') if not yacc: test.skip_test('No yacc or bison found; skipping test.\n') -if sys.platform == 'win32': - if not test.where_is('gcc'): - test.skip_test('No gcc found on windows; skipping test.\n') - test.file_fixture('wrapper.py') test.write('SConstruct', """ +DefaultEnvironment(tools=[]) foo = Environment(YACCFLAGS='-d', tools = ['default', 'yacc']) yacc = foo.Dictionary('YACC') bar = Environment(YACC = r'%(_python_)s wrapper.py ' + yacc, tools = ['default', 'yacc']) |