diff options
author | Steven Knight <knight@baldmt.com> | 2002-08-31 04:58:09 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-08-31 04:58:09 (GMT) |
commit | da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07 (patch) | |
tree | 09923409e3e511b6d18e0323209f34cda29c2ca7 /test/SConstruct.py | |
parent | d8b4ea0c9adfb77244f488c338d290c863f2b8b1 (diff) | |
download | SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.zip SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.tar.gz SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.tar.bz2 |
Provide a message if there are no command-line targets specified and no Default() targets.
Diffstat (limited to 'test/SConstruct.py')
-rw-r--r-- | test/SConstruct.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/SConstruct.py b/test/SConstruct.py index de5b72e..bf35edc 100644 --- a/test/SConstruct.py +++ b/test/SConstruct.py @@ -29,11 +29,13 @@ import TestSCons test = TestSCons.TestSCons(match = TestCmd.match_re) -test.run(stdout = "", - stderr = r""" +test.run(arguments = ".", + status = 2, + stdout = "", + stderr = r""" SCons error: No SConstruct file found. File "\S+", line \d+, in \S+ -""", status=2) +""") test.match_func = TestCmd.match_exact @@ -44,20 +46,21 @@ import os print "sconstruct", os.getcwd() """) -test.run(stdout = "sconstruct %s\n" % wpath) +test.run(arguments = ".", stdout = 'sconstruct %s\nscons: "." is up to date.\n' % wpath) + test.write('Sconstruct', """ import os print "Sconstruct", os.getcwd() """) -test.run(stdout = "Sconstruct %s\n" % wpath) +test.run(arguments = ".", stdout = 'Sconstruct %s\nscons: "." is up to date.\n' % wpath) test.write('SConstruct', """ import os print "SConstruct", os.getcwd() """) -test.run(stdout = "SConstruct %s\n" % wpath) +test.run(arguments = ".", stdout = 'SConstruct %s\nscons: "." is up to date.\n' % wpath) test.pass_test() |