]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: only test if we have `check` installed
authorVincent Bernat <bernat@luffy.cx>
Sun, 13 Oct 2013 10:19:01 +0000 (12:19 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sun, 13 Oct 2013 10:19:01 +0000 (12:19 +0200)
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.

tests/Makefile.am

index 483df4c5a566ba358ef4505fe51d68e731823909..2abb67b8c573c2ad5a8eb36dad34a25b7a810e97 100644 (file)
@@ -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@