diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-10 20:30:28 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-10 20:30:28 (GMT) |
commit | 5baa0ff42fc922008a0a148bef7da73b09f0dfbd (patch) | |
tree | 0e1da490107e63248230a0084eb1546d37b06872 /test/SConstruct.py | |
parent | 528c2bf71dd1d45f158f15b015a382dbac7a34df (diff) | |
download | SCons-5baa0ff42fc922008a0a148bef7da73b09f0dfbd.zip SCons-5baa0ff42fc922008a0a148bef7da73b09f0dfbd.tar.gz SCons-5baa0ff42fc922008a0a148bef7da73b09f0dfbd.tar.bz2 |
Look for SConstruct, Sconstruct, and sconstruct files.
Diffstat (limited to 'test/SConstruct.py')
-rw-r--r-- | test/SConstruct.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/SConstruct.py b/test/SConstruct.py new file mode 100644 index 0000000..b68bed4 --- /dev/null +++ b/test/SConstruct.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python + +__revision__ = "test/SConstruct.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +wpath = test.workpath() + +test.write('sconstruct', """ +import os +print "sconstruct", os.getcwd() +""") + +test.run(chdir = '.') + +test.fail_test(test.stdout() != ("sconstruct %s\n" % wpath)) + +test.write('Sconstruct', """ +import os +print "Sconstruct", os.getcwd() +""") + +test.run(chdir = '.') + +test.fail_test(test.stdout() != ("Sconstruct %s\n" % wpath)) + +test.write('SConstruct', """ +import os +print "SConstruct", os.getcwd() +""") + +test.run(chdir = '.') + +test.fail_test(test.stdout() != ("SConstruct %s\n" % wpath)) + +test.pass_test() |