eddyxu / cpp-coveralls

Upload gcov results to coveralls.io
Apache License 2.0
282 stars 74 forks source link

Exclusion regexps do not appear to work #138

Open rgov opened 5 years ago

rgov commented 5 years ago
coveralls \
    --build-root $(pwd) \
    --gcov $(which llvm-cov) \
    --gcov-options gcov \
    --verbose \
    --exclude-pattern ".*"

This should skip every file, because the regex matches all paths, but instead I see it generating a ton of gcov files.

rgov commented 5 years ago

Indeed, run_gcov does not ever touch the values in args.regexp.

adam-stamand commented 5 years ago

You can reference my explanation here #145

tldr; --exclude-pattern isn't used for selecting what gets run with gcov, as you've discovered. It's used for filtering out files/directories from the final report. You have to use --exclude to exclude things from being run with gcov.