summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-12-14 10:10:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-09 09:17:16 +0000
commit7c893b2001c454aeddd8b5c86873cdaa7bbbdec3 (patch)
treea110607fdb2ddae88d91a8694dbfce4ff7089f55 /meta
parentb595fab7afbcedd7c8bbc2ec86955c77e12abc45 (diff)
downloadpoky-7c893b2001c454aeddd8b5c86873cdaa7bbbdec3.tar.gz
valgrind: exclude bar_bad/bar_bad_xml from ptests
The tests' output is non-deterministic and sometimes doesn't match the sample output. This has been reported at https://bugs.kde.org/show_bug.cgi?id=430321 (see also an earlier related bug https://bugs.kde.org/show_bug.cgi?id=358213) Until upstream figures out how to fix this, let's not run the tests. (From OE-Core rev: c29662d34afe653e08516898324f73182957aa30) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 7f7d2fa18267090891754d976cbc3e628324d3dd) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind/remove-for-aarch642
-rw-r--r--meta/recipes-devtools/valgrind/valgrind/remove-for-all2
-rwxr-xr-xmeta/recipes-devtools/valgrind/valgrind/run-ptest10
-rw-r--r--meta/recipes-devtools/valgrind/valgrind_3.15.0.bb2
4 files changed, 14 insertions, 2 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64 b/meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64
index a3a0c6e50f..93bfd45a4e 100644
--- a/meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64
+++ b/meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64
@@ -31,8 +31,6 @@ drd/tests/annotate_static
31drd/tests/annotate_trace_memory 31drd/tests/annotate_trace_memory
32drd/tests/annotate_trace_memory_xml 32drd/tests/annotate_trace_memory_xml
33drd/tests/atomic_var 33drd/tests/atomic_var
34drd/tests/bar_bad
35drd/tests/bar_bad_xml
36drd/tests/bar_trivial 34drd/tests/bar_trivial
37drd/tests/bug-235681 35drd/tests/bug-235681
38drd/tests/bug322621 36drd/tests/bug322621
diff --git a/meta/recipes-devtools/valgrind/valgrind/remove-for-all b/meta/recipes-devtools/valgrind/valgrind/remove-for-all
new file mode 100644
index 0000000000..d6a85c4735
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind/remove-for-all
@@ -0,0 +1,2 @@
1drd/tests/bar_bad
2drd/tests/bar_bad_xml
diff --git a/meta/recipes-devtools/valgrind/valgrind/run-ptest b/meta/recipes-devtools/valgrind/valgrind/run-ptest
index 97b0a85dbf..7217dfca5d 100755
--- a/meta/recipes-devtools/valgrind/valgrind/run-ptest
+++ b/meta/recipes-devtools/valgrind/valgrind/run-ptest
@@ -17,6 +17,12 @@ EXP_TOOLS="exp-bbv exp-dhat exp-sgcheck"
17GDB_BIN=@bindir@/gdb 17GDB_BIN=@bindir@/gdb
18cd ${VALGRIND_LIB}/ptest && ./gdbserver_tests/make_local_links ${GDB_BIN} 18cd ${VALGRIND_LIB}/ptest && ./gdbserver_tests/make_local_links ${GDB_BIN}
19 19
20echo "Hide valgrind tests that are non-deterministic"
21echo "Reported at https://bugs.kde.org/show_bug.cgi?id=430321"
22for i in `cat remove-for-all`; do
23 mv $i.vgtest $i.IGNORE;
24done
25
20arch=`arch` 26arch=`arch`
21if [ "$arch" = "aarch64" ]; then 27if [ "$arch" = "aarch64" ]; then
22 echo "Aarch64: Hide valgrind tests that result in defunct process and then out of memory" 28 echo "Aarch64: Hide valgrind tests that result in defunct process and then out of memory"
@@ -44,6 +50,10 @@ if [ "$arch" = "aarch64" ]; then
44 done 50 done
45fi 51fi
46 52
53echo "Restore valgrind tests that are non-deterministc"
54for i in `cat remove-for-all`; do
55 mv $i.IGNORE $i.vgtest;
56done
47 57
48passed=`grep PASS: ${LOG}|wc -l` 58passed=`grep PASS: ${LOG}|wc -l`
49failed=`grep FAIL: ${LOG}|wc -l` 59failed=`grep FAIL: ${LOG}|wc -l`
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb
index a764d18177..e16a58fc62 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb
@@ -16,6 +16,7 @@ SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \
16 file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \ 16 file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \
17 file://run-ptest \ 17 file://run-ptest \
18 file://remove-for-aarch64 \ 18 file://remove-for-aarch64 \
19 file://remove-for-all \
19 file://0004-Fix-out-of-tree-builds.patch \ 20 file://0004-Fix-out-of-tree-builds.patch \
20 file://0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch \ 21 file://0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch \
21 file://0001-Remove-tests-that-fail-to-build-on-some-PPC32-config.patch \ 22 file://0001-Remove-tests-that-fail-to-build-on-some-PPC32-config.patch \
@@ -171,6 +172,7 @@ do_install_ptest() {
171 # The scripts reference config.h so add it to the top ptest dir. 172 # The scripts reference config.h so add it to the top ptest dir.
172 cp ${B}/config.h ${D}${PTEST_PATH} 173 cp ${B}/config.h ${D}${PTEST_PATH}
173 install -D ${WORKDIR}/remove-for-aarch64 ${D}${PTEST_PATH} 174 install -D ${WORKDIR}/remove-for-aarch64 ${D}${PTEST_PATH}
175 install -D ${WORKDIR}/remove-for-all ${D}${PTEST_PATH}
174 176
175 # Add an executable need by none/tests/bigcode 177 # Add an executable need by none/tests/bigcode
176 mkdir ${D}${PTEST_PATH}/perf 178 mkdir ${D}${PTEST_PATH}/perf