Commit graph

60 commits

Author SHA1 Message Date
Chris Beck
2c486ed699 add tests of the [move] skip_sighted_option
This is partially a follow up of previous commit
403af25e9d
2014-05-16 19:35:06 -04:00
Chris Beck
94fdab4389 add sighted events unit tests 2014-05-16 18:09:52 -04:00
Chris Beck
89f67d1a5d add fixed_lua_random_replay test 2014-05-13 21:27:17 -04:00
Chris Beck
07241761f8 fixup wml_test_schedule
the break_replay test now successfully fails.
2014-05-13 21:04:19 -04:00
Chris Beck
92bbf8c02c add "break replay with lua random" test 2014-05-13 20:58:42 -04:00
Chris Beck
c52e5ed410 add sanity checks for unit test mechanism
also, reorganize the test schedule file
2014-05-11 01:57:49 -04:00
Chris Beck
e3d47b5f02 rename wml unit tests
tests should have helpful names and not numbers
2014-05-11 01:38:09 -04:00
Chris Beck
5b87baf1e4 cleanup wml test script
Only start using --validcache with wesnoth after at least one test
has passed.

Use --kill-after flag of unix timeout, so that if TERM fails to
stop wesnoth, a KILL will be issued.

Fixup comments.
2014-05-10 16:30:02 -04:00
Chris Beck
07a1654227 add unix timeout option to wml test script, enable empty_test
Adds an option to the new wml test script, to use the unix
timeout command instead of wesnoth's built-in one. This is because
the built-in one is very slightly unreliable... there's a reason
killthread was deprecated in SDL unfortunately. Will leave it for
UMC but on travis will replace with unix timeout.

The unix timeout one seems consistent enough that I will enable
the empty_test timeout check for travis.

Also, adds a help listing to the wml test script.
2014-05-10 16:06:07 -04:00
Chris Beck
b56b34d2a1 add new wml tests script
Also, redirect some output from cout to cerr in the game...
this somewhat breaks the old script.

The old script is renamed .old

Travis points to the new script.
2014-05-10 14:34:02 -04:00