aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2015-10-29 10:03:05 +0900
committerAKASHI Takahiro <takahiro.akashi@linaro.org>2015-10-30 16:17:27 +0900
commitc8bcd99fb66dca3c25f1ee414b9d140851aef88d (patch)
tree849474e37bbe002fd878c3d786071b68de6029f6
parent802ffbf5aa598de52e81151ce7743b5511004cd3 (diff)
downloadkbuildtest-c8bcd99fb66dca3c25f1ee414b9d140851aef88d.tar.gz
give a better view of verbose information, in particular, patch list
For example, $ kbuildtest.sh -v HEAD^ ... Commits: [1/1] ca1e96d arm64: ftrace: add arch-specific stack tracer ...
-rwxr-xr-xkbuildtest.sh30
1 files changed, 21 insertions, 9 deletions
diff --git a/kbuildtest.sh b/kbuildtest.sh
index 15e01b9..9f851a1 100755
--- a/kbuildtest.sh
+++ b/kbuildtest.sh
@@ -162,20 +162,33 @@ function parse_args() {
else
OFLAGS=${OFLAGS//,/ }
fi
-
- ${ECHO} "ARCH:" ${ARCH}
- ${ECHO} "CC: " ${CROSS_COMPILE}gcc
}
function check_patches {
# echo doing git log --format=%h ${COMMIT}..HEAD
- PATCHLIST=$(git log --format=%h ${COMMIT}..HEAD 2> /dev/null)
+ PATCHLIST=$(git log --format=%h ${COMMIT}..HEAD 2> /dev/null | xargs echo)
if [ $? -ne 0 ] || [ -z "${PATCHLIST}" ]
then
echo doubious commit: ${COMMIT}
exit 2
fi
- ${ECHO} "Commits: " ${PATCHLIST}
+}
+
+function show_info {
+ ${ECHO} "ARCH:" ${ARCH}
+ ${ECHO} "CC: " ${CROSS_COMPILE}gcc
+
+ ${ECHO} "Log dir: " ${LOGDIR}
+ ${ECHO} "Build dir:" ${BUILDDIR}
+
+ if [ -n "${vflag}" ]
+ then
+ n=$(echo ${PATCHLIST} | wc -w)
+ echo "Commits:"
+ git log --oneline --reverse ${COMMIT}..HEAD | \
+ awk "BEGIN {i=1} {printf \" [%d/%d] %s\n\", i, $n, \$p; i++}"
+ fi
+ ${ECHO} ======
}
function setup_env {
@@ -186,10 +199,6 @@ function setup_env {
mkdir ${LOGDIR}
mkdir ${BUILDDIR}
-
- ${ECHO} "Log dir: " ${LOGDIR}
- ${ECHO} "Build dir:" ${BUILDDIR}
- ${ECHO} ======
}
function save_env {
@@ -206,6 +215,7 @@ function save_env {
echo BUILDDIR=${BUILDDIR} >> ${PARAMFILE}
echo OFLAGS=\"${OFLAGS}\" >> ${PARAMFILE}
echo COMMIT=${COMMIT} >> ${PARAMFILE}
+ echo PATCHLIST=\"${PATCHLIST}\" >> ${PARAMFILE}
}
function do_combo {
@@ -403,6 +413,8 @@ else
mv ${LOGDIR}/results ${LOGDIR}/results.old > /dev/null 2>&1
fi
+show_info
+
run_build_test_loop
exit 0