summaryrefslogtreecommitdiff
path: root/test/option-f.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-11 13:28:01 +0000
committerSteven Knight <knight@baldmt.com>2001-09-11 13:28:01 +0000
commita7f9351f01c37b9f3fe2e2c1ab102511ec8169d2 (patch)
tree6fdaf69694125f095b86a959059aa89d1a238305 /test/option-f.py
parentd9fa9439a4424fce36654c68b39e6866cba502c9 (diff)
downloadscons-a7f9351f01c37b9f3fe2e2c1ab102511ec8169d2.tar.gz
Test the long -f options (--file, --makefile, --sconstruct).
Diffstat (limited to 'test/option-f.py')
-rw-r--r--test/option-f.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/option-f.py b/test/option-f.py
index e52532e4..4ea2ee9b 100644
--- a/test/option-f.py
+++ b/test/option-f.py
@@ -31,4 +31,22 @@ test.fail_test(test.stdout() != ("SConscript %s\n" % wpath))
test.run(chdir = '.', arguments = '-f ' + subdir_BuildThis)
test.fail_test(test.stdout() != ("subdir/BuildThis %s\n" % wpath))
+test.run(chdir = '.', arguments = '--file=SConscript')
+test.fail_test(test.stdout() != ("SConscript %s\n" % wpath))
+
+test.run(chdir = '.', arguments = '--file=' + subdir_BuildThis)
+test.fail_test(test.stdout() != ("subdir/BuildThis %s\n" % wpath))
+
+test.run(chdir = '.', arguments = '--makefile=SConscript')
+test.fail_test(test.stdout() != ("SConscript %s\n" % wpath))
+
+test.run(chdir = '.', arguments = '--makefile=' + subdir_BuildThis)
+test.fail_test(test.stdout() != ("subdir/BuildThis %s\n" % wpath))
+
+test.run(chdir = '.', arguments = '--sconstruct=SConscript')
+test.fail_test(test.stdout() != ("SConscript %s\n" % wpath))
+
+test.run(chdir = '.', arguments = '--sconstruct=' + subdir_BuildThis)
+test.fail_test(test.stdout() != ("subdir/BuildThis %s\n" % wpath))
+
test.pass_test()