aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-04 20:51:30 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-04 20:51:30 -0700
commitd2652c708921fd38253d6e48f67f72d8da35e084 (patch)
tree3ea063343afa81a7b3b325478376284686f934be /tests/runner.py
parentbae4c91d0acf4fd70e0c17ad178b07d2eb6345d9 (diff)
parent9017c0a8dccf38f128c18ac0e99cda6cb5752c98 (diff)
Merge pull request #1006 from azmeuk/master
Basic GLFW support
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index b03148f6..23935656 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -11240,6 +11240,12 @@ elif 'browser' in str(sys.argv):
Popen([PYTHON, EMCC, '-O2', os.path.join(self.get_dir(), 'openal_playback.cpp'), '--preload-file', 'audio.wav', '-o', 'page.html']).communicate()
self.run_browser('page.html', '', '/report_result?1')
+ def test_glfw(self):
+ open(os.path.join(self.get_dir(), 'glfw.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'glfw.c')).read()))
+
+ Popen([PYTHON, EMCC, '-O2', os.path.join(self.get_dir(), 'glfw.c'), '-o', 'page.html']).communicate()
+ self.run_browser('page.html', '', '/report_result?1')
+
def test_worker(self):
# Test running in a web worker
output = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world_worker.cpp'), '-o', 'worker.js'], stdout=PIPE, stderr=PIPE).communicate()