summaryrefslogtreecommitdiff
path: root/test/SConstruct.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-10 20:30:28 +0000
committerSteven Knight <knight@baldmt.com>2001-09-10 20:30:28 +0000
commit5baa0ff42fc922008a0a148bef7da73b09f0dfbd (patch)
tree0e1da490107e63248230a0084eb1546d37b06872 /test/SConstruct.py
parent528c2bf71dd1d45f158f15b015a382dbac7a34df (diff)
downloadscons-5baa0ff42fc922008a0a148bef7da73b09f0dfbd.tar.gz
Look for SConstruct, Sconstruct, and sconstruct files.
Diffstat (limited to 'test/SConstruct.py')
-rw-r--r--test/SConstruct.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/SConstruct.py b/test/SConstruct.py
new file mode 100644
index 00000000..b68bed47
--- /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()