Makefile.am 795 B

123456789101112131415161718192021222324
  1. TESTS_ENVIRONMENT=
  2. TESTS=
  3. UNIT_TESTS=
  4. check_PROGRAMS=
  5. UNIT_TESTS += check_stack check_list check_indexedList check_builtin check_namespace check_encode check_decode check_create check_delete
  6. TESTS += $(UNIT_TESTS)
  7. check_PROGRAMS += $(UNIT_TESTS)
  8. TESTS_ENVIRONMENT_MEM="libtool --mode=execute valgrind --leak-check=full --quiet --suppressions=suppressions --gen-suppressions=no --error-exitcode=666"
  9. .PHONY: check-mem
  10. check-mem:
  11. $(MAKE) $(AM_MAKEFLAGS) check TESTS="$(UNIT_TESTS)" TESTS_ENVIRONMENT=$(TESTS_ENVIRONMENT_MEM)
  12. # --- no changes beyond this line needed ---
  13. INCLUDE = @CHECK_CFLAGS@ -I$(top_builddir)/src -I$(top_builddir)/include
  14. LDADD = $(top_builddir)/lib/libopen62541.a @CHECK_LIBS@
  15. AM_LDFLAGS = $(LDADD) --coverage
  16. AM_CFLAGS = $(GLOBAL_AM_CFLAGS) $(INCLUDE) --coverage