This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
crosvm
Watch
1
Star
0
Fork
You've already forked crosvm
0
mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced
2024-11-25 13:23:08 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
335aaf6ad2
crosvm
/
tools
/
x86vm
3 lines
76 B
Text
Raw
Normal View
History
Unescape
Escape
Add testvm.py tool for managing test VMs The script can be used to run VMs to test crosvm in a controlled environment, and most importantly, to test crosvm on aarch64. This will eventually replace the current Docker based VM setup process and will be integrated into our test runner to allow aarch64 test runs without using Docker. Run `/tools/aarch64vm` for usage instructions. Note: I will make a follow-up change to consolidate all of our dev tools and scripts (e.g. clippy or rustfmt) in the tools directory. BUG=b:200562467 TEST= ./tools/aarch64vm ssh ./tools/x86vm ssh Change-Id: Idef8256bf6737b2915912984a44240ba39c6bc2f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3176381 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2021-09-22 17:21:27 +00:00
#!/usr/bin/env bash
testvm: Use prebuilts instead of building on-the-fly We need to download a base image anyway, so we might as well make that a full prebuilt of our VM image. This makes the initial startup of ./tools/aarch64vm significantly faster. It also makes it easier to add the prebuilt into a Docker dev container later. Also move the VM data into the cargo target dir so we do not dirty the src dir. A Makefile for building and uploading the prebuilt has been added. This change also moved the testvm code from ./tools/testvm into ./tools/impl so the python code can be shared with future scripts (relative imports from other folders are tricky in Python). BUG=b:199951064 TEST=./tools/aarch64vm ssh Change-Id: I3fb57bfb8f7330b765e9be5ded821615ecddd841 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3221704 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2021-10-13 23:07:16 +00:00
python3 $(dirname $0)/impl/testvm.py --arch=x86_64 "$@"
Reference in a new issue
Copy permalink