summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libevent/libevent/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libevent/libevent/run-ptest')
-rw-r--r--meta/recipes-support/libevent/libevent/run-ptest10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-support/libevent/libevent/run-ptest b/meta/recipes-support/libevent/libevent/run-ptest
index d3b5e793c3..ef4260d1c4 100644
--- a/meta/recipes-support/libevent/libevent/run-ptest
+++ b/meta/recipes-support/libevent/libevent/run-ptest
@@ -1,14 +1,14 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# run-ptest - 'ptest' test infrastructure shell script that 3# run-ptest - 'ptest' test infrastructure shell script that
4# wraps the libevent test scripts 4# wraps the libevent test scripts
5# 5#
6# Trevor Gamblin <trevor.gamblin@windriver.com> 6# Trevor Gamblin <trevor.gamblin@windriver.com>
7############################################################### 7###############################################################
8LIBEVENTLIB=@libdir@/libevent 8LIBEVENTLIB=@libdir@/libevent
9LOG="${LIBEVENTLIB}/ptest/libevent_ptest_$(date +%Y%m%d-%H%M%S).log" 9LOG="${LIBEVENTLIB}/ptest/libevent_ptest_$(date +%Y%m%d-%H%M%S).log"
10 10
11cd ${LIBEVENTLIB}/ptest 11cd ${LIBEVENTLIB}/ptest
12 12
13# Run only the libevent "regress" test. All other test scripts in the 13# Run only the libevent "regress" test. All other test scripts in the
14# libevent "test" folder are related to performance, e.g. read/write 14# libevent "test" folder are related to performance, e.g. read/write
@@ -16,9 +16,9 @@ cd ${LIBEVENTLIB}/ptest
16# in the ptest log. 16# in the ptest log.
17./test/regress 2>&1| sed -e '/TESTS/d' -e '/tests/d' -e '/OK/ s/^/PASS: / ; /FAILED/ s/^/FAIL: / ; /SKIPPED/ s/^/SKIP: / ; /DISABLED/ s/^/SKIP: /' | cut -f1,2 -d ':' | tee -a ${LOG} 17./test/regress 2>&1| sed -e '/TESTS/d' -e '/tests/d' -e '/OK/ s/^/PASS: / ; /FAILED/ s/^/FAIL: / ; /SKIPPED/ s/^/SKIP: / ; /DISABLED/ s/^/SKIP: /' | cut -f1,2 -d ':' | tee -a ${LOG}
18 18
19passed=`grep PASS ${LOG}|wc -l` 19passed=`grep PASS: ${LOG}|wc -l`
20failed=`grep FAIL ${LOG}|wc -l` 20failed=`grep FAIL: ${LOG}|wc -l`
21skipped=`grep -E SKIP ${LOG}|wc -l` 21skipped=`grep -E SKIP: ${LOG}|wc -l`
22all=$((passed + failed + skipped)) 22all=$((passed + failed + skipped))
23 23
24( echo "=== Test Summary ===" 24( echo "=== Test Summary ==="