summaryrefslogtreecommitdiffstats
path: root/test/ZIP/ZIPCOMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/ZIP/ZIPCOMSTR.py')
-rw-r--r--test/ZIP/ZIPCOMSTR.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ZIP/ZIPCOMSTR.py b/test/ZIP/ZIPCOMSTR.py
index a26ed49..af9ba57 100644
--- a/test/ZIP/ZIPCOMSTR.py
+++ b/test/ZIP/ZIPCOMSTR.py
@@ -35,15 +35,17 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-test.dir_fixture('ZIPCOMSTR-fixture')
+test.file_fixture('mycompile.py')
test.write('SConstruct', """
env = Environment(tools=['zip'],
- ZIPCOM = r'%(_python_)s myzip.py $TARGET $SOURCES',
+ ZIPCOM = r'%(_python_)s mycompile.py zip $TARGET $SOURCES',
ZIPCOMSTR = 'Zipping $TARGET from $SOURCE')
env.Zip('aaa.zip', 'aaa.in')
""" % locals())
+test.write('aaa.in', 'aaa.in\n/*zip*/\n')
+
test.run(stdout = test.wrap_stdout("""\
Zipping aaa.zip from aaa.in
"""))