Add support for running tests with xUnit.

Fixes #4950
This commit is contained in:
Gunnar Beutner 2013-10-25 08:39:12 +02:00
parent a4ec56c0f8
commit 8567404330
2 changed files with 9 additions and 1 deletions

View File

@ -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

2
test/run-tests.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec ./icinga2_test --log_format=XML --log_sink=results.xml --log_level=all --report_level=no