aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-12 00:07:56 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-12 00:07:56 +0200
commit9d0ef0268f7903fd91ef11ed055a7714a70c7c29 (patch)
treece2ad88f579dec956ab50d879fd8a64fc951d824
parent20bbc715578bff5f5b2433334a39750f083d0305 (diff)
downloadblogc-9d0ef0268f7903fd91ef11ed055a7714a70c7c29.tar.gz
blogc-9d0ef0268f7903fd91ef11ed055a7714a70c7c29.tar.bz2
blogc-9d0ef0268f7903fd91ef11ed055a7714a70c7c29.zip
build: fix test building
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
2 files changed, 5 insertions, 1 deletions
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"])