From: Vincent Bernat Date: Sun, 13 Oct 2013 10:19:01 +0000 (+0200) Subject: tests: only test if we have `check` installed X-Git-Tag: 0.7.7~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2e68bff3ddaed09399fc2f9ad269bc20de32aaa;p=thirdparty%2Flldpd.git tests: only test if we have `check` installed There should have been a good reason to put `TESTS` outside the conditional but I don't remember it. It works by putting `TESTS` inside the conditional and avoid an odd error message when trying to execute tests without check installed. --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 483df4c5..2abb67b8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,8 +1,8 @@ AM_CFLAGS = -I $(top_srcdir)/include -TESTS = check_marshal check_lldp check_cdp check_sonmp check_edp check_fixedpoint if HAVE_CHECK +TESTS = check_marshal check_lldp check_cdp check_sonmp check_edp check_fixedpoint AM_CFLAGS += @CHECK_CFLAGS@ LDADD = $(top_builddir)/src/daemon/liblldpd.la @CHECK_LIBS@ @LIBEVENT_LDFLAGS@