diff options
| -rwxr-xr-x | meta-oe/recipes-devtools/libtoml11/files/run-ptest | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta-oe/recipes-devtools/libtoml11/files/run-ptest b/meta-oe/recipes-devtools/libtoml11/files/run-ptest index 9bc480aa7f..4da9e68cc5 100755 --- a/meta-oe/recipes-devtools/libtoml11/files/run-ptest +++ b/meta-oe/recipes-devtools/libtoml11/files/run-ptest | |||
| @@ -1,10 +1,11 @@ | |||
| 1 | #!/bin/sh | 1 | #!/usr/bin/env sh |
| 2 | |||
| 3 | cd tests || exit 1 | ||
| 4 | |||
| 5 | rm -rf tests.log | ||
| 2 | 6 | ||
| 3 | cd tests | ||
| 4 | for atest in test_* ; do | 7 | for atest in test_* ; do |
| 5 | rm -rf tests.log | 8 | if ./"${atest}" >> tests.log 2>&1; then |
| 6 | ./${atest} > tests.log 2>&1 | ||
| 7 | if [ $? = 0 ] ; then | ||
| 8 | echo "PASS: ${atest}" | 9 | echo "PASS: ${atest}" |
| 9 | else | 10 | else |
| 10 | echo "FAIL: ${atest}" | 11 | echo "FAIL: ${atest}" |
