blob: 447d33c8cb8de67d029012e44f3aa03721e754ea [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#!/bin/sh
2
3# run-ptest - 'ptest' test infrastructure shell script that
4# wraps the valgrind regression script vg_regtest.
5#
6# Dave Lerner <dave.lerner@windriver.com>
7###############################################################
8VALGRINDLIB=@libdir@/valgrind
9LOG="${VALGRINDLIB}/ptest/valgrind_ptest_$(date +%Y%m%d-%H%M%S).log"
10
11cd ${VALGRINDLIB}/ptest && ./tests/vg_regtest --all \
12 --valgrind=/usr/bin/valgrind --valgrind-lib=$VALGRINDLIB \
13 --yocto-ptest 2>&1|tee ${LOG}
14
15passed=`grep PASS: ${LOG}|wc -l`
16failed=`grep FAIL: ${LOG}|wc -l`
17skipped=`grep SKIP: ${LOG}|wc -l`
18all=$((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}