Run a specific test

12 views
Skip to first unread message

Warren Seine

unread,
Oct 8, 2014, 4:29:34 PM10/8/14
to emscripte...@googlegroups.com
Hi,

I need to run the sdl_audio.c test. The documentation specifies that I should call "python tests/runner.py sdl_audio". Unfortunately, the runner doesn't find the test.

What's the correct way to run a specific test (sdl_audio.c in particular)?

Regards,
Warren.

Alon Zakai

unread,
Oct 8, 2014, 4:35:42 PM10/8/14
to emscripte...@googlegroups.com
You need to add `test_` before the test name, and specify which type of test it is, in this case you need

python tests/runner.py browser.test_sdl_audio

(because that test is inside `tests/test_browser.py`)

Where do we have that wrong in the docs, so I can fix it?

- Alon



--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Warren Seine

unread,
Oct 8, 2014, 5:30:01 PM10/8/14
to emscripte...@googlegroups.com
Thanks. I got confused by the documention for "Running a specific test" in the Emscripten Test Suite page [1].

For example, you would run test named test_hello_world as shown:
python tests/runner.py test_hello_world

[1] http://kripken.github.io/emscripten-site/docs/getting_started/test-suite.html

Alon Zakai

unread,
Oct 8, 2014, 5:49:50 PM10/8/14
to emscripte...@googlegroups.com
Ok, thanks, I see an example later down of browser.test_*, i'll mention it earlier up so this is clearer.

- Alon



Warren Seine

unread,
Oct 9, 2014, 3:32:30 AM10/9/14
to emscripte...@googlegroups.com
Actually, the right command was:

$ python tests/runner.py interactive.test_sdl_audio

Thanks again. 

--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/mN05pqnsYVU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Warren Seine


Founder and CTO of Aerys | aerys.in

Alon Zakai

unread,
Oct 9, 2014, 4:08:35 PM10/9/14
to emscripte...@googlegroups.com
Thanks, fixed.

- Alon

Reply all
Reply to author
Forward
0 new messages