summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-08 08:56:19 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-08 09:50:17 +0000
commitab58f075e3218dc1e7a62f95417c5f76149266e8 (patch)
tree0f029c27b111961ad7f20b552a0a08b76c82466b
parent770c63761a83a04f103720e8aa5fac2a895fac8c (diff)
tcwg_gnu-build.sh: Bisect by running only testsuites with new failures
Change-Id: If6bde929216475c988787993e59489f366af0c7c
-rw-r--r--round-robin.sh6
-rwxr-xr-xtcwg_gnu-build.sh19
2 files changed, 23 insertions, 2 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 87354ee8..0b105581 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -407,6 +407,12 @@ build_abe ()
git checkout -- lib/control.sh
fi
+ if true; then
+ # WORKAROUND abe patches being blocked on proper testing.
+ # Append, not overwrite runtestflags in abe.sh
+ sed -i -e 's/override_runtestflags=.*/override_runtestflags="$override_runtestflags $setting"/' abe.sh
+ fi
+
ccache -z
local target_opt=""
if [ x"${rr[target]}" != x"native" ]; then
diff --git a/tcwg_gnu-build.sh b/tcwg_gnu-build.sh
index 53886294..3dc983f9 100755
--- a/tcwg_gnu-build.sh
+++ b/tcwg_gnu-build.sh
@@ -54,6 +54,14 @@ case "$type_of_test" in
*) assert_with_msg "Unknown type_of_test: $type_of_test" false ;;
esac
+runtestflags=()
+if test_array testsuites; then
+ # shellcheck disable=SC2154
+ for i in "${testsuites[@]}"; do
+ runtestflags+=(--set "runtestflags=$i")
+ done
+fi
+
# Use baseline branches by default.
for c in ${rr[components]}; do
rr[${c}_branch]=${rr[${c}_branch]-baseline}
@@ -164,6 +172,13 @@ no_regression_p ()
>> $run_step_artifacts/results.regressions
fi
done
+
+ printf "extra_build_params=" > $run_step_artifacts/extra-bisect-params
+ local exp
+ while read exp; do
+ printf "++testsuites %s " $exp >> $run_step_artifacts/extra-bisect-params
+ done < <(cat $run_step_artifacts/results.compare2 \
+ | awk '/^Running .* \.\.\./ { print $2 }')
;;
esac
@@ -191,12 +206,12 @@ case "$type_of_test" in
run_step skip_on_fail -4 build_abe stage2
run_step skip_on_fail -3 build_abe qemu
run_step skip_on_fail 0 build_abe dejagnu
- run_step skip_on_fail 1 build_abe check_gcc
+ run_step skip_on_fail 1 build_abe check_gcc -- "${runtestflags[@]}"
;;
check_*)
run_step skip_on_fail -2 build_abe ${type_of_test#check_}
run_step skip_on_fail 0 build_abe dejagnu
- run_step skip_on_fail 1 build_abe ${type_of_test}
+ run_step skip_on_fail 1 build_abe ${type_of_test} -- "${runtestflags[@]}"
;;
*)
run_step skip_on_fail 0 true