From 25e4e71e8795cd29395eba6a5e7287bcfdc06164 Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Sun, 30 Mar 2014 01:03:30 -0400 Subject: [PATCH] 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 --- .gitignore | 1 + wml_unit_tests | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 wml_unit_tests diff --git a/.gitignore b/.gitignore index 7ec2ad2d3ee9..56e8496be5ac 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,4 @@ projectfiles/VC1* projectfiles/VC201* *Neuer Ordner* Thumbs.db +error.log diff --git a/wml_unit_tests b/wml_unit_tests new file mode 100755 index 000000000000..e3f66d13fcfe --- /dev/null +++ b/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