aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-testing-add-the-output-format-for-ptest.patch
blob: 8f8336a497f82e748046f73b255b0fd1b21c71fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 4bb4024b395f19d36ab3569e2773ea80d8cc5261 Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Wed, 14 Jan 2015 15:10:06 +0800
Subject: [PATCH] testing: add the output format for ptest

Upstream-Status: Inappropriate [OE specific]

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 testing/RUNTESTS |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Index: net-snmp-5.7.3/testing/RUNTESTS
===================================================================
--- net-snmp-5.7.3.orig/testing/RUNTESTS
+++ net-snmp-5.7.3/testing/RUNTESTS
@@ -29,13 +29,17 @@ failed_count=0
 rm -f failed_tests
 for i in "${srcdir}"/testing/fulltests/default/T*$1*; do
     echo "RUNNING $i"
+    test_name=`basename $i`
     ${srcdir}/testing/fulltests/support/simple_run $i
     if [ $? = 0 ]; then
+        echo "PASS: $test_name"
         success_count=`expr $success_count + 1`
     else
+        echo "FAIL: $test_name"
         failed_count=`expr $failed_count + 1`
         echo "$i" >> failed_tests
     fi
+    echo
 done
 
 if [ -f failed_tests ]; then