6 Commits

Author SHA1 Message Date
Chris Beck
f08db9b3a4 better handling of error logs for wml unit test script
error logs get pooled in errors.log
This is necessary because we don't stop testing when we get an
error anymore.
2014-05-10 18:57:05 -04:00
Chris Beck
8acf5dbe2c wml test script can recieve list of tests as an argument
Also, fixup documentation.
2014-05-10 18:05:50 -04:00
Chris Beck
d560acb9f4 fixup cleanup wml test script
Also only use --validcache conservatively in the -u mode.

Further fixup some comments.

This fixes up commit 5b87baf1e46939205454b803ef7b2525d494432d
2014-05-10 16:37:02 -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