xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/bash/bash/test-output.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 28eb06047ebd2deaa8c7cd2bf6655ef6a469dc14 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 10:01:56 +0800
4Subject: [PATCH 1/2] Add FAIL/PASS output to test output.
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Signed-off-by: Björn Stenberg <bjst@enea.com>
10Upstream-Status: Pending
11
12Rebase to 4.4
13Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
14---
15 tests/run-all | 11 ++++++++++-
16 1 file changed, 10 insertions(+), 1 deletion(-)
17
18diff --git a/tests/run-all b/tests/run-all
19index 2882fe0..e21d026 100644
20--- a/tests/run-all
21+++ b/tests/run-all
22@@ -33,7 +33,16 @@ do
23 	case $x in
24 	$0|run-minimal|run-gprof)	;;
25 	*.orig|*~) ;;
26-	*)	echo $x ; sh $x ; rm -f ${BASH_TSTOUT} ;;
27+	*)	echo $x
28+		output=`sh $x`
29+		if [ -n "$output" ]; then
30+			echo "$output"
31+			echo "FAIL: $x"
32+		else
33+			echo "PASS: $x"
34+		fi
35+		rm -f ${BASH_TSTOUT}
36+		;;
37 	esac
38 done
39
40--
411.8.3.1
42
43