aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-18 11:47:41 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-18 11:47:41 -0700
commitd4cfd7a6582ddef1a4e5cfe85275c0f182f067a1 (patch)
treed6bfa4d8db9e01d1750f8b4ca00339b331c2ad4e /tests/runner.py
parentbfb5eda13f33754485a0d88ff64c85e8e4fd4597 (diff)
support emcc -v with no further arguments
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 15a851c6..c17b1a0a 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6305,6 +6305,10 @@ This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
''', output[0].replace('\r', ''), output[1].replace('\r', ''))
+ # -v, without input files
+ output = Popen(['python', compiler, '-v'], stdout=PIPE, stderr=PIPE).communicate()
+ self.assertContained('''clang version''', output[1].replace('\r', ''), output[1].replace('\r', ''))
+
# --help
output = Popen(['python', compiler, '--help'], stdout=PIPE, stderr=PIPE).communicate()
self.assertContained('''%s [options] file...