ARG_DEV_USER=false
ARG_PRETEND=false
ARG_NOPKG=false
+ARG_AUTOTEST=false
ARG_VERBOSE=false
ARG_TEST=false
while [[ $# -ne 0 ]] ; do
-v) ARG_VERBOSE=true;;
-t) ARG_TEST=true;;
--nousepkg) ARG_NOPKG=true;;
+ --autotest) ARG_AUTOTEST=true;;
*) echo "unknown opt: $*"; exit 1;;
esac
shift
set -e
}
-tfe() { ($1 && echo $2 || :); }
+tfe() { ($1 && echo $2 || echo $3); }
mkdir -p "${IMAGES}"
rm -f "${IMAGES}"/log.*
--board=${BOARD} \
--nowithdebug \
--skip_chroot_upgrade \
- $(tfe ${ARG_NOPKG} --nousepkg) \
- $(tfe ${ARG_TEST} --withtest)
+ $(tfe ${ARG_AUTOTEST} --{,no}withautotest) \
+ $(tfe ${ARG_NOPKG} --{no,}usepkg) \
+ $(tfe ${ARG_TEST} --{,no}withtest)
BUILD_IMG="./build_image --board=${BOARD} --noenable_rootfs_verification $(tfe ${ARG_TEST} --test) dev"
run ${BUILD_IMG}