summaryrefslogtreecommitdiffstats
path: root/test/SConscript.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-08-14 11:17:14 (GMT)
committerSteven Knight <knight@baldmt.com>2001-08-14 11:17:14 (GMT)
commit7884cffaf3380a66a999ae8db12e0418f96993c0 (patch)
tree98d0b177f9b53719dc070c00f52332f653b65049 /test/SConscript.py
parent062cbfc18a81e3b0c4147c4ead7cebff5e18063f (diff)
downloadSCons-7884cffaf3380a66a999ae8db12e0418f96993c0.zip
SCons-7884cffaf3380a66a999ae8db12e0418f96993c0.tar.gz
SCons-7884cffaf3380a66a999ae8db12e0418f96993c0.tar.bz2
Clean up tests.
Diffstat (limited to 'test/SConscript.py')
-rw-r--r--test/SConscript.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/SConscript.py b/test/SConscript.py
new file mode 100644
index 0000000..de24d68
--- /dev/null
+++ b/test/SConscript.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+__revision__ = "test/SConscript.py __REVISION__ __DATE__ __DEVELOPER__"
+
+import TestCmd
+
+test = TestCmd.TestCmd(program = 'scons.py',
+ workdir = '',
+ interpreter = 'python')
+
+test.write('SConstruct', """
+import os
+print "SConstruct", os.getcwd()
+Conscript('SConscript')
+""")
+
+# XXX I THINK THEY SHOULD HAVE TO RE-IMPORT OS HERE
+test.write('SConscript', """
+import os
+print "SConscript " + os.getcwd()
+""")
+
+wpath = test.workpath()
+
+test.run(chdir = '.')
+test.fail_test(test.stdout() != ("SConstruct %s\nSConscript %s\n" % (wpath, wpath)))
+
+test.pass_test()