diff options
author | Steven Knight <knight@baldmt.com> | 2001-10-02 20:01:35 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-10-02 20:01:35 (GMT) |
commit | c38b764a8c7e91d48c79a4918fd55d5305a3fffc (patch) | |
tree | f9032a75fdaca058cad91c0823a7d6c9e06ce1be /test/Command.py | |
parent | f987fbf31938ce3009b89f1f62f880cdc2a511f4 (diff) | |
download | SCons-c38b764a8c7e91d48c79a4918fd55d5305a3fffc.zip SCons-c38b764a8c7e91d48c79a4918fd55d5305a3fffc.tar.gz SCons-c38b764a8c7e91d48c79a4918fd55d5305a3fffc.tar.bz2 |
Add the Command() method.
Diffstat (limited to 'test/Command.py')
-rw-r--r-- | test/Command.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/Command.py b/test/Command.py index abe060e..2d6c03d 100644 --- a/test/Command.py +++ b/test/Command.py @@ -7,11 +7,9 @@ import TestSCons test = TestSCons.TestSCons() -test.pass_test() #XXX Short-circuit until this is implemented. - test.write('build.py', r""" import sys -contents = open(sys.argv[2], 'r').read() + open(sys.argv[3], 'r').read() +contents = open(sys.argv[2], 'r').read() file = open(sys.argv[1], 'w') file.write(contents) file.close() @@ -22,7 +20,7 @@ env = Environment() env.Command(target = 'f1.out', source = 'f1.in', action = "python build.py %(target)s %(source)s") env.Command(target = 'f2.out', source = 'f2.in', - action = "python build.py temp2 %(source)s\npython build.py %(target)s temp2") + action = "python build.py temp2 %(source)s\\npython build.py %(target)s temp2") env.Command(target = 'f3.out', source = 'f3.in', action = ["python build.py temp3 %(source)s", "python build.py %(target)s temp3"]) @@ -35,7 +33,8 @@ test.write('f2.in', "f2.in\n") test.write('f3.in', "f3.in\n") -test.run(arguments = '.') +#XXXtest.run(arguments = '.') +test.run(arguments = 'f1.out f2.out f3.out') test.fail_test(test.read('f1.out') != "f1.in\n") test.fail_test(test.read('f2.out') != "f2.in\n") |