diff options
author | Steven Knight <knight@baldmt.com> | 2003-02-05 22:06:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-02-05 22:06:52 (GMT) |
commit | 1321ef0af677827deb274d698d06ffa8b73010b0 (patch) | |
tree | 12db09379f94382c56b55b9050e5e59950344867 /test/no-arguments.py | |
parent | 15e31b8bda9f093971af3c3b0136b043ebb02746 (diff) | |
download | SCons-1321ef0af677827deb274d698d06ffa8b73010b0.zip SCons-1321ef0af677827deb274d698d06ffa8b73010b0.tar.gz SCons-1321ef0af677827deb274d698d06ffa8b73010b0.tar.bz2 |
Change the default behavior when no arguments are specified to building everything in (or below) the current directory.
Diffstat (limited to 'test/no-arguments.py')
-rw-r--r-- | test/no-arguments.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/no-arguments.py b/test/no-arguments.py index acd590a..602ef80 100644 --- a/test/no-arguments.py +++ b/test/no-arguments.py @@ -24,6 +24,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" +""" +Verify that we use a default target of the current directory when there +are no command-line arguments (and, implicitly, no Default() in the +SConstruct). +""" + import os.path import TestSCons @@ -47,13 +53,9 @@ env.Build('aaa.out', 'aaa.in') test.write('aaa.in', "aaa.in\n") # -test.run(arguments = '.') +test.run() test.fail_test(test.read('aaa.out') != "aaa.in\n") # -test.run(status = 2, stderr = -"scons: *** No targets specified and no Default() targets found. Stop.\n") - -# test.pass_test() |