diff options
| author | Aaron Merey <[email protected]> | 2025-03-26 15:26:58 -0400 |
|---|---|---|
| committer | Aaron Merey <[email protected]> | 2025-03-26 17:01:24 -0400 |
| commit | ffef16389c4506ccfbe304d0ee5fd714abfa0f5d (patch) | |
| tree | e7a466773d3b49660aea9be0ad1439f0b4b88ffa /tests | |
| parent | 5580435eee04c44b8a7d93d30b58fa82a0cea539 (diff) | |
Add configure option --enable-helgrind
Like --enable-valgrind but uses helgrind instead of memcheck.
If both --enable-valgrind and --enable-helgrind are given then
helgrind takes priority.
--enable-helgrind requires --enable-valgrind-annotations.
* configure.ac: Add --enable-helgrind option.
* tests/Makefile.am: If USE_HELGRIND is true, then include
--tool=helgrind in the valgrind command that tests are run
under.
Signed-off-by: Aaron Merey <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index f53fd926..7c3bf837 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -710,9 +710,13 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \ run-debuginfod-seekable.sh +if USE_HELGRIND +valgrind_cmd=valgrind -q --tool=helgrind --error-exitcode=1 --track-fds=yes +else if USE_VALGRIND valgrind_cmd=valgrind -q --leak-check=full --error-exitcode=1 --track-fds=yes endif +endif installed_TESTS_ENVIRONMENT = libdir='$(DESTDIR)$(libdir)'; \ |
