diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-11-27 23:25:05 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-11-27 23:25:05 (GMT) |
commit | 30247efa139711be7f2d7342c01b1c817985df0c (patch) | |
tree | b4360925e1c5102aa58c51b5c68e64d0c01ca84f /test/MSVC/RCCOM.py | |
parent | 3031330216256cbff09b5631fdf68fa75d2439f2 (diff) | |
parent | d938777da7f4b9e908075dabb1554bef9882d60f (diff) | |
download | SCons-30247efa139711be7f2d7342c01b1c817985df0c.zip SCons-30247efa139711be7f2d7342c01b1c817985df0c.tar.gz SCons-30247efa139711be7f2d7342c01b1c817985df0c.tar.bz2 |
update from upstream
Diffstat (limited to 'test/MSVC/RCCOM.py')
-rw-r--r-- | test/MSVC/RCCOM.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/test/MSVC/RCCOM.py b/test/MSVC/RCCOM.py index 05382b8..04f8fff 100644 --- a/test/MSVC/RCCOM.py +++ b/test/MSVC/RCCOM.py @@ -35,21 +35,11 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() - - -test.write('myrc.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 != '/*rc*/\\n']: - outfile.write(l) -sys.exit(0) -""") +test.file_fixture('mycompile.py') test.write('SConstruct', """ env = Environment(tools=['default', 'msvc'], - RCCOM = r'%(_python_)s myrc.py $TARGET $SOURCES') + RCCOM = r'%(_python_)s mycompile.py rc $TARGET $SOURCES') env.RES(target = 'aaa', source = 'aaa.rc') """ % locals()) @@ -59,8 +49,6 @@ test.run(arguments = ".") test.must_match('aaa.res', "aaa.rc\n") - - test.pass_test() # Local Variables: |