summaryrefslogtreecommitdiff
path: root/tcwg_gnu-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg_gnu-build.sh')
-rwxr-xr-xtcwg_gnu-build.sh19
1 files changed, 17 insertions, 2 deletions
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