1 TESTS = oauthplugintest
2 TESTS_ENVIRONMENT= SSO_PLUGINS_DIR=$(top_builddir)/src/.libs
4 check_PROGRAMS = oauthplugintest
5 oauthplugintest_SOURCES = oauth1tests.c oauth2tests.c oauthplugintest.c
6 oauthplugintest_CFLAGS = \
12 oauthplugintest_LDADD = \
13 $(top_builddir)/src/liboauth.la \
18 EXTRA_oauthplugintest_DEPENDENCIES = $(top_builddir)/test/cacert.pem $(top_builddir)/test/privkey.pem
19 MOSTLYCLEANFILES = $(top_builddir)/test/cacert.pem $(top_builddir)/test/privkey.pem
21 $(top_builddir)/test/cacert.pem:
22 cp $(top_srcdir)/test/cacert.pem.template $(top_builddir)/test/cacert.pem
24 $(top_builddir)/test/privkey.pem:
25 cp $(top_srcdir)/test/privkey.pem.template $(top_builddir)/test/privkey.pem
27 #These recipes are nicked from gstreamer and simplified
28 VALGRIND_TESTS_DISABLE =
29 SUPPRESSIONS = valgrind.supp
32 @$(TESTS_ENVIRONMENT) \
34 CK_DEFAULT_TIMEOUT=120 \
35 G_SLICE=always-malloc \
36 $(LIBTOOL) --mode=execute \
38 $(foreach s,$(SUPPRESSIONS),--suppressions=$(s)) \
39 --tool=memcheck --leak-check=full --trace-children=yes \
40 --leak-resolution=high --num-callers=40 \
45 for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
46 $(MAKE) $$t.valgrind; \
49 EXTRA_DIST = cacert.pem.template privkey.pem.template valgrind.supp