From 5b423064d5bfe413a49ff370c3f7f908af510533 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 11 Sep 2009 15:32:19 -0400 Subject: Add 'make tests' target --- Makefile.am | 5 +++++ collection/Makefile.am | 2 ++ dhash/Makefile.am | 2 ++ elapi/Makefile.am | 5 +++++ elapi/elapi_test/Makefile.am | 2 ++ ini/Makefile.am | 2 ++ path_utils/Makefile.am | 1 + trace/Makefile.am | 2 ++ 8 files changed, 21 insertions(+) diff --git a/Makefile.am b/Makefile.am index 445a843..ac75900 100644 --- a/Makefile.am +++ b/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/collection/Makefile.am b/collection/Makefile.am index 292a9a8..6102f65 100644 --- a/collection/Makefile.am +++ b/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/dhash/Makefile.am b/dhash/Makefile.am index b8d5ce6..71bc144 100644 --- a/dhash/Makefile.am +++ b/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/elapi/Makefile.am b/elapi/Makefile.am index c589ec5..7e487a2 100644 --- a/elapi/Makefile.am +++ b/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/elapi/elapi_test/Makefile.am b/elapi/elapi_test/Makefile.am index f2368f1..1a0c6c9 100644 --- a/elapi/elapi_test/Makefile.am +++ b/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/ini/Makefile.am b/ini/Makefile.am index 39ab40b..2679be3 100644 --- a/ini/Makefile.am +++ b/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/path_utils/Makefile.am b/path_utils/Makefile.am index fdda791..3961a06 100644 --- a/path_utils/Makefile.am +++ b/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/trace/Makefile.am b/trace/Makefile.am index f0cefd7..b097ff2 100644 --- a/trace/Makefile.am +++ b/trace/Makefile.am @@ -1 +1,3 @@ dist_noinst_HEADERS = trace.h + +tests: all -- cgit