aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-10 21:58:55 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-10 21:59:02 +0100
commitd04bf489c8bbe190a0648f58682260d5b5cef613 (patch)
tree25e23cc1fd0bceb0a564023d42f5597d13d84ccc /Makefile.am
parent74dec7c69ae961f98e0a91da9fc3f6214183467a (diff)
downloadblogc-d04bf489c8bbe190a0648f58682260d5b5cef613.tar.gz
blogc-d04bf489c8bbe190a0648f58682260d5b5cef613.tar.bz2
blogc-d04bf489c8bbe190a0648f58682260d5b5cef613.zip
blogc: rusage: added tests, fixed minor issue
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index c75fc30..f2a8ffa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -597,6 +597,34 @@ tests_common_check_stdin_LDADD = \
$(CMOCKA_LIBS) \
libblogc_common.la \
$(NULL)
+
+if HAVE_SYS_RESOURCE_H
+if HAVE_SYS_TIME_H
+check_PROGRAMS += \
+ tests/blogc/check_rusage \
+ $(NULL)
+
+tests_blogc_check_rusage_SOURCES = \
+ tests/blogc/check_rusage.c \
+ $(NULL)
+
+tests_blogc_check_rusage_CFLAGS = \
+ $(CMOCKA_CFLAGS) \
+ $(NULL)
+
+tests_blogc_check_rusage_LDFLAGS = \
+ -no-install \
+ -Wl,--wrap=getrusage \
+ $(NULL)
+
+tests_blogc_check_rusage_LDADD = \
+ $(CMOCKA_LIBS) \
+ libblogc.la \
+ libblogc_common.la \
+ $(NULL)
+endif
+endif
+
endif
tests_blogc_check_content_parser_SOURCES = \