Add an option to test-builds.sh to emit dots
to enable tracking progress in the test without
being fully verbose
In the context of the build farm, this will save storage
and bandwidth on the build nodes, while still showing
issues if anything were to occur, and showing whether
progress is being made or a build is stuck.
verbose="yes"
shift
;;
+ --progress)
+ verbose="progress"
+ shift
+ ;;
--keep-going)
keepGoing="yes"
shift
done
logtee() {
- if [ $verbose = yes ]; then
- tee $1
- else
- cat >$1
- fi
+ case $verbose in
+ yes)
+ tee $1
+ ;;
+ progress)
+ tee $1 | awk '{printf "."; n++; if (!(n % 80)) print "" } END {print ""}'
+ ;;
+ *)
+ cat >$1
+ esac
}
buildtest() {