summaryrefslogtreecommitdiff
path: root/abe-bisect.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-10-18 21:48:55 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-10-18 21:48:55 +0000
commit16d3231e23f061422c1dcc6108df00e642eb6312 (patch)
tree13aa1d8162d46d0e90ae8912d9d41fca0643b96c /abe-bisect.sh
parent8a3aad049648cb06af91b56ed2c374518039004a (diff)
abe-bisect.sh, abe-bisect-helper.sh: Add support for CPU,FPU,MODE.
Add support for the CPU,FPU and MODE overrides via the new ABE option: --set gcc_override_configure=XXX Change-Id: I14e55ac6c236478583cb10363d68286a9a4d6805
Diffstat (limited to 'abe-bisect.sh')
-rwxr-xr-xabe-bisect.sh28
1 files changed, 26 insertions, 2 deletions
diff --git a/abe-bisect.sh b/abe-bisect.sh
index 8ce6250d..7c751726 100755
--- a/abe-bisect.sh
+++ b/abe-bisect.sh
@@ -68,9 +68,27 @@ echo BAD: $BADSHA1
[ x"$GOODSHA1" = x ] && echo "ERROR: Could not find good commit ($GOOD)" && exit 1
[ x"$BADSHA1" = x ] && echo "ERROR: Could not find bad commit ($BAD)" && exit 1
+# Build list of gcc configure options depending on cpu/fpu/mode
+GCC_OVERRIDE_CONFIGURE=
+if [ x"${CPU}" != x ]; then
+ GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-cpu=${CPU}"
+fi
+if [ x"${FPU}" != x ]; then
+ GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-fpu=${FPU}"
+fi
+if [ x"${MODE}" != x ]; then
+ GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-mode=${MODE}"
+fi
+
# Sanity checks on the number of passes/fails in GOOD and BAD
pushd ${rundir}
-${ABE}/abe.sh --target ${TARGET} gcc=gcc.git@${GOODSHA1} --set runtestflags="${EXP}=${TESTNAME}" --build all --check gcc --excludecheck gdb >& gcc-${GOODSHA1}.log
+${ABE}/abe.sh --target ${TARGET} \
+ gcc=gcc.git@${GOODSHA1} \
+ --set runtestflags="${EXP}=${TESTNAME}" \
+ ${GCC_OVERRIDE_CONFIGURE} \
+ --build all \
+ --check gcc \
+ --excludecheck gdb >& gcc-${GOODSHA1}.log
if [ $? -ne 0 ]; then
echo "ERROR: failure while building/testing GOOD ($GOOD}"
exit 1
@@ -80,7 +98,13 @@ sums=`find builds/*/${TARGET}/gcc.git~master_rev_${GOODSHA1}-stage2/ -name "*.su
good_nb_fail=$(grep ${TESTNAME} $sums | grep -c FAIL)
good_nb_pass=$(grep ${TESTNAME} $sums | grep -c PASS)
-${ABE}/abe.sh --target ${TARGET} gcc=gcc.git@${BADSHA1} --set runtestflags="${EXP}=${TESTNAME}" --build all --check gcc --excludecheck gdb >& gcc-${BADSHA1}.log
+${ABE}/abe.sh --target ${TARGET} \
+ gcc=gcc.git@${BADSHA1} \
+ --set runtestflags="${EXP}=${TESTNAME}" \
+ ${GCC_OVERRIDE_CONFIGURE} \
+ --build all \
+ --check gcc \
+ --excludecheck gdb >& gcc-${BADSHA1}.log
if [ $? -ne 0 ]; then
echo "ERROR: failure while building/testing BAD ($BAD}"
exit 1