Changeset 15f2849 in mod_gnutls


Ignore:
Timestamp:
Jun 26, 2020, 6:15:55 PM (3 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
44323c0
Parents:
40d4afa
Message:

Optionally build with LLVM/clang profiling and gather data during tests

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r40d4afa r15f2849  
    5757       vpath_install=$enableval, vpath_install=no)
    5858AM_CONDITIONAL([ENABLE_VPATH_INSTALL], [test "$vpath_install" = "yes"])
     59
     60AC_ARG_ENABLE(clang-coverage,
     61       AS_HELP_STRING([--enable-clang-coverage],
     62               [Collect coverage information using clang profiling \
     63               instrumentation. Do not use for production!]),
     64       coverage=$enableval, coverage=no)
     65COVERAGE_CFLAGS=""
     66AS_IF([test "${coverage}" != "no"], [
     67        COVERAGE_CFLAGS="-fprofile-instr-generate -fcoverage-mapping"
     68])
     69AM_CONDITIONAL([ENABLE_COVERAGE], [test "$coverage" = "yes"])
    5970
    6071AC_ARG_ENABLE(srp,
     
    224235AC_PATH_PROGS([HTTP_CLI], [curl], [no])
    225236
    226 MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${GNUTLS_FEAT_CFLAGS} ${MSVA_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES} ${STRICT_CFLAGS}"
     237MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${GNUTLS_FEAT_CFLAGS} ${MSVA_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES} ${STRICT_CFLAGS} ${COVERAGE_CFLAGS}"
    227238MODULE_LIBS="${LIBGNUTLS_LIBS}"
    228239
  • test/Makefile.am

    r40d4afa r15f2849  
    235235
    236236
     237if ENABLE_COVERAGE
     238coverage_raw_dir = outputs/coverage
     239MOSTLYCLEANFILES += $(coverage_raw_dir)/*
     240endif
     241
    237242mostlyclean-local: clean-softhsm2-db stop-gnupg-agent
    238243        -rmdir $(pgp_identities:=/private-keys-v1.d) || true
     
    250255# stops.
    251256clean-local:
     257if ENABLE_COVERAGE
     258        -rmdir $(coverage_raw_dir) || true
     259endif
    252260        -rmdir $(extra_dirs) || true
    253261if USE_MSVA
     
    354362endif
    355363
     364if ENABLE_COVERAGE
     365AM_TESTS_ENVIRONMENT += export LLVM_PROFILE_FILE="$(coverage_raw_dir)/%p-%3m.profraw";
     366endif
     367
    356368# Echo AM_TESTS_ENVIRONMENT. This can be useful for debugging, e.g. if
    357369# you want to manually run an Apache instance with Valgrind using the
Note: See TracChangeset for help on using the changeset viewer.