aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-08-30 16:42:34 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-08-30 16:42:34 -0700
commit94a0cb1ccd753d834db0d82ffaf32a13712641d1 (patch)
tree570d18637c1aa9a2aeb85eeb327d7676804d99a6 /tests
parent2667b5806edcab3043ca3f58f6408158ff6dfd47 (diff)
--clear-cache option
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index a11928e1..54ae5a49 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8803,6 +8803,7 @@ elif 'sanity' in str(sys.argv):
def test_emcc_caching(self):
INCLUDING_MESSAGE = 'emcc: including X'
BUILDING_MESSAGE = 'emcc: building X for cache'
+ ERASING_MESSAGE = 'emcc: clearing cache'
EMCC_CACHE = Cache.dirname
@@ -8850,6 +8851,12 @@ elif 'sanity' in str(sys.argv):
if emcc_debug:
os.environ['EMCC_DEBUG'] = emcc_debug
+ # Manual cache clearing
+ assert os.path.exists(EMCC_CACHE)
+ output = self.do([EMCC, '--clear-cache'])
+ assert ERASING_MESSAGE in output
+ assert not os.path.exists(EMCC_CACHE)
+
else:
raise Exception('Test runner is confused: ' + str(sys.argv))