From 8567404330d901b66051cd902cd290d5b5a4c882 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 25 Oct 2013 08:39:12 +0200 Subject: [PATCH] Add support for running tests with xUnit. Fixes #4950 --- test/Makefile.am | 8 +++++++- test/run-tests.sh | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 test/run-tests.sh diff --git a/test/Makefile.am b/test/Makefile.am index f1e5d87cc..bb358b536 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,7 +1,13 @@ ## Process this file with automake to produce Makefile.in TESTS = \ - icinga2_test + run-tests.sh + +EXTRA_DIST = \ + run-tests.sh + +CLEANFILES = \ + results.xml check_PROGRAMS = \ icinga2_test diff --git a/test/run-tests.sh b/test/run-tests.sh new file mode 100755 index 000000000..c9379c24d --- /dev/null +++ b/test/run-tests.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./icinga2_test --log_format=XML --log_sink=results.xml --log_level=all --report_level=no