From 9d0ef0268f7903fd91ef11ed055a7714a70c7c29 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 12 Oct 2016 00:07:56 +0200 Subject: build: fix test building --- Makefile.am | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e5d9469..212bcfe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -319,6 +319,8 @@ endif ## Build rules: tests +if BUILD_TESTS + if BUILD_GIT_RECEIVER dist_check_SCRIPTS += \ tests/blogc-git-receiver/check_post_receive.sh \ @@ -648,6 +650,8 @@ endif endif +endif + TESTS = \ $(check_PROGRAMS) \ $(dist_check_SCRIPTS) \ diff --git a/configure.ac b/configure.ac index 8d29465..e5b9ac9 100644 --- a/configure.ac +++ b/configure.ac @@ -170,7 +170,7 @@ AS_IF([test "x$have_tests" = "xyes"], [ ]) ]) ]) -AM_CONDITIONAL([BUILD_TESTS], [test "x$enable_tests" = "xyes"]) +AM_CONDITIONAL([BUILD_TESTS], [test "x$have_tests" = "xyes"]) AM_CONDITIONAL([USE_CMOCKA], [test "x$have_cmocka" = "xyes"]) AM_CONDITIONAL([USE_BGR_DEPS], [test "x$have_bgr_deps" = "xyes"]) -- cgit v1.2.3-18-g5258