Changeset 99c61f9 in mod_gnutls for test/Makefile.am


Ignore:
Timestamp:
Jan 28, 2020, 3:37:37 AM (2 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
e46d203
Parents:
c5f8e85
Message:

Add configure option --enable-valgrind-test to run tests with Valgrind

Also includes suppressions for known issues not caused by mod_gnutls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    rc5f8e85 r99c61f9  
    11SUBDIRS = tests
     2
     3VALGRIND_SUPPRESS = suppressions.valgrind
     4EXTRA_DIST = $(VALGRIND_SUPPRESS)
     5
     6if ENABLE_VALGRIND
     7valgrind = --valgrind \
     8        $(foreach supp,$(VALGRIND_SUPPRESS),--valgrind-suppressions "$(srcdir)/$(supp)")
     9else
     10valgrind =
     11endif
    212
    313# Generate the test scripts
    414test-%.bash: test-template.bash.in | tests/%/
    5         testname="$(*)"; sed s/@NUMBER@/$${testname%%_*}/ < $< > $@
     15        testname="$(*)"; \
     16        sed -e s/_NUM_/$${testname%%_*}/ -e 's,_VALGRIND_,$(valgrind),' < $< > $@
    617        chmod a+x $@
    718
     
    264275test_doc = README.md sample_fail.yml sample_test.yml
    265276
    266 EXTRA_DIST = $(apache_data) $(cert_templates) $(shared_identities:=/uid.in) \
     277EXTRA_DIST += $(apache_data) $(cert_templates) $(shared_identities:=/uid.in) \
    267278        authority/server/crl.template $(test_doc)
    268279
     
    318329endif
    319330
     331if ENABLE_VALGRIND
     332AM_TESTS_ENVIRONMENT += export VALGRIND="@VALGRIND@";
     333endif
     334
    320335if ENABLE_NETNS
    321336AM_TESTS_ENVIRONMENT += export UNSHARE="@UNSHARE@"; \
Note: See TracChangeset for help on using the changeset viewer.