From 8812296c864ad96ba0c9f238b21ca1e59f0f3e2a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 16 Oct 2019 11:57:23 +0300 Subject: [PATCH] unit: Make mesh tests conditional Mesh code can be disabled with use of --disable-mesh. --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am index e7bcd2366..84c9712c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -520,6 +520,7 @@ unit_test_midi_LDADD = src/libshared-glib.la \ $(GLIB_LIBS) $(ALSA_LIBS) endif +if MESH unit_tests += unit/test-mesh-crypto unit_test_mesh_crypto_CPPFLAGS = $(ell_cflags) unit_test_mesh_crypto_SOURCES = unit/test-mesh-crypto.c \ @@ -527,6 +528,7 @@ unit_test_mesh_crypto_SOURCES = unit/test-mesh-crypto.c \ $(ell_sources) unit_test_mesh_crypto_LDADD = src/libshared-ell.la \ $(ell_ldadd) +endif if MAINTAINER_MODE noinst_PROGRAMS += $(unit_tests) -- 2.47.3