]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests/: add test suite for stackprof
authorSerhei Makarov <serhei@serhei.io>
Mon, 13 Apr 2026 18:46:02 +0000 (14:46 -0400)
committerSerhei Makarov <serhei@serhei.io>
Wed, 24 Jun 2026 20:46:27 +0000 (16:46 -0400)
commit9d0fa8bb32d0ded04d768342421eed26d784bbfa
tree3b44d20a6c775268dff4da00e4f3e30cc435f587
parent2646213581349a1c0cf2f55493bfe81db6e1b518
tests/: add test suite for stackprof

Together with the stackprof tool we add some test cases to exercise
it, and the underlying libdwfl_stacktrace functionality as well.

* tests/stackprof-subr.sh: Common subroutines for checking
  perf_events availability and verifying gmon.*.out files.
* tests/run-stackprof-system.sh: New file.
* tests/run-stackprof-system-gprof.sh: New file.
* tests/run-stackprof-user.sh: New file.
* tests/run-stackprof-user-gprof.sh: New file.
* tests/Makefile.am (TESTS): add the new testcases.

Co-authored-by: <fche@redhat.com>
Signed-off-by: <serhei@serhei.io>
tests/Makefile.am
tests/run-stackprof-system-gprof.sh [new file with mode: 0755]
tests/run-stackprof-system.sh [new file with mode: 0755]
tests/run-stackprof-user-gprof.sh [new file with mode: 0755]
tests/run-stackprof-user.sh [new file with mode: 0755]
tests/stackprof-subr.sh [new file with mode: 0644]