add wml_unit_tests test aggregator script

This bash script runs a sequence of WML unit test scenarios.
If all pass the result is 0.
If any fails, the result is 1, and the std::cerr stored in "error.log".
We also add error.log to the .gitignore list.

It shows how --timeout and --validcache may be used in such a script
This commit is contained in:
Chris Beck 2014-03-30 01:03:30 -04:00
parent 634ee2d1d8
commit 25e4e71e87
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -72,3 +72,4 @@ projectfiles/VC1*
projectfiles/VC201*
*Neuer Ordner*
Thumbs.db
error.log

7
wml_unit_tests Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -o pipefail
./wesnoth -u unit_test_1 2> error.log
./wesnoth --validcache -u unit_test_2 2> error.log
./wesnoth --validcache -u unit_test_3 2> error.log
rm error.log