aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-19 14:53:22 +0100
committerAlon Zakai <alonzakai@gmail.com>2012-11-21 20:47:01 +0100
commitc00cd96a4b4b3d367add73b307af8e4fbbcd3e02 (patch)
tree726f62425ed7b70c69dff466ad0ae2e77347d6b7
parente4aa21f08ab91749ec2e7b3a22a3200bae6c8512 (diff)
more jcache testing
-rwxr-xr-xtests/runner.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 7a26e6a3..5bb53323 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -10449,12 +10449,19 @@ fi
os.environ['EMCC_DEBUG'] = '1'
src = None
- for args, expect_save, expect_load in [([], False, False),
- (['--jcache'], True, False),
- (['--jcache'], False, True),
- ([], False, False)]:
- print args, expect_save, expect_load
- out, err = Popen(['python', EMCC, path_from_root('tests', 'hello_world_loop.cpp')] + args, stdout=PIPE, stderr=PIPE).communicate()
+ for args, input_file, expect_save, expect_load in [
+ ([], 'hello_world_loop.cpp', False, False),
+ (['--jcache'], 'hello_world_loop.cpp', True, False),
+ (['--jcache'], 'hello_world_loop.cpp', False, True),
+ ([], 'hello_world_loop.cpp', False, False),
+ ([], 'hello_world.cpp', False, False), # switch input, cannot use cached stuff
+ (['--jcache'], 'hello_world.cpp', True, False),
+ (['--jcache'], 'hello_world.cpp', False, True),
+ ([], 'hello_world.cpp', False, False),
+ (['--jcache'], 'hello_world_loop.cpp', False, True), # go back to old file, experience caching
+ ]:
+ print args, input_file, expect_save, expect_load
+ out, err = Popen(['python', EMCC, path_from_root('tests', input_file)] + args, stdout=PIPE, stderr=PIPE).communicate()
assert (PRE_SAVE_MSG in err) == expect_save, err
assert (PRE_LOAD_MSG in err) == expect_load, errr
curr = open('a.out.js').read()