--autotest Build & install autotest packages.
--factory Build factory packages & image.
--nousepkg Force build from source.
- --vm Create VM image.
--clean ?
ARG_FACTORY=false
ARG_VERBOSE=false
ARG_TEST=false
-ARG_VM=false
while [[ $# -ne 0 ]] ; do
case $1 in
--clean) ARG_CLEAN=true;;
--nousepkg) ARG_NOPKG=true;;
--autotest) ARG_AUTOTEST=true;;
--factory) ARG_FACTORY=true;;
- --vm) ARG_VM=true;;
-h) usage;;
*) echo "unknown opt: $*"; exit 1;;
esac
sync &
fi
-IMG_TO_VM=( ${d}/image_to_vm.sh --board=${BOARD} --from=${BUILD_DIR}/images/${BOARD}/latest --test_image )
-if ${ARG_VM} ; then
- run "${IMG_TO_VM[@]}"
-fi
-
cd "${IMAGES}"
rm -rf $(ls -td1R `find -mindepth 1 -maxdepth 1 -type d` | sed -e 1d -e 2d)
${IMG_TO_USB}
### KVM
-${IMG_TO_VM[*]}
-~/chromiumos/chromite/bin/cros_vm --start --no-display --image-path=\${HOME}/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin
+~/chromiumos/chromite/bin/cros_vm --board=${BOARD} --start --no-display --image-path=\${HOME}/chromiumos/src/build/images/${BOARD}/latest/chromiumos_test_image.bin
#--kvm_cpu "max,vmx=on"
https://dev.chromium.org/chromium-os/testing/running-smoke-suite-on-a-vm-image