diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-09 21:47:42 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-09 21:47:42 (GMT) |
commit | c47a0a15e0ec5f35a0ab7ed8ed142b5bcaaf4ca8 (patch) | |
tree | 148df137dfa88f54b75a2fb9472b9f5e657289a6 /test | |
parent | 146a6ca32ebf381e6fee5b3210c58685d984402e (diff) | |
download | SCons-c47a0a15e0ec5f35a0ab7ed8ed142b5bcaaf4ca8.zip SCons-c47a0a15e0ec5f35a0ab7ed8ed142b5bcaaf4ca8.tar.gz SCons-c47a0a15e0ec5f35a0ab7ed8ed142b5bcaaf4ca8.tar.bz2 |
Add command-line processing for all options (with tests).
Diffstat (limited to 'test')
37 files changed, 934 insertions, 0 deletions
diff --git a/test/option--C.py b/test/option--C.py new file mode 100644 index 0000000..db3402d --- /dev/null +++ b/test/option--C.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option--C.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-C foo') + +test.fail_test(test.stderr() != + "Warning: the -C option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--directory=foo') + +test.fail_test(test.stderr() != + "Warning: the --directory option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option--H.py b/test/option--H.py new file mode 100644 index 0000000..dcb56f6 --- /dev/null +++ b/test/option--H.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +__revision__ = "test/option--H.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-H') + +test.fail_test(string.find(test.stdout(), '-H, --help-options') == -1) + +test.pass_test() + diff --git a/test/option--I.py b/test/option--I.py new file mode 100644 index 0000000..f205a76 --- /dev/null +++ b/test/option--I.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option--I.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-I foo') + +test.fail_test(test.stderr() != + "Warning: the -I option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--include-dir=foo') + +test.fail_test(test.stderr() != + "Warning: the --include-dir option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option--R.py b/test/option--R.py new file mode 100644 index 0000000..cf401db --- /dev/null +++ b/test/option--R.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option--R.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-R') + +test.fail_test(test.stderr() != + "Warning: the -R option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--no-builtin-variables') + +test.fail_test(test.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 new file mode 100644 index 0000000..0db4dc5 --- /dev/null +++ b/test/option--S.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +__revision__ = "test/option--S.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-S') + +test.fail_test(test.stderr() != + "Warning: ignoring -S option\n") + +test.run(chdir = '.', arguments = '--no-keep-going') + +test.fail_test(test.stderr() != + "Warning: ignoring --no-keep-going option\n") + +test.run(chdir = '.', arguments = '--stop') + +test.fail_test(test.stderr() != + "Warning: ignoring --stop option\n") + +test.pass_test() + diff --git a/test/option--W.py b/test/option--W.py new file mode 100644 index 0000000..6f0a2a1 --- /dev/null +++ b/test/option--W.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python + +__revision__ = "test/option--W.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-W foo') + +test.fail_test(test.stderr() != + "Warning: the -W option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--what-if=foo') + +test.fail_test(test.stderr() != + "Warning: the --what-if option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--new-file=foo') + +test.fail_test(test.stderr() != + "Warning: the --new-file option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--assume-new=foo') + +test.fail_test(test.stderr() != + "Warning: the --assume-new option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option--Y.py b/test/option--Y.py new file mode 100644 index 0000000..e8c3356 --- /dev/null +++ b/test/option--Y.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option--Y.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-Y foo') + +test.fail_test(test.stderr() != + "Warning: the -Y option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--repository=foo') + +test.fail_test(test.stderr() != + "Warning: the --repository option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option--cd.py b/test/option--cd.py new file mode 100644 index 0000000..91694de --- /dev/null +++ b/test/option--cd.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option--cd.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--cache-disable') + +test.fail_test(test.stderr() != + "Warning: the --cache-disable option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--no-cache') + +test.fail_test(test.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 new file mode 100644 index 0000000..a0f7e9a --- /dev/null +++ b/test/option--cf.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option--cf.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--cache-force') + +test.fail_test(test.stderr() != + "Warning: the --cache-force option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--cache-populate') + +test.fail_test(test.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 new file mode 100644 index 0000000..b28e641 --- /dev/null +++ b/test/option--cs.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--cs.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--cache-show') + +test.fail_test(test.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 new file mode 100644 index 0000000..0e7a900 --- /dev/null +++ b/test/option--la.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--la.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--list-actions') + +test.fail_test(test.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 new file mode 100644 index 0000000..0b8fb7a --- /dev/null +++ b/test/option--ld.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--ld.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--list-derived') + +test.fail_test(test.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 new file mode 100644 index 0000000..2a7779e --- /dev/null +++ b/test/option--lw.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--lw.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--list-where') + +test.fail_test(test.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 new file mode 100644 index 0000000..8176db5 --- /dev/null +++ b/test/option--npd.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--npd.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--no-print-directory') + +test.fail_test(test.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 new file mode 100644 index 0000000..ae94be9 --- /dev/null +++ b/test/option--override.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--override.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--override=foo') + +test.fail_test(test.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 new file mode 100644 index 0000000..4d8780e --- /dev/null +++ b/test/option--random.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--random.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--random') + +test.fail_test(test.stderr() != + "Warning: the --random option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option--wf.py b/test/option--wf.py new file mode 100644 index 0000000..6fa9ff6 --- /dev/null +++ b/test/option--wf.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--wf.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--write-filenames=FILE') + +test.fail_test(test.stderr() != + "Warning: the --write-filenames option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option--wuv.py b/test/option--wuv.py new file mode 100644 index 0000000..c2b9f3b --- /dev/null +++ b/test/option--wuv.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option--wuv.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '--warn-undefined-variables') + +test.fail_test(test.stderr() != + "Warning: the --warn-undefined-variables option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-b.py b/test/option-b.py new file mode 100644 index 0000000..42e5f73 --- /dev/null +++ b/test/option-b.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option-b.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-b') + +test.fail_test(test.stderr() != + "Warning: ignoring -b option\n") + +test.pass_test() + diff --git a/test/option-c.py b/test/option-c.py new file mode 100644 index 0000000..1dadc51 --- /dev/null +++ b/test/option-c.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +__revision__ = "test/option-c.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-c') + +test.fail_test(test.stderr() != + "Warning: the -c option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--clean') + +test.fail_test(test.stderr() != + "Warning: the --clean option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--remove') + +test.fail_test(test.stderr() != + "Warning: the --remove option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-d.py b/test/option-d.py new file mode 100644 index 0000000..4f7b810 --- /dev/null +++ b/test/option-d.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option-d.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-d') + +test.fail_test(test.stderr() != + "Warning: the -d option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-e.py b/test/option-e.py new file mode 100644 index 0000000..9a3be5f --- /dev/null +++ b/test/option-e.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-e.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-e') + +test.fail_test(test.stderr() != + "Warning: the -e option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--environment-overrides') + +test.fail_test(test.stderr() != + "Warning: the --environment-overrides option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-h.py b/test/option-h.py new file mode 100644 index 0000000..92bbbc8 --- /dev/null +++ b/test/option-h.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python + +__revision__ = "test/option-h.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.run(chdir = '.', arguments = '-h') + +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-h') + +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.pass_test() + diff --git a/test/option-i.py b/test/option-i.py new file mode 100644 index 0000000..3ce1595 --- /dev/null +++ b/test/option-i.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-i.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-i') + +test.fail_test(test.stderr() != + "Warning: the -i option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--ignore-errors') + +test.fail_test(test.stderr() != + "Warning: the --ignore-errors option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-k.py b/test/option-k.py new file mode 100644 index 0000000..68e0b6d --- /dev/null +++ b/test/option-k.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-k.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-k') + +test.fail_test(test.stderr() != + "Warning: the -k option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--keep-going') + +test.fail_test(test.stderr() != + "Warning: the --keep-going option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-l.py b/test/option-l.py new file mode 100644 index 0000000..ca8051c --- /dev/null +++ b/test/option-l.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +__revision__ = "test/option-l.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-l 1') + +test.fail_test(test.stderr() != + "Warning: the -l option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--load-average=1') + +test.fail_test(test.stderr() != + "Warning: the --load-average option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--max-load=1') + +test.fail_test(test.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 new file mode 100644 index 0000000..d881715 --- /dev/null +++ b/test/option-m.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option-m.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-m') + +test.fail_test(test.stderr() != + "Warning: ignoring -m option\n") + +test.pass_test() + diff --git a/test/option-n.py b/test/option-n.py new file mode 100644 index 0000000..12bacd8 --- /dev/null +++ b/test/option-n.py @@ -0,0 +1,41 @@ +#!/usr/bin/env python + +__revision__ = "test/option-n.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-n') + +test.fail_test(test.stderr() != + "Warning: the -n option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--no-exec') + +test.fail_test(test.stderr() != + "Warning: the --no-exec option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--just-print') + +test.fail_test(test.stderr() != + "Warning: the --just-print option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--dry-run') + +test.fail_test(test.stderr() != + "Warning: the --dry-run option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--recon') + +test.fail_test(test.stderr() != + "Warning: the --recon option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-o.py b/test/option-o.py new file mode 100644 index 0000000..f095033 --- /dev/null +++ b/test/option-o.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +__revision__ = "test/option-o.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-o foo') + +test.fail_test(test.stderr() != + "Warning: the -o option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--old-file=foo') + +test.fail_test(test.stderr() != + "Warning: the --old-file option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--assume-old=foo') + +test.fail_test(test.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 new file mode 100644 index 0000000..cb3e05c --- /dev/null +++ b/test/option-p.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option-p.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-p') + +test.fail_test(test.stderr() != + "Warning: the -p option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-q.py b/test/option-q.py new file mode 100644 index 0000000..703b7cb --- /dev/null +++ b/test/option-q.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-q.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-q') + +test.fail_test(test.stderr() != + "Warning: the -q option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--question') + +test.fail_test(test.stderr() != + "Warning: the --question option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-r.py b/test/option-r.py new file mode 100644 index 0000000..d68f429 --- /dev/null +++ b/test/option-r.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-r.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-r') + +test.fail_test(test.stderr() != + "Warning: the -r option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--no-builtin-rules') + +test.fail_test(test.stderr() != + "Warning: the --no-builtin-rules option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-s.py b/test/option-s.py new file mode 100644 index 0000000..9f5e20b --- /dev/null +++ b/test/option-s.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +__revision__ = "test/option-s.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-s') + +test.fail_test(test.stderr() != + "Warning: the -s option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--silent') + +test.fail_test(test.stderr() != + "Warning: the --silent option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--quiet') + +test.fail_test(test.stderr() != + "Warning: the --quiet option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-t.py b/test/option-t.py new file mode 100644 index 0000000..42c6602 --- /dev/null +++ b/test/option-t.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-t.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-t') + +test.fail_test(test.stderr() != + "Warning: ignoring -t option\n") + +test.run(chdir = '.', arguments = '--touch') + +test.fail_test(test.stderr() != + "Warning: ignoring --touch option\n") + +test.pass_test() + diff --git a/test/option-u.py b/test/option-u.py new file mode 100644 index 0000000..8574332 --- /dev/null +++ b/test/option-u.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +__revision__ = "test/option-u.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-u') + +test.fail_test(test.stderr() != + "Warning: the -u option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-v.py b/test/option-v.py new file mode 100644 index 0000000..6e7ca07 --- /dev/null +++ b/test/option-v.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-v.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-v') + +test.fail_test(test.stderr() != + "Warning: the -v option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--version') + +test.fail_test(test.stderr() != + "Warning: the --version option is not yet implemented\n") + +test.pass_test() + diff --git a/test/option-w.py b/test/option-w.py new file mode 100644 index 0000000..a9c466f --- /dev/null +++ b/test/option-w.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__revision__ = "test/option-w.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-w') + +test.fail_test(test.stderr() != + "Warning: the -w option is not yet implemented\n") + +test.run(chdir = '.', arguments = '--print-directory') + +test.fail_test(test.stderr() != + "Warning: the --print-directory option is not yet implemented\n") + +test.pass_test() + |