diff options
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind/run-ptest')
-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` |