Skip to content

Commit

Permalink
add wml_unit_tests test aggregator script
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cbeck88 committed Apr 8, 2014
1 parent 634ee2d commit 25e4e71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -72,3 +72,4 @@ projectfiles/VC1*
projectfiles/VC201*
*Neuer Ordner*
Thumbs.db
error.log
7 changes: 7 additions & 0 deletions wml_unit_tests
@@ -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

0 comments on commit 25e4e71

Please sign in to comment.