Add suricata unittests to 'make check'

This patch adds a run of suricata's unittests to 'make check'
remotes/origin/master-1.1.x
Eric Leblond 15 years ago committed by Victor Julien
parent 7c841e1d7c
commit 0044bb221b

@ -666,6 +666,8 @@ AC_CHECK_HEADER(pcap.h,,[AC_ERROR(pcap.h not found ...)])
CFLAGS="${CFLAGS} -DUNITTESTS"
])
AM_CONDITIONAL([BUILD_UNITTESTS], [test "x$enable_unittests" = "xyes"])
# enable native timeval for unified alert output
AC_ARG_ENABLE(unified-native-timeval,
AS_HELP_STRING([--enable-unified-native-timeval], [Use native timeval for unified outputs]),,[enable_unified_native_timeval=no])

@ -253,3 +253,7 @@ endif
#suricata_CFLAGS = -Wall -fno-strict-aliasing
if BUILD_UNITTESTS
check:
$(top_builddir)/src/suricata -u -c $(top_srcdir)/suricata.yaml
endif

Loading…
Cancel
Save