[0/5] valgrind: ptests

Message ID 20211230013730.129852-1-Randy.MacLeod@windriver.com
Headers show
Series valgrind: ptests | expand

Message

Randy MacLeod Dec. 30, 2021, 1:37 a.m. UTC
Tested on khem's glibc upgrade branch:
   https://git.yoctoproject.org/poky-contrib/log/?h=kraj/poky-next
and poky master (
   9b99eb9e36 tzdata: Remove no longer relevant RCONFLICTS:${PN}

Summary:

Work-around a glibc upgrade error in a way that also works for glibc-2.34 on master.
Fix up some ptest warnings and temporarily skip the boost_thread test for arm64.


Results:

On the branch currently known as master, the ptest summary is:

qemux86-64:

=== Test Summary ===
TOTAL: 730
PASSED: 711
FAILED: 0
SKIPPED: 19
DURATION: 1052
END: /usr/lib/valgrind/ptest
2021-12-29T23:12
STOP: ptest-runner
TOTAL: 1 FAIL: 0


qemuarm64:

TOTAL: 415
PASSED: 395
FAILED: 0
SKIPPED: 20
DURATION: 4521
END: /usr/lib/valgrind/ptest
2021-12-30T00:33
STOP: ptest-runner
TOTAL: 1 FAIL: 0

and the output from running: ptest-runner valgrind has no superfluous warnings:

root@qemuarm64:~# ptest-runner -l  
Available ptests:                      
strace  /usr/lib/strace/ptest/run-ptest       
valgrind        /usr/lib/valgrind/ptest/run-ptest
root@qemuarm64:~# ptest-runner valgrind
START: ptest-runner                            
2021-12-29T23:18                             
BEGIN: /usr/lib/valgrind/ptest       
Hide valgrind tests that are non-deterministic
Reported at https://bugs.kde.org/show_bug.cgi?id=430321
Aarch64: Hide valgrind tests that result in defunct process and then out of memory
Run non-deterministic tests using taskset to limit them to a single core.
PASS: gdbserver_tests/mcblocklistsearch          
PASS: gdbserver_tests/mcbreak 
...
PASS: none/tests/vgprintf
PASS: none/tests/vgprintf_nvalgrind

...checking makefile consistency
...checking header files and include directives
Restore non-deterministic tests
Aarch64: Restore valgrind tests that result in defunct process and then out of memory
Restore valgrind tests that are non-deterministc
Failed test details...
=== Test Summary ===
TOTAL: 415
PASSED: 395
FAILED: 0
SKIPPED: 20
DURATION: 4521
END: /usr/lib/valgrind/ptest
2021-12-30T00:33
STOP: ptest-runner
TOTAL: 1 FAIL: 0


../Randy


Randy MacLeod (5):
  valgrind: Add util-linux-taskset ptest dependency
  valgrind: backport rseq work-around
  valgrind: remove duplicate and skipped tests from remove-for-aarch64
  valgrind: skip boost_thread for aarch64 ptests
  valgrind: make run-ptest better

 ...plement-linux-rseq-syscall-as-ENOSYS.patch | 198 ++++++++++++++++++
 .../valgrind/valgrind/remove-for-aarch64      |   9 +-
 .../valgrind/valgrind/run-ptest               |  23 +-
 .../valgrind/valgrind_3.18.1.bb               |   4 +-
 4 files changed, 216 insertions(+), 18 deletions(-)
 create mode 100644 meta/recipes-devtools/valgrind/valgrind/0001-Implement-linux-rseq-syscall-as-ENOSYS.patch