summaryrefslogtreecommitdiffstats
path: root/test/YACC/YACCCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/YACC/YACCCOM.py')
-rw-r--r--test/YACC/YACCCOM.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/YACC/YACCCOM.py b/test/YACC/YACCCOM.py
index 4e43676..70ffa72 100644
--- a/test/YACC/YACCCOM.py
+++ b/test/YACC/YACCCOM.py
@@ -34,17 +34,8 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-
-
-test.write('myyacc.py', """
-import sys
-outfile = open(sys.argv[1], 'wb')
-for f in sys.argv[2:]:
- infile = open(f, 'rb')
- for l in [l for l in infile.readlines() if l != '/*yacc*/\\n']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.dir_fixture('shared-fixture')
+test.dir_fixture('YACCCOM-fixture')
test.write('SConstruct', """
env = Environment(tools=['default', 'yacc'],
@@ -53,9 +44,6 @@ env.CFile(target = 'aaa', source = 'aaa.y')
env.CFile(target = 'bbb', source = 'bbb.yacc')
""" % locals())
-test.write('aaa.y', "aaa.y\n/*yacc*/\n")
-test.write('bbb.yacc', "bbb.yacc\n/*yacc*/\n")
-
test.run(arguments = '.')
test.must_match('aaa.c', "aaa.y\n")