diff options
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index d0360e00..5714511e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -2449,10 +2449,15 @@ m_divisor is 1091269979 #include <stdio.h> #include "emscripten.h" + extern "C" { + void EMSCRIPTEN_KEEPALIVE save_me_aimee() { printf("mann\n"); } + } + int main() { // EMSCRIPTEN_COMMENT("hello from the source"); emscripten_run_script("Module.print('hello world' + '!')"); printf("*%d*\n", emscripten_run_script_int("5*20")); + emscripten_run_script("_save_me_aimee()"); return 0; } ''' @@ -2463,7 +2468,7 @@ def process(filename): # TODO: restore this (see comment in emscripten.h) assert '// hello from the source' in src ''' - self.do_run(src, 'hello world!\n*100*', post_build=check) + self.do_run(src, 'hello world!\n*100*\nmann\n', post_build=check) def test_inlinejs(self): src = r''' @@ -7732,6 +7737,9 @@ elif 'browser' in str(sys.argv): def test_cubegeom_normal_dap_far_glda(self): # use glDrawArrays self.btest('cubegeom_normal_dap_far_glda.c', expected='-218745386') + def test_cubegeom_normal_dap_far_glda_quad(self): # with quad + self.btest('cubegeom_normal_dap_far_glda_quad.c', expected='1757386625') + def test_cubegeom_mt(self): self.btest('cubegeom_mt.c', expected='-457159152') # multitexture @@ -7741,6 +7749,9 @@ elif 'browser' in str(sys.argv): def test_cubegeom_texturematrix(self): self.btest('cubegeom_texturematrix.c', expected='1297500583') + def test_cubegeom_fog(self): + self.btest('cubegeom_fog.c', expected='1617140399') + def test_cube_explosion(self): self.btest('cube_explosion.c', expected='667220544') |