Commit b0a3bce5 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] make test libs dependencies of check rule

We need to make util libraries in tests dependencies of the check target
to ensure that they are only built during `make check`. Otherwise
automake will build them during make, and before excit, breaking our
global LDFLAGS for tests will break since excit is not built yet.
parent 08b4ff8f
Pipeline #11507 passed with stages
in 6 minutes
......@@ -37,7 +37,6 @@ if HAVE_CUDA
AREA_TESTS += area/test_cuda
endif
noinst_LTLIBRARIES = liblayout_test.la libreplicaset_test.la
liblayout_test_la_SOURCES = \
layout/test_layout.h \
layout/coords.c \
......@@ -88,6 +87,7 @@ UNIT_TESTS = $(UTILS_TESTS) \
# all tests
TST_PROGS = $(UNIT_TESTS)
check_PROGRAMS = $(TST_PROGS)
check_LTLIBRARIES = liblayout_test.la libreplicaset_test.la
TESTS = $(TST_PROGS)
# phony target to allow us to compile the check programs without running the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment