Changeset 44323c0 in mod_gnutls


Ignore:
Timestamp:
Jun 27, 2020, 3:42:00 AM (7 days ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
e2c0c62
Parents:
15f2849
Message:

Add target "coverage" for building coverage report to test/Makefile.am

Location:
test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/.gitignore

    r15f2849 r44323c0  
    88__pycache__/
    99README.html
     10coverage/
    1011
    1112# generated X.509 data
  • test/Makefile.am

    r15f2849 r44323c0  
    237237if ENABLE_COVERAGE
    238238coverage_raw_dir = outputs/coverage
     239coverage_out = coverage
    239240MOSTLYCLEANFILES += $(coverage_raw_dir)/*
    240241endif
     
    257258if ENABLE_COVERAGE
    258259        -rmdir $(coverage_raw_dir) || true
     260        -rm -rf $(coverage_out) || true
    259261endif
    260262        -rmdir $(extra_dirs) || true
     
    364366if ENABLE_COVERAGE
    365367AM_TESTS_ENVIRONMENT += export LLVM_PROFILE_FILE="$(coverage_raw_dir)/%p-%3m.profraw";
     368
     369outputs/coverage.profdata: $(coverage_raw_dir)/*.profraw
     370        llvm-profdata merge -sparse $^ -o $@
     371
     372coverage/index.html: outputs/coverage.profdata
     373        llvm-cov show ../src/.libs/mod_gnutls.so -instr-profile=$< -format=html $(srcdir)/../src/*.c $(srcdir)/../src/*.h $(srcdir)/../include/*.h -output-dir=$(dir $@)/
     374
     375coverage: coverage/index.html
    366376endif
    367377
Note: See TracChangeset for help on using the changeset viewer.