diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-27 20:40:06 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-27 20:40:06 -0500 |
commit | 06822b1ea412d62606bba0c6d3211a576a633c56 (patch) | |
tree | 40dc74a82c17912ce61be8e1c50ed1d526eb92c8 | |
parent | 8da0914d013d9c05d37332a4fd4b95bed016db94 (diff) |
add the rest of the gles2 emulation tests
-rwxr-xr-x | tests/runner.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/tests/runner.py b/tests/runner.py index 907031aa..955d94be 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10695,11 +10695,21 @@ elif 'browser' in str(sys.argv): if type(expected) is str: expected = [expected] self.run_browser('test.html', '.', ['/report_result?' + e for e in expected]) - def zzztest_glbook_emulation(self): - self.btest(os.path.join('glbook', 'Chapter_2', 'Hello_Triangle', 'Hello_Triangle_orig.c'), - reference=path_from_root('tests', 'glbook', 'CH02_HelloTriangle.png'), - args=['-I' + path_from_root('tests', 'glbook', 'Common'), - path_from_root('tests', 'glbook', 'Common', 'esUtil.c')]) + def zzztest_gles2_emulation(self): + for source, reference in [ + (os.path.join('glbook', 'Chapter_2', 'Hello_Triangle', 'Hello_Triangle_orig.c'), path_from_root('tests', 'glbook', 'CH02_HelloTriangle.png')), + (os.path.join('glbook', 'Chapter_8', 'Simple_VertexShader', 'Simple_VertexShader_orig.c'), path_from_root('tests', 'glbook', 'CH08_SimpleVertexShader.png')), + (os.path.join('glbook', 'Chapter_9', 'TextureWrap', 'TextureWrap_orig.c'), path_from_root('tests', 'glbook', 'CH09_TextureWrap')), + (os.path.join('glbook', 'Chapter_9', 'Simple_TextureCubemap', 'Simple_TextureCubemap_orig.c'), path_from_root('tests', 'glbook', 'CH09_TextureCubemap.png')), + (os.path.join('glbook', 'Chapter_9', 'Simple_Texture2D', 'Simple_Texture2D_orig.c'), path_from_root('tests', 'glbook', 'CH09_SimpleTexture2D.png')), + (os.path.join('glbook', 'Chapter_10', 'MultiTexture', 'MultiTexture_orig.c'), path_from_root('tests', 'glbook', 'CH10_Multitexture.png')), + (os.path.join('glbook', 'Chapter_13', 'ParticleSystem', 'ParticleSystem_orig.c'), path_from_root('tests', 'glbook', 'CH13_ParticleSystem.png')), + ]: + print source + self.btest(source, + reference=reference, + args=['-I' + path_from_root('tests', 'glbook', 'Common'), + path_from_root('tests', 'glbook', 'Common', 'esUtil.c')]) def test_emscripten_api(self): self.btest('emscripten_api_browser.cpp', '1', args=['-s', '''EXPORTED_FUNCTIONS=['_main', '_third']''']) |