aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-25 21:45:44 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-25 21:45:44 -0800
commit52e38c266a9fd5726533adc1cc73e201cf69bcd1 (patch)
tree69b9ba1c2b879acb86d3da006885e8ebb1842533
parent3e489d4ba4aa70907f0cffb54864814fb873208e (diff)
check sanity on emcc -v
-rwxr-xr-xemcc1
-rw-r--r--tests/test_sanity.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/emcc b/emcc
index 1125a639..91da32f3 100755
--- a/emcc
+++ b/emcc
@@ -918,6 +918,7 @@ try:
shared.set_logging()
logging.debug('invocation: ' + ' '.join(sys.argv))
shared.apply_configuration() # reset config to pick up change
+ shared.check_sanity(force=True)
newargs[i] = ''
elif newargs[i].startswith('--shell-file'):
check_bad_eq(newargs[i])
diff --git a/tests/test_sanity.py b/tests/test_sanity.py
index 25858a8b..741bb748 100644
--- a/tests/test_sanity.py
+++ b/tests/test_sanity.py
@@ -319,6 +319,9 @@ fi
output = self.check_working(EMCC)
self.assertNotContained(SANITY_MESSAGE, output)
+ # also with -v
+ output = self.check_working([EMCC, '-v', path_from_root('tests', 'hello_world.c')], SANITY_MESSAGE)
+
# Make sure the test runner didn't do anything to the setup
output = self.check_working(EMCC)
self.assertNotContained(SANITY_MESSAGE, output)