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.
pull/472/head
Eric Leblond 12 years ago
parent 4424f5a231
commit 6d9a66d522

1
.gitignore vendored

@ -35,3 +35,4 @@ src/TAGS
src/suricata src/suricata
stamp-h1 stamp-h1
src/build-info.h src/build-info.h
qa/log/

@ -410,7 +410,9 @@ AM_CFLAGS = -DLOCAL_STATE_DIR=\"$(localstatedir)\"
if BUILD_UNITTESTS if BUILD_UNITTESTS
check-am: 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 endif
distclean-local: distclean-local:

Loading…
Cancel
Save