}
run_compilebench() {
-
-# Space estimation:
-# compile dir kernel-1 680MB
-# required space 680MB * cbench_IDIRS = ~1.4 Gb
+ # Space estimation:
+ # compile dir kernel-0 ~1GB
+ # required space ~1GB * cbench_IDIRS
cbench_DIR=${cbench_DIR:-""}
cbench_IDIRS=${cbench_IDIRS:-2}
[ -e $cbench_DIR/compilebench ] || \
{ skip_env "No compilebench build" && return; }
- local space=$(df -P $DIR | tail -n 1 | awk '{ print $4 }')
- if [ $space -le $((680 * 1024 * cbench_IDIRS)) ]; then
- cbench_IDIRS=$(( space / 680 / 1024))
- [ $cbench_IDIRS = 0 ] && \
- skip_env "Need free space atleast 680 Mb, have $space" && return
+ local space=$(df -P $DIR | tail -n 1 | awk '{ print $4 }')
+ if [[ $space -le $((1024 * 1024 * cbench_IDIRS)) ]]; then
+ cbench_IDIRS=$((space / 1024 / 1024))
+ [[ $cbench_IDIRS -eq 0 ]] &&
+ skip_env "Need free space at least 1GB, have $space" &&
+ return
+
+ echo "free space=$space, reducing initial dirs to $cbench_IDIRS"
+ fi
- log free space=$space, reducing initial dirs to $cbench_IDIRS
- fi
# FIXME:
# t-f _base needs to be modifyed to set properly tdir
# for new "test_foo" functions names