diff options
| author | Muhammad Shakeel <muhammad_shakeel@mentor.com> | 2013-07-05 12:23:18 +0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-29 13:08:59 +0100 |
| commit | 3f7e8ad53e27b441125d232a387acb838e3feffd (patch) | |
| tree | 68c0fe3a353a26d203c8571a45e40a377fcd192d /meta/recipes-extended/bash/bash-3.2.48/test-output.patch | |
| parent | d921c0a0032a63cc1848726d5e31ed81fd6281d0 (diff) | |
| download | poky-3f7e8ad53e27b441125d232a387acb838e3feffd.tar.gz | |
bash: Add ptest
ptest support was already added for v4.2 but for the distros
using GPLv2 version of bash (3.2.48) this update is required.
(From OE-Core rev: d054da760deda0c965619372209b50f8db964e1c)
Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bash/bash-3.2.48/test-output.patch')
| -rw-r--r-- | meta/recipes-extended/bash/bash-3.2.48/test-output.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash-3.2.48/test-output.patch b/meta/recipes-extended/bash/bash-3.2.48/test-output.patch new file mode 100644 index 0000000000..2b09b7d977 --- /dev/null +++ b/meta/recipes-extended/bash/bash-3.2.48/test-output.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Add FAIL/PASS output to test output. | ||
| 2 | |||
| 3 | Signed-off-by: Björn Stenberg <bjst@enea.com> | ||
| 4 | Upstream-Status: Pending | ||
| 5 | --- | ||
| 6 | diff -uNr a/tests/run-all b/tests/run-all | ||
| 7 | --- a/tests/run-all 1999-10-08 17:07:46.000000000 +0200 | ||
| 8 | +++ b/tests/run-all 2012-10-27 21:04:18.663331887 +0200 | ||
| 9 | @@ -22,7 +22,15 @@ | ||
| 10 | case $x in | ||
| 11 | $0|run-minimal|run-gprof) ;; | ||
| 12 | *.orig|*~) ;; | ||
| 13 | - *) echo $x ; sh $x ;; | ||
| 14 | + *) echo $x | ||
| 15 | + output=`sh $x` | ||
| 16 | + if [ -n "$output" ]; then | ||
| 17 | + echo "$output" | ||
| 18 | + echo "FAIL: $x" | ||
| 19 | + else | ||
| 20 | + echo "PASS: $x" | ||
| 21 | + fi | ||
| 22 | + ;; | ||
| 23 | esac | ||
| 24 | done | ||
| 25 | |||
