aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-11 10:23:03 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-11 10:23:03 -0800
commit58f694a190e414af9f811a72952e0ba3f7d94b83 (patch)
tree81c142917d824abeccfbe2654954acb58a582ac6 /tests/runner.py
parent994e01663b94c16a681a71255d8a1f87f1a23973 (diff)
emcc: --version
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index cdb2309b..34f76e70 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4868,7 +4868,15 @@ TT = %s
class other(RunnerCore):
def test_emcc(self):
- pass
+ for compiler in [EMCC, EMXX]:
+ # --version
+ output = Popen([compiler, '--version'], stdout=PIPE, stderr=PIPE).communicate(input)[0]
+ self.assertContained('''emcc (Emscripten GCC-like replacement) 2.0
+Copyright (C) 2011 the Emscripten authors.
+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)
+
# TODO: make sure all of these match gcc
# TODO: when this is done, more test runner to test these (i.e., test all -Ox thoroughly)
# -- options: check these, warn about errors. valid gcc ones are help, version. Ours should be -- too, not -.