summaryrefslogtreecommitdiffstats
path: root/test/IDL/MIDLCOMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/IDL/MIDLCOMSTR.py')
-rw-r--r--test/IDL/MIDLCOMSTR.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/IDL/MIDLCOMSTR.py b/test/IDL/MIDLCOMSTR.py
index 56f8c40..9e01aa0 100644
--- a/test/IDL/MIDLCOMSTR.py
+++ b/test/IDL/MIDLCOMSTR.py
@@ -35,21 +35,11 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-
-
-test.write('mymidl.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 != '/*midl*/\\n']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.file_fixture('mycompile.py')
test.write('SConstruct', """
env = Environment(tools=['default', 'midl'],
- MIDLCOM = r'%(_python_)s mymidl.py $TARGET $SOURCES',
+ MIDLCOM = r'%(_python_)s mycompile.py midl $TARGET $SOURCES',
MIDLCOMSTR = 'MIDLing $TARGET from $SOURCE')
env.TypeLibrary(target = 'aaa', source = 'aaa.idl')
""" % locals())
@@ -62,8 +52,6 @@ MIDLing aaa.tlb from aaa.idl
test.must_match('aaa.tlb', "aaa.idl\n")
-
-
test.pass_test()
# Local Variables: