mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
valgrind: improvements for run-ptest
* Add statistic summary for run-ptest * Ensure the script can be run anywhere (From OE-Core rev: 8a6f5a2bc55975f38ad285ddea7122643b303c53) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ee8b56528d
commit
e6b7734d76
@@ -2,11 +2,24 @@
|
||||
|
||||
# run-ptest - 'ptest' test infrastructure shell script that
|
||||
# wraps the valgrind regression script vg_regtest.
|
||||
# Must be run in the /usr/lib/valgrind/ptest directory.
|
||||
#
|
||||
# Dave Lerner <dave.lerner@windriver.com>
|
||||
###############################################################
|
||||
VALGRINDLIB=@libdir@/valgrind
|
||||
tests/vg_regtest --all \
|
||||
LOG="${VALGRINDLIB}/ptest/valgrind_ptest_$(date +%Y%m%d-%H%M%S).log"
|
||||
|
||||
cd ${VALGRINDLIB}/ptest && ./tests/vg_regtest --all \
|
||||
--valgrind=/usr/bin/valgrind --valgrind-lib=$VALGRINDLIB \
|
||||
--yocto-ptest
|
||||
--yocto-ptest 2>&1|tee ${LOG}
|
||||
|
||||
passed=`grep PASS: ${LOG}|wc -l`
|
||||
failed=`grep FAIL: ${LOG}|wc -l`
|
||||
skipped=`grep SKIP: ${LOG}|wc -l`
|
||||
all=$((passed + failed + skipped))
|
||||
|
||||
( echo "=== Test Summary ==="
|
||||
echo "TOTAL: ${all}"
|
||||
echo "PASSED: ${passed}"
|
||||
echo "FAILED: ${failed}"
|
||||
echo "SKIPPED: ${skipped}"
|
||||
) | tee -a /${LOG}
|
||||
|
||||
Reference in New Issue
Block a user