diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-09-15 16:04:44 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-09-16 00:19:05 -0700 |
| commit | 44b0e29a9650d72fe4da86d1f323f57d12f02f23 (patch) | |
| tree | 17a0d807a4635bbda6c4a54a4eafe20784f75730 /meta-oe | |
| parent | 52235f493549584b4f550506291bc2b217d9d7c7 (diff) | |
| download | meta-openembedded-44b0e29a9650d72fe4da86d1f323f57d12f02f23.tar.gz | |
poco: Add pass/fail ststus into logs
Ptests do not report status otherwise on build host
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/poco/poco/run-ptest | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poco/poco/run-ptest b/meta-oe/recipes-support/poco/poco/run-ptest index 521cc08a75..db8cf8511f 100644 --- a/meta-oe/recipes-support/poco/poco/run-ptest +++ b/meta-oe/recipes-support/poco/poco/run-ptest | |||
| @@ -1,8 +1,19 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | i=0 | ||
| 2 | while read runner; do | 3 | while read runner; do |
| 3 | oldpath=`pwd` >/dev/null | 4 | oldpath=`pwd` >/dev/null |
| 4 | cd bin | 5 | cd bin |
| 5 | echo Testing $runner | 6 | echo Testing $runner |
| 6 | ./$runner -ignore $oldpath/cppignore.lnx -all | 7 | ./$runner -ignore $oldpath/cppignore.lnx -all |
| 8 | export res$((i++))=$? | ||
| 7 | cd $oldpath >/dev/null | 9 | cd $oldpath >/dev/null |
| 8 | done < testrunners | 10 | done < testrunners |
| 11 | i=0 | ||
| 12 | while read runner; do | ||
| 13 | eval assign=\$res$((i++)) | ||
| 14 | if [ $assign -ne 0 ]; then | ||
| 15 | echo "FAIL: $runner" | ||
| 16 | else | ||
| 17 | echo "PASS: $runner" | ||
| 18 | fi | ||
| 19 | done < testrunners | ||
