diff options
| -rwxr-xr-x | meta/recipes-devtools/valgrind/valgrind/run-ptest | 12 | ||||
| -rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/taskset_nondeterministic_tests | 4 |
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 f37780ef6a..b563eb3567 100755 --- a/meta/recipes-devtools/valgrind/valgrind/run-ptest +++ b/meta/recipes-devtools/valgrind/valgrind/run-ptest | |||
| @@ -31,6 +31,13 @@ if [ "$arch" = "aarch64" ]; then | |||
| 31 | done | 31 | done |
| 32 | fi | 32 | fi |
| 33 | 33 | ||
| 34 | echo "Run flaky tests using taskset to limit them to a single core." | ||
| 35 | for i in `cat taskset_nondeterministic_tests`; do | ||
| 36 | taskset 0x00000001 perl tests/vg_regtest --valgrind=${VALGRIND_BIN} --valgrind-lib=${VALGRIND_LIBEXECDIR} --yocto-ptest $i 2>&1|tee ${LOG} | ||
| 37 | mv $i.vgtest $i.IGNORE | ||
| 38 | done | ||
| 39 | |||
| 40 | |||
| 34 | cd ${VALGRIND_LIB}/ptest && ./tests/vg_regtest \ | 41 | cd ${VALGRIND_LIB}/ptest && ./tests/vg_regtest \ |
| 35 | --valgrind=${VALGRIND_BIN} \ | 42 | --valgrind=${VALGRIND_BIN} \ |
| 36 | --valgrind-lib=${VALGRIND_LIB} \ | 43 | --valgrind-lib=${VALGRIND_LIB} \ |
| @@ -55,6 +62,11 @@ for i in `cat remove-for-all`; do | |||
| 55 | mv $i.IGNORE $i.vgtest; | 62 | mv $i.IGNORE $i.vgtest; |
| 56 | done | 63 | done |
| 57 | 64 | ||
| 65 | echo "Restore flaky and other non-deterministic tests" | ||
| 66 | for i in `cat taskset_nondeterministic_tests`; do | ||
| 67 | mv $i.IGNORE $i.vgtest; | ||
| 68 | done | ||
| 69 | |||
| 58 | echo "Failed test details..." | 70 | echo "Failed test details..." |
| 59 | failed_tests=`grep FAIL: ${LOG} | awk '{print $2}'` | 71 | failed_tests=`grep FAIL: ${LOG} | awk '{print $2}'` |
| 60 | for test in $failed_tests; do | 72 | for 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 @@ | |||
| 1 | helgrind/tests/hg05_race2 | ||
| 2 | helgrind/tests/tc09_bad_unlock | ||
| 3 | drd/tests/bar_bad | ||
| 4 | drd/tests/bar_bad_xml | ||
