summaryrefslogtreecommitdiff
path: root/test/option-v.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-10 18:48:55 +0000
committerSteven Knight <knight@baldmt.com>2001-09-10 18:48:55 +0000
commit528c2bf71dd1d45f158f15b015a382dbac7a34df (patch)
treecc5b14cb56324b56ef7d45fb4a4998820e4861ea /test/option-v.py
parent9010e91ac2831db0ff7f58d209c8f54a7f807afa (diff)
downloadscons-528c2bf71dd1d45f158f15b015a382dbac7a34df.tar.gz
Fill in the -v option.
Diffstat (limited to 'test/option-v.py')
-rw-r--r--test/option-v.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/option-v.py b/test/option-v.py
index 6e7ca07e..02b8f2c8 100644
--- a/test/option-v.py
+++ b/test/option-v.py
@@ -14,13 +14,17 @@ test.write('SConstruct', "")
test.run(chdir = '.', arguments = '-v')
-test.fail_test(test.stderr() !=
- "Warning: the -v option is not yet implemented\n")
+expect = r"""SCons version \S+, by Steven Knight et al.
+Copyright 2001 Steven Knight
+"""
+
+test.fail_test(not test.match_re(test.stdout(), expect))
+test.fail_test(test.stderr() != "")
test.run(chdir = '.', arguments = '--version')
-test.fail_test(test.stderr() !=
- "Warning: the --version option is not yet implemented\n")
+test.fail_test(not test.match_re(test.stdout(), expect))
+test.fail_test(test.stderr() != "")
test.pass_test()