diff options
author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2019-09-10 17:41:35 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-16 23:02:44 +0100 |
commit | 997d91f608ca5f866f9800c52a4d2ebbbce70cd2 (patch) | |
tree | aa79f3946d31e5d50955093b73712f7b00733cc1 /meta/recipes-devtools/valgrind/valgrind | |
parent | 3b83ad583066795fa3419495b320d5596c55597b (diff) | |
download | poky-997d91f608ca5f866f9800c52a4d2ebbbce70cd2.tar.gz |
valgrind: ptest improvements to run-ptest and more
Make some changes to the run-ptest script:
- after main tests run integrity check like the pkg Makefile.
- aesthetic and ordering changes
Add the .in_place directory and its contents which allows valgrind
to be run in-place thereby enabling the gdbserver_tests to
complete rather than hang. Unfortunately directory paths embedded
in binaries still cause many of these test to fail.
Add the exp-sgcheck tests.
With core-image-minimal on qemux86-64/kvm:
Recipe | Passed | Failed | Skipped | Time(s)
before | 648 | 12 | 60 | 1541
after | 662 | 20 | 38 | 1429
ppc-no-gdbserv | 415 | 196 | 34 | 10689
Since fewer tests timeout, the overall time has decreased.
With core-image-sato on qemux86-64/kvm the results are now
the same as core-image-minimal.
qemuppc/arm64 runs result in the oom-killer eventually running since
some processes do not terminate properly and accumulate as defunct
processes in memory. Without the gdbserver_tests, the tests
complete without defunct process or the oom-killer running for
ppc but not for arm64.
(From OE-Core rev: 6dbaaeec17eae8329031188b688b33306a871870)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind')
-rwxr-xr-x | meta/recipes-devtools/valgrind/valgrind/run-ptest | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/run-ptest b/meta/recipes-devtools/valgrind/valgrind/run-ptest index 447d33c8cb..5b3ad2a2ed 100755 --- a/meta/recipes-devtools/valgrind/valgrind/run-ptest +++ b/meta/recipes-devtools/valgrind/valgrind/run-ptest | |||
@@ -4,13 +4,30 @@ | |||
4 | # wraps the valgrind regression script vg_regtest. | 4 | # wraps the valgrind regression script vg_regtest. |
5 | # | 5 | # |
6 | # Dave Lerner <dave.lerner@windriver.com> | 6 | # Dave Lerner <dave.lerner@windriver.com> |
7 | # Randy MacLeod <Randy.MacLeod@windriver.com> | ||
7 | ############################################################### | 8 | ############################################################### |
8 | VALGRINDLIB=@libdir@/valgrind | 9 | VALGRIND_LIB=@libdir@/valgrind |
9 | LOG="${VALGRINDLIB}/ptest/valgrind_ptest_$(date +%Y%m%d-%H%M%S).log" | 10 | VALGRIND_BIN=@bindir@/valgrind |
10 | 11 | ||
11 | cd ${VALGRINDLIB}/ptest && ./tests/vg_regtest --all \ | 12 | LOG="${VALGRIND_LIB}/ptest/valgrind_ptest_$(date +%Y%m%d-%H%M%S).log" |
12 | --valgrind=/usr/bin/valgrind --valgrind-lib=$VALGRINDLIB \ | 13 | |
13 | --yocto-ptest 2>&1|tee ${LOG} | 14 | TOOLS="memcheck cachegrind callgrind helgrind drd massif dhat lackey none" |
15 | EXP_TOOLS="exp-bbv exp-dhat exp-sgcheck" | ||
16 | |||
17 | GDB_BIN=@bindir@/gdb | ||
18 | cd ${VALGRIND_LIB}/ptest && ./gdbserver_tests/make_local_links ${GDB_BIN} | ||
19 | |||
20 | cd ${VALGRIND_LIB}/ptest && ./tests/vg_regtest \ | ||
21 | --valgrind=${VALGRIND_BIN} \ | ||
22 | --valgrind-lib=${VALGRIND_LIB} \ | ||
23 | --yocto-ptest \ | ||
24 | gdbserver_tests ${TOOLS} ${EXP_TOOLS} \ | ||
25 | 2>&1|tee ${LOG} | ||
26 | |||
27 | cd ${VALGRIND_LIB}/ptest && \ | ||
28 | ./tests/post_regtest_checks $(pwd) \ | ||
29 | gdbserver_tests ${TOOLS} ${EXP_TOOLS} \ | ||
30 | 2>&1|tee -a ${LOG} | ||
14 | 31 | ||
15 | passed=`grep PASS: ${LOG}|wc -l` | 32 | passed=`grep PASS: ${LOG}|wc -l` |
16 | failed=`grep FAIL: ${LOG}|wc -l` | 33 | failed=`grep FAIL: ${LOG}|wc -l` |