summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch
diff options
context:
space:
mode:
authorStefan Strogin <sstrogin@cisco.com>2017-06-20 19:21:02 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-28 20:55:08 +0100
commita17cf42a1240ff1c520632da853e6a7ef68389f6 (patch)
treef13a2dd145bcaeceb5c1470d5c09f0258dd1f68e /meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch
parente8b1c653946ef921b65d47e52aea0dc530ef4286 (diff)
downloadpoky-a17cf42a1240ff1c520632da853e6a7ef68389f6.tar.gz
slang: add ptest
This patch adds ptest for slang, it uses `make runtests` to run tests. The Makefile runs runtests.sh for each *.sl and *.slc tests. runtests.sh is patched for printing test results in a common format, Makefile is patched in order not to compile any dependencies. Changes v2->v3: rebased on the latest master (1d9a88f6). (From OE-Core rev: 643c81afc16f8d3522cc5dc491459a1bae14d827) Signed-off-by: Stefan Strogin <sstrogin@cisco.com> Cc: xe-linux-external@cisco.com Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch')
-rw-r--r--meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch b/meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch
new file mode 100644
index 0000000000..27a9bb87ea
--- /dev/null
+++ b/meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch
@@ -0,0 +1,30 @@
1From 38688ee2754415cf2a1935dafb8278861b7315e7 Mon Sep 17 00:00:00 2001
2From: Stefan Strogin <sstrogin@cisco.com>
3Date: Thu, 2 Mar 2017 00:26:31 +0200
4Subject: [PATCH] test: add output in the format "result: testname"
5
6Upstream-Status: Inappropriate [oe specific]
7
8Signed-off-by: Stefan Strogin <sstrogin@cisco.com>
9---
10 src/test/runtests.sh | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/src/test/runtests.sh b/src/test/runtests.sh
14index a3eaad0..64f0705 100755
15--- a/src/test/runtests.sh
16+++ b/src/test/runtests.sh
17@@ -34,8 +34,10 @@ do
18 then
19 n_failed=`expr ${n_failed} + 1`
20 tests_failed="$tests_failed $testfile"
21+ echo "FAIL: $testfile"
22 else
23 touch lastrun/$testfile
24+ echo "PASS: $testfile"
25 fi
26 done
27
28--
292.11.0
30