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 | |
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')
37 files changed, 165 insertions, 92 deletions
diff --git a/test/ARGUMENTS.py b/test/ARGUMENTS.py index 3c6639f..1e88ced 100644 --- a/test/ARGUMENTS.py +++ b/test/ARGUMENTS.py @@ -37,7 +37,7 @@ for k in keys: foo.close() """) -test.run(arguments='a=1 bz=3 xx=sd') +test.run(arguments='a=1 bz=3 xx=sd .') test.fail_test(test.read('foo.out') != """a = 1 bz = 3 diff --git a/test/BuildDir.py b/test/BuildDir.py index c2ad4af..8e79de9 100644 --- a/test/BuildDir.py +++ b/test/BuildDir.py @@ -42,7 +42,7 @@ try: except: print 'There is no fortran compiler.' """) -test.run() +test.run(arguments = ".") f77 = test.where_is(test.stdout()[:-1]) test.unlink('SConstruct') diff --git a/test/FindFile.py b/test/FindFile.py index 6c3c347..6123c5a 100644 --- a/test/FindFile.py +++ b/test/FindFile.py @@ -56,9 +56,10 @@ test 2 test 4 +scons: "." is up to date. """ -test.run(stdout = expect) +test.run(arguments = ".", stdout = expect) test.pass_test() diff --git a/test/Platform.py b/test/Platform.py index 6eaa5dc..c2a113a 100644 --- a/test/Platform.py +++ b/test/Platform.py @@ -61,9 +61,10 @@ expect = """'.exe' '.lib' '.a' '.lib' +scons: "." is up to date. """ -test.run(stdout = expect) +test.run(arguments = ".", stdout = expect) test.pass_test() diff --git a/test/SConscript.py b/test/SConscript.py index d1e6b6a..6f87a9a 100644 --- a/test/SConscript.py +++ b/test/SConscript.py @@ -208,6 +208,8 @@ Return("result") wpath = test.workpath() -test.run(stdout = "SConstruct %s\nSConscript %s\n" % (wpath, wpath)) +test.run(arguments = ".", + stdout = 'SConstruct %s\nSConscript %s\nscons: "." is up to date.\n' % (wpath, wpath)) + test.pass_test() 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() diff --git a/test/Split.py b/test/Split.py index ee1a435..5207d8d 100644 --- a/test/Split.py +++ b/test/Split.py @@ -47,8 +47,9 @@ expect = """['aaa'] ['fff'] ['ggg', 'hhh'] ['iii', 'jjj'] +scons: "." is up to date. """ -test.run(stdout = expect) +test.run(arguments = ".", stdout = expect) test.pass_test() diff --git a/test/WhereIs.py b/test/WhereIs.py index 515be14..f8c7b94 100644 --- a/test/WhereIs.py +++ b/test/WhereIs.py @@ -103,9 +103,10 @@ expect = [ test.workpath(sub3_xxx_exe), test.workpath(sub4_xxx_exe), test.workpath(sub3_xxx_exe), test.workpath(sub4_xxx_exe), + 'scons: "." is up to date.', ] -test.run(stdout = string.join(expect, "\n") + "\n") +test.run(arguments = ".", stdout = string.join(expect, "\n") + "\n") os.environ['PATH'] = string.join(pathdirs_1243, os.pathsep) @@ -119,8 +120,9 @@ expect = [ test.workpath(sub4_xxx_exe), test.workpath(sub4_xxx_exe), test.workpath(sub3_xxx_exe), test.workpath(sub4_xxx_exe), + 'scons: "." is up to date.', ] -test.run(stdout = string.join(expect, "\n") + "\n") +test.run(arguments = ".", stdout = string.join(expect, "\n") + "\n") test.pass_test() diff --git a/test/exitfns.py b/test/exitfns.py index 35fd982..8a9e01e 100644 --- a/test/exitfns.py +++ b/test/exitfns.py @@ -46,7 +46,8 @@ register(x3, "no kwd args") """ -expected_output = """running x3('no kwd args', kwd=None) +expected_output = """scons: "." is up to date. +running x3('no kwd args', kwd=None) running x3(5, kwd='bar') running x2(12) running x1 @@ -55,7 +56,7 @@ running x3('no kwd args', kwd=None) test.write('SConstruct', sconstruct) -test.run(arguments='-f SConstruct', stdout = expected_output) +test.run(arguments='-f SConstruct .', stdout = expected_output) test.write('SConstruct', """import sys def f(): @@ -64,6 +65,6 @@ def f(): sys.exitfunc = f """ + sconstruct) -test.run(arguments='-f SConstruct', stdout = expected_output) +test.run(arguments='-f SConstruct .', stdout = expected_output) test.pass_test() diff --git a/test/no-arguments.py b/test/no-arguments.py new file mode 100644 index 0000000..a7458c6 --- /dev/null +++ b/test/no-arguments.py @@ -0,0 +1,59 @@ +#!/usr/bin/env python +# +# Copyright (c) 2001, 2002 Steven Knight +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" + +import os.path + +import TestSCons + +test = TestSCons.TestSCons() + +test.write('SConstruct', r""" +def cat(env, source, target): + target = str(target[0]) + source = map(str, source) + print 'cat(%s) > %s' % (source, target) + f = open(target, "wb") + for src in source: + f.write(open(src, "rb").read()) + f.close() + +env = Environment(BUILDERS={'Build':Builder(action=cat)}) +env.Build('aaa.out', 'aaa.in') +""") + +test.write('aaa.in', "aaa.in\n") + +# +test.run(arguments = '.') + +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() diff --git a/test/option--C.py b/test/option--C.py index 8fbb457..5bbbd31 100644 --- a/test/option--C.py +++ b/test/option--C.py @@ -65,19 +65,20 @@ import os print GetBuildPath('..') """) -test.run(arguments = '-C sub', - stdout = "%s\n" % wpath) +test.run(arguments = '-C sub .', + stdout = '%s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '-C sub -C dir', - stdout = "%s\n" % wpath_sub) +test.run(arguments = '-C sub -C dir .', + stdout = '%s\nscons: "." is up to date.\n' % wpath_sub) -test.run(stdout = "SConstruct %s\n" % wpath) +test.run(arguments = ".", + stdout = 'SConstruct %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '--directory=sub/dir', - stdout = "%s\n" % wpath_sub) +test.run(arguments = '--directory=sub/dir .', + stdout = '%s\nscons: "." is up to date.\n' % wpath_sub) -test.run(arguments = '-C %s -C %s' % (wpath_sub_dir, wpath_sub), - stdout = "%s\n" % wpath) +test.run(arguments = '-C %s -C %s .' % (wpath_sub_dir, wpath_sub), + stdout = '%s\nscons: "." is up to date.\n' % wpath) test.pass_test() diff --git a/test/option--I.py b/test/option--I.py index 5acdb59..b315a60 100644 --- a/test/option--I.py +++ b/test/option--I.py @@ -51,10 +51,11 @@ import bar print bar.variable """) -test.run(arguments = '-I sub1 -I sub2', stdout = "sub1/foo\nsub2/bar\n") +test.run(arguments = '-I sub1 -I sub2 .', + stdout = 'sub1/foo\nsub2/bar\nscons: "." is up to date.\n') -test.run(arguments = '--include-dir=sub2 --include-dir=sub1', - stdout = "sub2/foo\nsub2/bar\n") +test.run(arguments = '--include-dir=sub2 --include-dir=sub1 .', + stdout = 'sub2/foo\nsub2/bar\nscons: "." is up to date.\n') test.pass_test() diff --git a/test/option--R.py b/test/option--R.py index 03e5e08..ec76aee 100644 --- a/test/option--R.py +++ b/test/option--R.py @@ -32,10 +32,10 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-R', +test.run(arguments = '-R .', stderr = "Warning: the -R option is not yet implemented\n") -test.run(arguments = '--no-builtin-variables', +test.run(arguments = '--no-builtin-variables .', stderr = "Warning: the --no-builtin-variables option is not yet implemented\n") test.pass_test() diff --git a/test/option--S.py b/test/option--S.py index f238be9..ca66cfd 100644 --- a/test/option--S.py +++ b/test/option--S.py @@ -32,12 +32,12 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-S', stderr = "Warning: ignoring -S option\n") +test.run(arguments = '-S .', stderr = "Warning: ignoring -S option\n") -test.run(arguments = '--no-keep-going', +test.run(arguments = '--no-keep-going .', stderr = "Warning: ignoring --no-keep-going option\n") -test.run(arguments = '--stop', stderr = "Warning: ignoring --stop option\n") +test.run(arguments = '--stop .', stderr = "Warning: ignoring --stop option\n") test.pass_test() diff --git a/test/option--U.py b/test/option--U.py index 003bce1..d2c518d 100644 --- a/test/option--U.py +++ b/test/option--U.py @@ -85,7 +85,7 @@ test.fail_test(os.path.exists(test.workpath('sub2/xxx.out'))) test.unlink(['sub1', 'foo.out']) test.write('SConscript', """assert GetLaunchDir() == r'%s'"""%test.workpath('sub1')) -test.run(arguments = '-U', chdir = 'sub1') +test.run(arguments = '-U', chdir = 'sub1', stderr = None, status = 2) test.fail_test(os.path.exists(test.workpath('sub1', 'foo.out'))) test.fail_test(os.path.exists(test.workpath('sub2', 'bar.out'))) test.fail_test(os.path.exists(test.workpath('sub2b', 'bar.out'))) diff --git a/test/option--W.py b/test/option--W.py index ac43603..d66601a 100644 --- a/test/option--W.py +++ b/test/option--W.py @@ -32,16 +32,16 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-W foo', +test.run(arguments = '-W foo .', stderr = "Warning: the -W option is not yet implemented\n") -test.run(arguments = '--what-if=foo', +test.run(arguments = '--what-if=foo .', stderr = "Warning: the --what-if option is not yet implemented\n") -test.run(arguments = '--new-file=foo', +test.run(arguments = '--new-file=foo .', stderr = "Warning: the --new-file option is not yet implemented\n") -test.run(arguments = '--assume-new=foo', +test.run(arguments = '--assume-new=foo .', stderr = "Warning: the --assume-new option is not yet implemented\n") test.pass_test() diff --git a/test/option--cd.py b/test/option--cd.py index 57df09f..5ce6983 100644 --- a/test/option--cd.py +++ b/test/option--cd.py @@ -32,10 +32,10 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--cache-disable', +test.run(arguments = '--cache-disable .', stderr = "Warning: the --cache-disable option is not yet implemented\n") -test.run(arguments = '--no-cache', +test.run(arguments = '--no-cache .', stderr = "Warning: the --no-cache option is not yet implemented\n") test.pass_test() diff --git a/test/option--cf.py b/test/option--cf.py index e3dd43c..7b1ff69 100644 --- a/test/option--cf.py +++ b/test/option--cf.py @@ -32,10 +32,10 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--cache-force', +test.run(arguments = '--cache-force .', stderr = "Warning: the --cache-force option is not yet implemented\n") -test.run(arguments = '--cache-populate', +test.run(arguments = '--cache-populate .', stderr = "Warning: the --cache-populate option is not yet implemented\n") test.pass_test() diff --git a/test/option--cs.py b/test/option--cs.py index ea1399b..e1294ec 100644 --- a/test/option--cs.py +++ b/test/option--cs.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--cache-show', +test.run(arguments = '--cache-show .', stderr = "Warning: the --cache-show option is not yet implemented\n") test.pass_test() diff --git a/test/option--la.py b/test/option--la.py index 94313c8..2e7009f 100644 --- a/test/option--la.py +++ b/test/option--la.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--list-actions', +test.run(arguments = '--list-actions .', stderr = "Warning: the --list-actions option is not yet implemented\n") test.pass_test() diff --git a/test/option--ld.py b/test/option--ld.py index f2d56c5..f7c6e0a 100644 --- a/test/option--ld.py +++ b/test/option--ld.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--list-derived', +test.run(arguments = '--list-derived .', stderr = "Warning: the --list-derived option is not yet implemented\n") test.pass_test() diff --git a/test/option--lw.py b/test/option--lw.py index e6f050f..2260184 100644 --- a/test/option--lw.py +++ b/test/option--lw.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--list-where', +test.run(arguments = '--list-where .', stderr = "Warning: the --list-where option is not yet implemented\n") test.pass_test() diff --git a/test/option--npd.py b/test/option--npd.py index ab7a39c..9567915 100644 --- a/test/option--npd.py +++ b/test/option--npd.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--no-print-directory', +test.run(arguments = '--no-print-directory .', stderr = "Warning: the --no-print-directory option is not yet implemented\n") test.pass_test() diff --git a/test/option--override.py b/test/option--override.py index c8b8d57..ef65535 100644 --- a/test/option--override.py +++ b/test/option--override.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--override=foo', +test.run(arguments = '--override=foo .', stderr = "Warning: the --override option is not yet implemented\n") test.pass_test() diff --git a/test/option--random.py b/test/option--random.py index a5b9f1b..43d48df 100644 --- a/test/option--random.py +++ b/test/option--random.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--random', +test.run(arguments = '--random .', stderr = "Warning: the --random option is not yet implemented\n") test.pass_test() diff --git a/test/option--warn.py b/test/option--warn.py index fab1a93..2471e84 100644 --- a/test/option--warn.py +++ b/test/option--warn.py @@ -36,16 +36,16 @@ test.write("SConstruct",""" b=Builder(name='b', action='foo') """) -test.run(arguments='', stderr=r""" +test.run(arguments='.', stderr=r""" SCons warning: The use of the 'name' parameter to Builder\(\) is deprecated\. File "SConstruct", line 2, in \? """) -test.run(arguments='--warn=no-deprecated', stderr='') +test.run(arguments='--warn=no-deprecated .', stderr='') -test.run(arguments='--warn=no-all', stderr='') +test.run(arguments='--warn=no-all .', stderr='') -test.run(arguments='--warn=no-all --warn=deprecated', stderr=r""" +test.run(arguments='--warn=no-all --warn=deprecated .', stderr=r""" SCons warning: The use of the 'name' parameter to Builder\(\) is deprecated\. File "SConstruct", line 2, in \? """) diff --git a/test/option--wf.py b/test/option--wf.py index 1076501..db5e043 100644 --- a/test/option--wf.py +++ b/test/option--wf.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '--write-filenames=FILE', +test.run(arguments = '--write-filenames=FILE .', stderr = "Warning: the --write-filenames option is not yet implemented\n") test.pass_test() diff --git a/test/option-b.py b/test/option-b.py index feb4304..cf2fa98 100644 --- a/test/option-b.py +++ b/test/option-b.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-b', +test.run(arguments = '-b .', stderr = "Warning: ignoring -b option\n") test.pass_test() diff --git a/test/option-e.py b/test/option-e.py index e76eb5d..64b23b7 100644 --- a/test/option-e.py +++ b/test/option-e.py @@ -32,10 +32,10 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-e', +test.run(arguments = '-e .', stderr = "Warning: the -e option is not yet implemented\n") -test.run(arguments = '--environment-overrides', +test.run(arguments = '--environment-overrides .', stderr = "Warning: the --environment-overrides option is not yet implemented\n") test.pass_test() diff --git a/test/option-f.py b/test/option-f.py index bb8c639..30c49bb 100644 --- a/test/option-f.py +++ b/test/option-f.py @@ -45,38 +45,39 @@ print "subdir/BuildThis", os.getcwd() wpath = test.workpath() -test.run(arguments = '-f SConscript', - stdout = "SConscript %s\n" % wpath) +test.run(arguments = '-f SConscript .', + stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '-f ' + subdir_BuildThis, - stdout = "subdir/BuildThis %s\n" % wpath) -test.run(arguments = '--file=SConscript', - stdout = "SConscript %s\n" % wpath) +test.run(arguments = '-f %s .' % subdir_BuildThis, + stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '--file=' + subdir_BuildThis, - stdout = "subdir/BuildThis %s\n" % wpath) +test.run(arguments = '--file=SConscript .', + stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '--makefile=SConscript', - stdout = "SConscript %s\n" % wpath) +test.run(arguments = '--file=%s .' % subdir_BuildThis, + stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '--makefile=' + subdir_BuildThis, - stdout = "subdir/BuildThis %s\n" % wpath) +test.run(arguments = '--makefile=SConscript .', + stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '--sconstruct=SConscript', - stdout = "SConscript %s\n" % wpath) +test.run(arguments = '--makefile=%s .' % subdir_BuildThis, + stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '--sconstruct=' + subdir_BuildThis, - stdout = "subdir/BuildThis %s\n" % wpath) +test.run(arguments = '--sconstruct=SConscript .', + stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '-f -', stdin = """ +test.run(arguments = '--sconstruct=%s .' % subdir_BuildThis, + stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) + +test.run(arguments = '-f - .', stdin = """ import os print "STDIN " + os.getcwd() """, - stdout = "STDIN %s\n" % wpath) + stdout = 'STDIN %s\nscons: "." is up to date.\n' % wpath) -test.run(arguments = '-f no_such_file', - stdout = "", +test.run(arguments = '-f no_such_file .', + stdout = 'scons: "." is up to date.\n', stderr = "Ignoring missing SConscript 'no_such_file'\n") test.pass_test() diff --git a/test/option-l.py b/test/option-l.py index 7ff7704..065b969 100644 --- a/test/option-l.py +++ b/test/option-l.py @@ -32,13 +32,13 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-l 1', +test.run(arguments = '-l 1 .', stderr = "Warning: the -l option is not yet implemented\n") -test.run(arguments = '--load-average=1', +test.run(arguments = '--load-average=1 .', stderr = "Warning: the --load-average option is not yet implemented\n") -test.run(arguments = '--max-load=1', +test.run(arguments = '--max-load=1 .', stderr = "Warning: the --max-load option is not yet implemented\n") test.pass_test() diff --git a/test/option-m.py b/test/option-m.py index 3e7c8ee..fb38173 100644 --- a/test/option-m.py +++ b/test/option-m.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-m', +test.run(arguments = '-m .', stderr = "Warning: ignoring -m option\n") test.pass_test() diff --git a/test/option-o.py b/test/option-o.py index 05f7261..b85ede2 100644 --- a/test/option-o.py +++ b/test/option-o.py @@ -32,13 +32,13 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-o foo', +test.run(arguments = '-o foo .', stderr = "Warning: the -o option is not yet implemented\n") -test.run(arguments = '--old-file=foo', +test.run(arguments = '--old-file=foo .', stderr = "Warning: the --old-file option is not yet implemented\n") -test.run(arguments = '--assume-old=foo', +test.run(arguments = '--assume-old=foo .', stderr = "Warning: the --assume-old option is not yet implemented\n") test.pass_test() diff --git a/test/option-p.py b/test/option-p.py index 8d099aa..178a295 100644 --- a/test/option-p.py +++ b/test/option-p.py @@ -32,7 +32,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-p', +test.run(arguments = '-p .', stderr = "Warning: the -p option is not yet implemented\n") test.pass_test() diff --git a/test/option-r.py b/test/option-r.py index 82dacba..3134709 100644 --- a/test/option-r.py +++ b/test/option-r.py @@ -32,10 +32,10 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-r', +test.run(arguments = '-r .', stderr = "Warning: the -r option is not yet implemented\n") -test.run(arguments = '--no-builtin-rules', +test.run(arguments = '--no-builtin-rules .', stderr = "Warning: the --no-builtin-rules option is not yet implemented\n") test.pass_test() diff --git a/test/option-t.py b/test/option-t.py index 5b8a0db..1e3f513 100644 --- a/test/option-t.py +++ b/test/option-t.py @@ -32,10 +32,10 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-t', +test.run(arguments = '-t .', stderr = "Warning: ignoring -t option\n") -test.run(arguments = '--touch', +test.run(arguments = '--touch .', stderr = "Warning: ignoring --touch option\n") test.pass_test() diff --git a/test/option-w.py b/test/option-w.py index 20214bb..0ee67a2 100644 --- a/test/option-w.py +++ b/test/option-w.py @@ -32,10 +32,10 @@ test = TestSCons.TestSCons() test.write('SConstruct', "") -test.run(arguments = '-w', +test.run(arguments = '-w .', stderr = "Warning: the -w option is not yet implemented\n") -test.run(arguments = '--print-directory', +test.run(arguments = '--print-directory .', stderr = "Warning: the --print-directory option is not yet implemented\n") test.pass_test() |