diff options
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libevent/libevent/run-ptest | 34 | ||||
-rw-r--r-- | meta/recipes-support/libevent/libevent_2.1.11.bb | 3 |
2 files changed, 25 insertions, 12 deletions
diff --git a/meta/recipes-support/libevent/libevent/run-ptest b/meta/recipes-support/libevent/libevent/run-ptest index 0241851c70..080806dea9 100644 --- a/meta/recipes-support/libevent/libevent/run-ptest +++ b/meta/recipes-support/libevent/libevent/run-ptest | |||
@@ -1,18 +1,28 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | fail=0 | 3 | # run-ptest - 'ptest' test infrastructure shell script that |
4 | # wraps the libevent test scripts | ||
5 | # | ||
6 | # Trevor Gamblin <trevor.gamblin@windriver.com> | ||
7 | ############################################################### | ||
8 | LIBEVENTLIB=@libdir@/libevent | ||
9 | LOG="${LIBEVENTLIB}/ptest/libevent_ptest_$(date +%Y%m%d-%H%M%S).log" | ||
10 | |||
11 | cd ${LIBEVENTLIB}/ptest | ||
12 | |||
4 | for test in ./test/* | 13 | for test in ./test/* |
5 | do | 14 | do |
6 | $test | 15 | $test 2>&1| sed -e '/OK/ s/^/PASS: / ; /FAILED/ s/^/FAIL: / ; /SKIPPED/ s/^/SKIP: / ; /DISABLED/ s/^/SKIP: /' | cut -f1,2 -d ':' | tee -a ${LOG} |
7 | if [ $? -ne 0 ] | ||
8 | then | ||
9 | fail=1 | ||
10 | fi | ||
11 | done | 16 | done |
12 | 17 | ||
13 | if [ $fail -eq 0 ] | 18 | passed=`grep PASS ${LOG}|wc -l` |
14 | then | 19 | failed=`grep FAIL ${LOG}|wc -l` |
15 | echo "PASS: libevent" | 20 | skipped=`grep -E SKIP ${LOG}|wc -l` |
16 | else | 21 | all=$((passed + failed + skipped)) |
17 | echo "FAIL: libevent" | 22 | |
18 | fi | 23 | ( echo "=== Test Summary ===" |
24 | echo "TOTAL: ${all}" | ||
25 | echo "PASSED: ${passed}" | ||
26 | echo "FAILED: ${failed}" | ||
27 | echo "SKIPPED: ${skipped}" | ||
28 | ) | tee -a ${LOG} | ||
diff --git a/meta/recipes-support/libevent/libevent_2.1.11.bb b/meta/recipes-support/libevent/libevent_2.1.11.bb index 1e18f0ab2c..f005ab8bda 100644 --- a/meta/recipes-support/libevent/libevent_2.1.11.bb +++ b/meta/recipes-support/libevent/libevent_2.1.11.bb | |||
@@ -43,4 +43,7 @@ do_install_ptest() { | |||
43 | do | 43 | do |
44 | install -m 0755 $file ${D}${PTEST_PATH}/test | 44 | install -m 0755 $file ${D}${PTEST_PATH}/test |
45 | done | 45 | done |
46 | |||
47 | # handle multilib | ||
48 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest | ||
46 | } | 49 | } |