]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
unittest: make check use a qa/log dir for logging 472/head
authorEric Leblond <eric@regit.org>
Tue, 30 Jul 2013 08:44:29 +0000 (10:44 +0200)
committerEric Leblond <eric@regit.org>
Tue, 30 Jul 2013 09:40:54 +0000 (11:40 +0200)
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.

.gitignore
src/Makefile.am

index 855a071235f8da1b027518923e3a234d3df6f653..b7fb466ca4bf5503792bbd8c98b1146b5d527bc9 100644 (file)
@@ -35,3 +35,4 @@ src/TAGS
 src/suricata
 stamp-h1
 src/build-info.h
+qa/log/
index fc9ce7c84dd2d62d04c43f9b6bf54680bbc6f4e9..22e8f94c35d5d647430ec7e84c6051470801fb5c 100644 (file)
@@ -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: