summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorZqiang <qiang.zhang@windriver.com>2021-06-11 16:51:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-06 13:02:30 +0100
commit4f79cdf16eb3be8b485a46ce3bbdd553e6908696 (patch)
tree3088c95cbebab50675ecad44c1bac3e01a9cf9ed /meta
parent7e9ce0c2d5e273a311b7e03e44af64eabcdfbd9a (diff)
downloadpoky-4f79cdf16eb3be8b485a46ce3bbdd553e6908696.tar.gz
ifupdown: Skip wrong test item
Skip wrong testcase(12-15) in testbuild-linux and rebase the patch tweak-ptest-script.patch. (From OE-Core rev: d96dc6345619977748a1dbb4ed981d031d7ecee6) Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 4edcfbace258d94d814c7d61f467e5384e2645fb) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/ifupdown/files/0001-ifupdown-skip-wrong-test-case.patch32
-rw-r--r--meta/recipes-core/ifupdown/files/tweak-ptest-script.patch15
-rw-r--r--meta/recipes-core/ifupdown/ifupdown_0.8.36.bb1
3 files changed, 43 insertions, 5 deletions
diff --git a/meta/recipes-core/ifupdown/files/0001-ifupdown-skip-wrong-test-case.patch b/meta/recipes-core/ifupdown/files/0001-ifupdown-skip-wrong-test-case.patch
new file mode 100644
index 0000000000..c751e4fab0
--- /dev/null
+++ b/meta/recipes-core/ifupdown/files/0001-ifupdown-skip-wrong-test-case.patch
@@ -0,0 +1,32 @@
1From 98243deface88614e3f332c4a85d04a9abce55ff Mon Sep 17 00:00:00 2001
2From: Zqiang <qiang.zhang@windriver.com>
3Date: Mon, 19 Apr 2021 14:15:45 +0800
4Subject: [PATCH] ifupdown: skip wrong test case
5
6The test parameters of testcase(12-15) file is not right,
7it triggers a test failure, these test items are invalid
8and are skipped directly.
9
10Upstream-Status: Inappropriate [oe-core specific]
11
12Signed-off-by: Zqiang <qiang.zhang@windriver.com>
13---
14 tests/testbuild-linux | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/tests/testbuild-linux b/tests/testbuild-linux
18index 1181ea0..5f148eb 100755
19--- a/tests/testbuild-linux
20+++ b/tests/testbuild-linux
21@@ -3,7 +3,7 @@
22 dir=tests/linux
23
24 result=true
25-for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do
26+for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18; do
27 if [ -e $dir/testcase.$test ]; then
28 args="$(cat $dir/testcase.$test | sed -n 's/^# RUN: //p')"
29 else
30--
312.17.1
32
diff --git a/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch b/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch
index d7600cf243..ea88a9086a 100644
--- a/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch
+++ b/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch
@@ -3,9 +3,12 @@ Tweak tests of ifupdown to make it work with oe-core ptest framework.
3Upstream-Status: Inappropriate [oe-core specific] 3Upstream-Status: Inappropriate [oe-core specific]
4 4
5Signed-off-by: Kai Kang <kai.kang@windriver.com> 5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6---
7 tests/testbuild-linux | 11 ++++++-----
8 1 file changed, 6 insertions(+), 5 deletions(-)
6 9
7diff --git a/tests/testbuild-linux b/tests/testbuild-linux 10diff --git a/tests/testbuild-linux b/tests/testbuild-linux
8index 1181ea0..d5c1814 100755 11index 5f148eb..d9b1698 100755
9--- a/tests/testbuild-linux 12--- a/tests/testbuild-linux
10+++ b/tests/testbuild-linux 13+++ b/tests/testbuild-linux
11@@ -1,6 +1,7 @@ 14@@ -1,6 +1,7 @@
@@ -16,8 +19,8 @@ index 1181ea0..d5c1814 100755
16+dir=$curdir/linux 19+dir=$curdir/linux
17 20
18 result=true 21 result=true
19 for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do 22 for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18; do
20@@ -12,7 +13,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do 23@@ -12,7 +13,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18; do
21 echo "Testcase $test: $args" 24 echo "Testcase $test: $args"
22 25
23 exitcode=0 26 exitcode=0
@@ -26,7 +29,7 @@ index 1181ea0..d5c1814 100755
26 >$dir/up-res-out.$test 2>$dir/up-res-err.$test || exitcode=$? 29 >$dir/up-res-out.$test 2>$dir/up-res-err.$test || exitcode=$?
27 30
28 (echo "exit code: $exitcode"; 31 (echo "exit code: $exitcode";
29@@ -20,7 +21,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do 32@@ -20,7 +21,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18; do
30 echo "====stderr===="; cat $dir/up-res-err.$test) > $dir/up-res.$test 33 echo "====stderr===="; cat $dir/up-res-err.$test) > $dir/up-res.$test
31 34
32 exitcode=0 35 exitcode=0
@@ -35,7 +38,7 @@ index 1181ea0..d5c1814 100755
35 >$dir/down-res-out.$test 2>$dir/down-res-err.$test || exitcode=$? 38 >$dir/down-res-out.$test 2>$dir/down-res-err.$test || exitcode=$?
36 39
37 (echo "exit code: $exitcode"; 40 (echo "exit code: $exitcode";
38@@ -28,9 +29,9 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do 41@@ -28,9 +29,9 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18; do
39 echo "====stderr===="; cat $dir/down-res-err.$test) > $dir/down-res.$test 42 echo "====stderr===="; cat $dir/down-res-err.$test) > $dir/down-res.$test
40 43
41 if diff -ub $dir/up.$test $dir/up-res.$test && diff -ub $dir/down.$test $dir/down-res.$test; then 44 if diff -ub $dir/up.$test $dir/up-res.$test && diff -ub $dir/down.$test $dir/down-res.$test; then
@@ -47,3 +50,5 @@ index 1181ea0..d5c1814 100755
47 result=false 50 result=false
48 fi 51 fi
49 echo "==========" 52 echo "=========="
53--
542.17.1
diff --git a/meta/recipes-core/ifupdown/ifupdown_0.8.36.bb b/meta/recipes-core/ifupdown/ifupdown_0.8.36.bb
index c0a90a3972..0daf50acab 100644
--- a/meta/recipes-core/ifupdown/ifupdown_0.8.36.bb
+++ b/meta/recipes-core/ifupdown/ifupdown_0.8.36.bb
@@ -13,6 +13,7 @@ SRC_URI = "git://salsa.debian.org/debian/ifupdown.git;protocol=https \
13 file://0001-Define-FNM_EXTMATCH-for-musl.patch \ 13 file://0001-Define-FNM_EXTMATCH-for-musl.patch \
14 file://0001-Makefile-do-not-use-dpkg-for-determining-OS-type.patch \ 14 file://0001-Makefile-do-not-use-dpkg-for-determining-OS-type.patch \
15 file://run-ptest \ 15 file://run-ptest \
16 file://0001-ifupdown-skip-wrong-test-case.patch \
16 ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://tweak-ptest-script.patch', '', d)} \ 17 ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://tweak-ptest-script.patch', '', d)} \
17 " 18 "
18SRCREV = "c73226073e2b13970ca613b20a13b9c0253bf9da" 19SRCREV = "c73226073e2b13970ca613b20a13b9c0253bf9da"