summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta/recipes-devtools/valgrind/valgrind/run-ptest12
-rw-r--r--meta/recipes-devtools/valgrind/valgrind/taskset_nondeterministic_tests4
2 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/run-ptest b/meta/recipes-devtools/valgrind/valgrind/run-ptest
index 60d243276b..11050a8312 100755
--- a/meta/recipes-devtools/valgrind/valgrind/run-ptest
+++ b/meta/recipes-devtools/valgrind/valgrind/run-ptest
@@ -32,6 +32,13 @@ if [ "$arch" = "aarch64" ]; then
32 done 32 done
33fi 33fi
34 34
35echo "Run flaky tests using taskset to limit them to a single core."
36for i in `cat taskset_nondeterministic_tests`; do
37 taskset 0x00000001 perl tests/vg_regtest --valgrind=${VALGRIND_BIN} --valgrind-lib=${VALGRIND_LIBEXECDIR} --yocto-ptest $i 2>&1|tee ${LOG}
38 mv $i.vgtest $i.IGNORE
39done
40
41
35cd ${VALGRIND_LIB}/ptest && ./tests/vg_regtest \ 42cd ${VALGRIND_LIB}/ptest && ./tests/vg_regtest \
36 --valgrind=${VALGRIND_BIN} \ 43 --valgrind=${VALGRIND_BIN} \
37 --valgrind-lib=${VALGRIND_LIBEXECDIR} \ 44 --valgrind-lib=${VALGRIND_LIBEXECDIR} \
@@ -56,6 +63,11 @@ for i in `cat remove-for-all`; do
56 mv $i.IGNORE $i.vgtest; 63 mv $i.IGNORE $i.vgtest;
57done 64done
58 65
66echo "Restore flaky and other non-deterministic tests"
67for i in `cat taskset_nondeterministic_tests`; do
68 mv $i.IGNORE $i.vgtest;
69done
70
59echo "Failed test details..." 71echo "Failed test details..."
60failed_tests=`grep FAIL: ${LOG} | awk '{print $2}'` 72failed_tests=`grep FAIL: ${LOG} | awk '{print $2}'`
61for test in $failed_tests; do 73for test in $failed_tests; do
diff --git a/meta/recipes-devtools/valgrind/valgrind/taskset_nondeterministic_tests b/meta/recipes-devtools/valgrind/valgrind/taskset_nondeterministic_tests
new file mode 100644
index 0000000000..cf073fa927
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind/taskset_nondeterministic_tests
@@ -0,0 +1,4 @@
1helgrind/tests/hg05_race2
2helgrind/tests/tc09_bad_unlock
3drd/tests/bar_bad
4drd/tests/bar_bad_xml