diff options
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/recipes-devtools/valgrind/valgrind/run-ptest | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/run-ptest b/meta/recipes-devtools/valgrind/valgrind/run-ptest index f9a72ec4a9..447d33c8cb 100755 --- a/meta/recipes-devtools/valgrind/valgrind/run-ptest +++ b/meta/recipes-devtools/valgrind/valgrind/run-ptest | |||
@@ -2,11 +2,24 @@ | |||
2 | 2 | ||
3 | # run-ptest - 'ptest' test infrastructure shell script that | 3 | # run-ptest - 'ptest' test infrastructure shell script that |
4 | # wraps the valgrind regression script vg_regtest. | 4 | # wraps the valgrind regression script vg_regtest. |
5 | # Must be run in the /usr/lib/valgrind/ptest directory. | ||
6 | # | 5 | # |
7 | # Dave Lerner <dave.lerner@windriver.com> | 6 | # Dave Lerner <dave.lerner@windriver.com> |
8 | ############################################################### | 7 | ############################################################### |
9 | VALGRINDLIB=@libdir@/valgrind | 8 | VALGRINDLIB=@libdir@/valgrind |
10 | tests/vg_regtest --all \ | 9 | LOG="${VALGRINDLIB}/ptest/valgrind_ptest_$(date +%Y%m%d-%H%M%S).log" |
10 | |||
11 | cd ${VALGRINDLIB}/ptest && ./tests/vg_regtest --all \ | ||
11 | --valgrind=/usr/bin/valgrind --valgrind-lib=$VALGRINDLIB \ | 12 | --valgrind=/usr/bin/valgrind --valgrind-lib=$VALGRINDLIB \ |
12 | --yocto-ptest | 13 | --yocto-ptest 2>&1|tee ${LOG} |
14 | |||
15 | passed=`grep PASS: ${LOG}|wc -l` | ||
16 | failed=`grep FAIL: ${LOG}|wc -l` | ||
17 | skipped=`grep SKIP: ${LOG}|wc -l` | ||
18 | all=$((passed + failed + skipped)) | ||
19 | |||
20 | ( echo "=== Test Summary ===" | ||
21 | echo "TOTAL: ${all}" | ||
22 | echo "PASSED: ${passed}" | ||
23 | echo "FAILED: ${failed}" | ||
24 | echo "SKIPPED: ${skipped}" | ||
25 | ) | tee -a /${LOG} | ||