Merge pull request #157 from sureshsundriyal/wip

Fix the tests when not compiled with bz2 support.
pull/158/head
Tim Stack 10 years ago
commit fdcb75d198

@ -249,6 +249,7 @@ AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BZIP2_CMD = @BZIP2_CMD@
BZIP2_SUPPORT = @BZIP2_SUPPORT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@

@ -13,6 +13,10 @@ export top_builddir
test_dir="@abssrcdir@/test"
export test_dir
# Let the tests know whether bzip is supported or not.
BZIP2_SUPPORT="@BZIP2_SUPPORT@"
export BZIP2_SUPPORT
BZIP2_CMD="@BZIP2_CMD@"
export BZIP2_CMD

6
configure vendored

@ -640,6 +640,7 @@ PCRE_LIBS
CURSES_LIB
HAVE_LOCAL_YAJL
jemalloch
BZIP2_SUPPORT
EGREP
GREP
CPP
@ -5965,9 +5966,12 @@ $as_echo "$ac_cv_search_BZ2_bzopen" >&6; }
ac_res=$ac_cv_search_BZ2_bzopen
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
BZIP2_SUPPORT=1
else
BZIP2_SUPPORT=0
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
$as_echo_n "checking for library containing dlopen... " >&6; }
if ${ac_cv_search_dlopen+:} false; then :

@ -83,7 +83,10 @@ AC_STRUCT_TIMEZONE
AC_SEARCH_LIBS(openpty, util)
AC_SEARCH_LIBS(gzseek, z, [], [AC_MSG_ERROR([libz required to build])])
AC_SEARCH_LIBS(BZ2_bzopen, bz2)
AC_SEARCH_LIBS(BZ2_bzopen, bz2,
AS_VAR_SET(BZIP2_SUPPORT, 1),
AS_VAR_SET(BZIP2_SUPPORT, 0))
AC_SUBST(BZIP2_SUPPORT)
AC_SEARCH_LIBS(dlopen, dl)
AC_SEARCH_LIBS(backtrace, execinfo)

@ -336,6 +336,7 @@ AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BZIP2_CMD = @BZIP2_CMD@
BZIP2_SUPPORT = @BZIP2_SUPPORT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@

@ -545,6 +545,7 @@ AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BZIP2_CMD = @BZIP2_CMD@
BZIP2_SUPPORT = @BZIP2_SUPPORT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@

@ -112,6 +112,7 @@ int main(int argc, char *argv[])
}
else {
//printf("%s %s\n", lf.get_format()->get_name().c_str(), expected_format.c_str());
assert(lf.get_format() != NULL);
assert(lf.get_format()->get_name() == expected_format);
}
if (!lf.is_compressed()) {

@ -52,7 +52,7 @@ Dec 03 09:23:38 2006 -- 000
Jan 03 09:47:02 2007 -- 000
EOF
if test x"$BZIP2_CMD" != x""; then
if test "$BZIP2_SUPPORT" -eq 1 -a test x"$BZIP2_CMD" != x""; then
$BZIP2_CMD -z -c "${srcdir}/logfile_syslog.1" > logfile_syslog.1.bz2
touch -t 200711030923 logfile_syslog.1.bz2

Loading…
Cancel
Save