From: Eric Leblond Date: Tue, 30 Jul 2013 08:44:29 +0000 (+0200) Subject: unittest: make check use a qa/log dir for logging X-Git-Tag: suricata-2.0beta2~454 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d9a66d522a48e2c34aad637a72b3bfabd31b003;p=thirdparty%2Fsuricata.git unittest: make check use a qa/log dir for logging This patch is using the qa/log directory to store the output of the check. In case of success, the directory is deleted. In case of failure, the directory remains in place. This should fixes #910. --- diff --git a/.gitignore b/.gitignore index 855a071235..b7fb466ca4 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ src/TAGS src/suricata stamp-h1 src/build-info.h +qa/log/ diff --git a/src/Makefile.am b/src/Makefile.am index fc9ce7c84d..22e8f94c35 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -410,7 +410,9 @@ AM_CFLAGS = -DLOCAL_STATE_DIR=\"$(localstatedir)\" if BUILD_UNITTESTS check-am: - $(top_builddir)/src/suricata -u + -mkdir $(top_srcdir)/qa/log/ + $(top_builddir)/src/suricata -u -l $(top_srcdir)/qa/log/ + -rm -rf $(top_srcdir)/qa/log endif distclean-local: