SDL-emscripten icon indicating copy to clipboard operation
SDL-emscripten copied to clipboard

Develop a single script that automaticall builds and runs through all tests, both in browser and native.

Open juj opened this issue 10 years ago • 2 comments

To be able to integrate the SDL2 tests to Emscripten build system, we need to develop a script that, similar to how Emscripten test runner works, goes through all tests in the SDL2 repository, builds and runs each of them, and reports the result as a process exit code, e.g. 0 - all passed, and N > 0 meaning that N tests failed.

This allows integrating SDL2 test suite to http://clb.demon.fi:8112/waterfall later on.

juj avatar Jul 09 '14 15:07 juj

As a reference, here is the current procedure: https://github.com/gsathya/SDL-emscripten/wiki/Running-the-tests , which contains manual build command lines. After we have an automated test script, we can replace the documentation in that link to instruct to run the automated test script instead.

juj avatar Jul 09 '14 16:07 juj

Given that upstream SDL2 doesn't have an automation system in place (?), what we could do is develop a script tests/run_tests.py, which runs through all the commands needed to build all the tests and returns a process exit code of the results. We should make the .py script take as an input whether to build natively, or whether to build for emscripten, and for emscripten, utilize emrun to drive through the execution of the build outputs, see https://github.com/kripken/emscripten/wiki/Running-html-files-with-emrun

juj avatar Jul 09 '14 18:07 juj