aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 16:57:56 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 16:57:56 -0500
commit0ed56c82a3d1d6c86eb648a7062ee6a4fb92b4f9 (patch)
tree20a701b514c61e3aa3a5f02e5c8b8d09e264be1f /tests/runner.py
parent3668ca932450198e2f6947e8a369bd031c5be878 (diff)
Add a human assisted test for the OpenGL ES implementation
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index e6308496..997facd5 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5618,6 +5618,13 @@ f.close()
html_file.close()
run_browser('main.html', 'You should see that the worker was called, and said "hello from worker!"')
+ # test the OpenGL ES implementation
+ clear()
+ output = Popen([EMCC, path_from_root('tests', 'hello_world_gles.c'), '-o', 'something.html', '-DHAVE_BUILTIN_SINCOS'], stdout=PIPE, stderr=PIPE).communicate()
+ assert len(output[0]) == 0, output[0]
+ assert os.path.exists('something.html'), output
+ run_browser('something.html', 'You should see animating gears.')
+
def test_eliminator(self):
input = open(path_from_root('tools', 'eliminator', 'eliminator-test.js')).read()
expected = open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read()