blob: 447d33c8cb8de67d029012e44f3aa03721e754ea [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2
3# run-ptest - 'ptest' test infrastructure shell script that
4# wraps the valgrind regression script vg_regtest.
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005#
6# Dave Lerner <dave.lerner@windriver.com>
7###############################################################
8VALGRINDLIB=@libdir@/valgrind
Brad Bishopd7bf8c12018-02-25 22:55:05 -05009LOG="${VALGRINDLIB}/ptest/valgrind_ptest_$(date +%Y%m%d-%H%M%S).log"
10
11cd ${VALGRINDLIB}/ptest && ./tests/vg_regtest --all \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012 --valgrind=/usr/bin/valgrind --valgrind-lib=$VALGRINDLIB \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013 --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}