summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Makefile.am5
-rw-r--r--common/collection/Makefile.am2
-rw-r--r--common/dhash/Makefile.am2
-rw-r--r--common/elapi/Makefile.am5
-rw-r--r--common/elapi/elapi_test/Makefile.am2
-rw-r--r--common/ini/Makefile.am2
-rw-r--r--common/path_utils/Makefile.am1
-rw-r--r--common/trace/Makefile.am2
8 files changed, 21 insertions, 0 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
index 445a84356..ac759001e 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -16,3 +16,8 @@ libsssd_util_la_CFLAGS = $(AM_CFLAGS) \
-I ./elapi \
-I ./trace
endif
+
+tests: all
+ for subdir in $(SUBDIRS); do \
+ $(MAKE) -C $$subdir $@; \
+ done
diff --git a/common/collection/Makefile.am b/common/collection/Makefile.am
index 292a9a80c..6102f65d2 100644
--- a/common/collection/Makefile.am
+++ b/common/collection/Makefile.am
@@ -43,3 +43,5 @@ collection_queue_ut_SOURCES = collection_queue_ut.c
collection_queue_ut_LDADD = libcollection.la
TESTS = collection_ut collection_stack_ut collection_queue_ut
+
+tests: all $(check_PROGRAMS)
diff --git a/common/dhash/Makefile.am b/common/dhash/Makefile.am
index b8d5ce6ff..71bc144f8 100644
--- a/common/dhash/Makefile.am
+++ b/common/dhash/Makefile.am
@@ -21,3 +21,5 @@ dhash_example_LDADD = dhash.o
examplesdir = $(docdir)/examples
dist_noinst_DATA += dhash_test.c dhash_example.c
+
+tests: all $(check_PROGRAMS)
diff --git a/common/elapi/Makefile.am b/common/elapi/Makefile.am
index c589ec59b..7e487a2d6 100644
--- a/common/elapi/Makefile.am
+++ b/common/elapi/Makefile.am
@@ -58,3 +58,8 @@ libelapi_la_SOURCES = \
elapi.h
libelapi_la_LIBADD = libprovider.la libelapibasic.la
+
+tests: all
+ for subdir in $(SUBDIRS); do \
+ $(MAKE) -C $$subdir $@; \
+ done
diff --git a/common/elapi/elapi_test/Makefile.am b/common/elapi/elapi_test/Makefile.am
index f2368f129..1a0c6c93b 100644
--- a/common/elapi/elapi_test/Makefile.am
+++ b/common/elapi/elapi_test/Makefile.am
@@ -47,3 +47,5 @@ elapi_ut_SOURCES = elapi_ut.c
elapi_ut_LDADD = libelapi_test.la ../../ini/libini_config.la ../../collection/libcollection.la -ldl
TESTS = elapi_ut
+
+tests: all $(check_PROGRAMS)
diff --git a/common/ini/Makefile.am b/common/ini/Makefile.am
index 39ab40b33..2679be373 100644
--- a/common/ini/Makefile.am
+++ b/common/ini/Makefile.am
@@ -34,3 +34,5 @@ ini_config_ut_SOURCES = ini_config_ut.c
ini_config_ut_LDADD = libini_config.la ../collection/libcollection.la
TESTS = ini_config_ut
+
+tests: all $(check_PROGRAMS)
diff --git a/common/path_utils/Makefile.am b/common/path_utils/Makefile.am
index fdda791ca..3961a06d1 100644
--- a/common/path_utils/Makefile.am
+++ b/common/path_utils/Makefile.am
@@ -15,3 +15,4 @@ libpath_utils_la_SOURCES = \
path_utils.c \
path_utils.h
+tests: all $(check_PROGRAMS)
diff --git a/common/trace/Makefile.am b/common/trace/Makefile.am
index f0cefd739..b097ff203 100644
--- a/common/trace/Makefile.am
+++ b/common/trace/Makefile.am
@@ -1 +1,3 @@
dist_noinst_HEADERS = trace.h
+
+tests: all