This seems to happen occasionally when running tests locally.
BUG=None
TEST=presubmit
Change-Id: Ic4d28942913952241cf14412395504ed8ee7260b
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4518570
Auto-Submit: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Updates the riscv install script to use the debian ports repository
to install dependencies.
The container version is upreved to use the newly built image
that includes the changes in this CL.
BUG=b:280448021
TEST=dev_container run_tests -p riscv64
TEST=https://ci.chromium.org/swarming/task/61fca4b26ac4de10
Change-Id: I7dbfac56fd04c8fd9635c981c13dcfcbdad90bcc
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4500611
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Allow running riscv unit tests only. This required filtering out some
workspace projects that can't yet build on riscv because the backing
packages aren't installed. Aside from that and passing the new
`--no-default-features` flag to `run_tests`, this is mostly copy/paste
of aarch64 support.
TEST=./tools/run_tests -p riscv64 --no-default-features
TEST=./tools/presubmit unit_tests
Change-Id: If0f74f1bb6eb42e1fe24ad31f4c1aa06f7822f8c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4500729
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This is a refactoring with no functionality change. The common.py
file is split up so we will be able to use the parts that have no
third party dependencies separately.
For now, keep common.py and re-export everything, so we do not
introduce issues in other tools.
BUG=b:267499599
TEST=presubmit
Change-Id: Idf6d45bd90f5cf448fb9dd88df540af3da0f7f88
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4482141
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Because bullseye's cross packages for riscv64 are broken, libcap needs to
be manually built and installed, and pkg-config needs a hacky define to
allow minijail to find it. Other than that, it's very similar to the
other architectures.
Change-Id: I903f7ccd2ccbd94168ba09b425fd649458fdee70
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4460942
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Since we default to podman, we can get rid of the _user container and
run as root inside the container, which greatly simplifies the tooling.
This also allows us to provide a single, default devcontainer.json
for local development as well as codespaces.
podman can be used with this devcontainer.json as well, e.g. in
VSCode by setting:
"dev.containers.dockerPath": "podman"
The with_kvm/devcontainer.json can be used to add access to kvm, which
may not be available on all machines. So it's an optional config.
BUG=b:273529620
TEST=Open with devcontainer in VSCode with both docker and podman,
run `presubmit --no-delta`
TEST=tools/dev_container tools/presubmit --no-delta
Change-Id: I10e04898a0e1adb6e4939f6f2e0259dc9b9aa62d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4419666
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
This CL adds a new "root" test suite for trace_marker integration tests,
since the tests require root to run in order to access the kernel's
tracefs mounted partition.
BUG=b:273379306
TEST=CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER='sudo -E' cargo test --features=trace_marker
Change-Id: I4656374023d91d87959f6ce0d59eb9e51bdc77bd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4349039
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Auto-Submit: Morg <morg@chromium.org>
Commit-Queue: Morg <morg@chromium.org>
If we want to use the x86vm as a default, we may end up running
multiple instances, e.g one inside the container, another directly
on the host.
Make sure these do not conflict by picking a random port when
starting the VM.
BUG=b:275717656
TEST=x86vm shell - connects to previously started VM on port 9000
TEST=x86vm stop && x86vm up --wait - picks a random port
TEST=x86vm shell - connects to the randomly picked port
Change-Id: If5b1c24ac8c39259254f3fa388224f9c3dbbe1a9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4397208
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Makes the testvm CLI more intuitive, so we can start using the
x86vm as a default for running crosvm integration tests.
Modernizes the CLI output with colors and spinners for waiting.
Adds status and logs commands to aid debugging.
Improved `up` command to kill VMs if they do not become responsive.
Also merges the wait command into `up --wait`.
BUG=b:275717759
TEST=aarch64vm up && aarch64vm up --wait
TEST=aarch64vm stop && aarch64vm up --wait
TEST=testvm
TEST=aarch64vm logs
Change-Id: I82cf14cff19a0b01cda64718a24d170d564fdcd7
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4390731
Reviewed-by: Zihan Chen <zihanchen@google.com>
Simplifies the code and brings it in line with other
crosvm tooling.
BUG=b:275717759
TEST=x86vm run
TEST=x86vm up && x86vm wait
TEST=x86vm ssh
Change-Id: I88e21fca0e78eb76e611fdba7664e6b16f246d1e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4390730
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
The code has been written before we used argh. The CLI is specified
in tools/testvm. The implementation remains in impl/testvm.py so it
can be shared with run_tests.py for automatically managing the VM
when running tests.
BUG=b:275717759
TEST=x86vm run/up/wait/stop
TEST=run_tests --dut=vm
Change-Id: I2bdb554e7ed17a9f397fd8fb02f754e4ec1e52d7
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4390729
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
It has been stable and in-use for quite a while, so I decided to no
longer mark it as experimental.
A weekly Cloud Scheduler "cron" job is also setup (and tested) to
update the container every Saturday.
TEST=force run cloud scheduler job, will trigger workflow and create
a new and correctly-defined cloud build run. crosvm-infra/crosvm_cros_cloudbuild
shows up in container registry console after cloud run was finished.
FIXED=b:240692674
Change-Id: I8daf96c05354b24ce43f3b90cd8d59e50eedb129
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4400014
Commit-Queue: Zihan Chen <zihanchen@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Uprev to version available in Debian.
This seem to end up doing uprev to 1.3 now.
BUG=b:265082456
BUG=b:229895468
TEST=build
Change-Id: I550778acb675c9034b9cfcea77f4ae847e2d2ea1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4364559
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Auto-Submit: Junichi Uekawa <uekawa@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
The previous images were corrupted. This change uprevs the image
version and re-builds the images.
BUG=b:274167326
TEST=x86vm run
TEST=run_tests --dut vm
TEST=dev_container run_tests --dut vm
TEST=dev_container run_tests --dut vm -p aarch64
Change-Id: I926acf080ecf29c5d6979bcb714cb06e79159a14
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4377985
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
strace is used to capture seccomp profile during benchmark runs.
This CL also added /usr/lib/wine to PATH as debian has decided
to remove /usr/bin/wine64 alternative entry.
TEST=./tools/bench --log-seccomp --log-seccomp-output-dir /workspace/seccomp_result boot
TEST=./tools/run_tests --dut=host
BUG=b:258316090
Change-Id: Ie362149ef77474ad7d9c9ff918a990d386d7a5ff
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4358600
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Auto-Submit: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
This will allow devcontainer.json files to always use the latest
container without manually upreving the version.
BUG=b:273529589
TEST=open dev container in vscode
Change-Id: I71d58eb2936097bd81dfcc0872d362b2c6b9e388
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4341238
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
We occasionally see CI jobs fail due to network flakiness when
downloading prebuilts or the test vm image.
Retry both. This covers:
- Test VM images (i.e. the aarch64 vm image for testing)
- e2e_test guest images
- prebuilt libraries for win64 builds
BUG=b:248568518
TEST=dev_container tools/presubmit
TEST=dev_container --clean tools/presubmit
Change-Id: I8e5e185b17738182738bfcc4420890b925871fde
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4322030
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Replaces the set's with list's and uses dict.fromkeys to remove
duplicates while preseving the order of checks.
Also simplifies Group configuration by allowing groups to include
each other.
This allows us to configure the order of checks in CI more easily.
BUG=b:270390103
TEST=tools/presubmit --list-checks all
Change-Id: I06a24c27aa249fda11af9a5a712309d7c7e38341
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4303076
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Developers with `direnv` installed will have ./tools added to their
PATH automatically. Also adds it to the PATH in the dev container.
This reduces `tools/dev_container tools/presubmit` to
`dev_container presubmit`.
Note: Does not rebuild the container, the change can be picked
up at a later time.
BUG=None
TEST=cd crosvm
Change-Id: Ia57bd7bb1cf86df2b32d624d97a74518e8b5f423
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4305345
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Uses rustup to check if cross-compiliation for the targets are
installed.
Most commonly, this will warn when running tools/presubmit on glinux
and recommend to use tools/dev_container to run all checks.
BUG=b:271171619
TEST=tools/presubmit on glinux and with dev_container
Change-Id: I1f6739253a9c548b853be836ccc73dfd01602607
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4298630
Reviewed-by: Zihan Chen <zihanchen@google.com>
Auto-Submit: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Zihan Chen <zihanchen@google.com>
This new script merges tools/health-checks with tools/presubmit. It
can now execute checks in parallel and will run crosvm tests and
clippy for all platforms as well.
This reduces presubmit check time for "everything" on a clean state
from 6:30m to 2m.
Time to run checks after a no-op change to the base crate is 1m,
down from 3m.
The default set of checks is optimized to cover all platforms but
prevent blocking on the build cache. This allows it to complete
in ~30s on incremental builds.
Luci build recipes will be updated to use this script, to ensure
that CI and local checks are always in sync.
The old health-check script is forwarded to the new presubmit
script while CI is updated to use the new script.
BUG=b:254317173
TEST=tools/presubmit
Change-Id: Iafde602bab61dbd2ee2f5f74918dc182b2832d47
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4277625
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Reviewed-by: Vikram Auradkar <auradkar@google.com>
test_runner.py and test_target.py are mostly no longer needed. Some
common utility code has been moved to common.py
BUG=b:268530960
TEST=presubmit
Change-Id: I5f616cd4fdd496eae49adfcae80ad5472efc9562
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4289247
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
They are currently stored in a temporary directory, which is fine
locally, but will not be preserved between runs in CI. So each
CI build has to re-download the files.
BUG=b:254924880
TEST=tools/dev_container tools/x86_vm run
Change-Id: I49916887d5cb2d4c23c315a3d8ee369de1cba88f
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4287767
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Debian no longer allows us to install packages into the system
managed location.
So we are replacing the pip packages with the debian packaged
versions.
Also removes the wine64 hack which is no longer needed.
This allows us to build a new dev container again.
BUG=b:270568440
TEST=presubmit
Change-Id: I592ebf13bc566785fcdf4a4fa4badb3e11c8126e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4285744
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Switch to the ChromeOS v6.1 branch and regenerate all affected bindings
in the crosvm tree.
Some minor fixes were required in users of the bindings:
- KVM_SYSTEM_EVENT_RESET_FLAG_PSCI_RESET2 is available in the kernel now
and was removed from the manually-added section of kvm_sys.
- The KVM system_event now contains an anonymous union, requiring a few
renames.
- IORING_OP_* were moved into an enum, which required the enum name to
be prefixed to the uses of those values.
BUG=None
TEST=tools/presubmit --all
Change-Id: I84568fb76658832130e2e9a631495ba82fd4c3ed
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4285742
Reviewed-by: Elie Kheirallah <khei@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
- Rust toolchain is updated to 1.65.0
- Catapult dashboard upload tool is added to dev_container
- Bindgen is updated to latest version to support custom derive
- Derive Eq when PartialEq is derived as required by new Clippy
TEST=CQ, bindgen-all-the-things
FIXED=b:260784028
BUG=b:257303497
Change-Id: I2034cd09e0aed84d4e9b30f2e85d84d94a442ea4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4228427
Auto-Submit: Zihan Chen <zihanchen@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Zihan Chen <zihanchen@google.com>
We greatly improved the test health of crosvm which allows to
make better use of standard cargo tools instead of custom
tailored implementations for running tests.
The new test runner is available at tools/run_tests2 until it
fully replaces tools/run_tests.
The key difference is that tests are packaged into a tarball
to be executed remotely instead of sending and executing every
binary separately via SSH.
Improvements over the old test runner:
- Faster, nextest runs faster and the new model for remote testing
is a lot faster when running tests in a VM.
- Simpler, less custom code to maintain.
- More readable output, uses modern TUI functionality.
- Enables future workflows for testing on cloud devices running
in our luci infrastructure.
How much faster?
- Running all tests on host: 1m -> 9s
- Running all aarch64 tests in vm: 3m20s -> 32s
BUG=b:261600801
TEST=./tools/run_tests2 with args:
-p x86_64
-p x86_64 --dut=host
-p x86_64 --dut=vm
-p aarch64
-p aarch64 --dut=vm
-p armhf
-p mingw64
Change-Id: I842a0ac6f7b288aeccb112b4e2f46a15f3baf54b
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4144641
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Updates the code to be able to install multiple packages and show
a useful error message if pip is not available.
Rich will be used by future tools for prettier terminal output
of our tools, most importantly to be able to print status updates
of parallel presubmit checks.
BUG=b:239255137
TEST=uninstall python3-pip, removed all packages. Ran ./tools/cl
Change-Id: I50bfdf2bee279e6d6d02c7dd23131cba1fed2a8c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3824003
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
cross-compilation requires additional configuration that depends
heavily on the host platform. Unfortunately cargo cannot be
configured on a per host platform basis so this has to be done
manually.
Most developers are just using native compilation (and using
the containers for everything else). So we can slim our
install-deps scripts a bit.
To verify the updated install scripts, this change includes
containers to simulate a fresh developer workstation that
can be used to verify out of the box workflows.
BUG=b:262829206
BUG=b:265995780
BUG=b:265842137
TEST=tools/contrib/minimal_container/test-all.sh and CQ
Change-Id: I0e803d0224306e5351728e2c80fcbcd8260d029d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4179290
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
The testvm for x86 has not been used recently and was outdated.
To make it usable we need to resize the root partition and
install dependencies needed for some of x86 only tests to pass
(e.g. gcc for plugin tests).
BUG=b:264702133
TEST=./tools/x86vm ssh
Change-Id: Iabc03e7ca91595093da849008e2a88f89dbac862
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4144639
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Instead of configuring which crates to --exclude in
test_config.py, we can use conditional compilation to
exclude code that is not supported on windows.
This allows more fine-grained control and also allows
us to use plain cargo for building without complicated
configuration and exclusions.
BUG=b:265829867
TEST=cargo test --lib --bins --workspace
--target=x86_64-pc-windows-gnu
--features=all-mingw64
Change-Id: I8422c3f08053bc27d9896b220876a56bd25543d6
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4165868
Reviewed-by: Vikram Auradkar <auradkar@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Adds a fall-back to cros_fuzz when compiled without
fuzzing enabled that will just produce a main fn entrypoint
with the fuzzing code.
This allows the fuzzing code to be compiled, but won't produce
functional fuzzing binaries.
BUG=b:265829867
FIXES=b:244631591
TEST=crosvm CQ
cargo +nightly fuzz run --fuzz-dir crosvm-fuzz --features upstream-fuzz crosvm_block_fuzzer
Change-Id: Ib2602aab5c5373cb2a71dca0d8419640a00c6725
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4167143
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
Drop a few unused kvm dependencies and only require minijail on unix
platforms.
The aarch64 platform won't be functional on Windows yet, but it's at
least possible to drop it from the WIN64_DISABLED_CRATES list.
BUG=None
TEST=tools/dev_container tools/run_tests --platform=mingw64
TEST=tools/dev_container tools/run_tests --platform=aarch64
Change-Id: If48b935afe1295820b6d78cfde3e8634a3e397db
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4167144
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
It evaluates to '<function crosvm_target_dir at 0x7f6bbecaf880>'
which is obviously wrong.
TEST=CQ only
Change-Id: Ifaac4690d069685175653e6481adb1397d9c46b3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4149732
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Auto-Submit: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
We are planning to add developer tools/scripts for windows platform.
Some of these tools will be windows batch scripts, which don't play
well with lf line endings. The patch forces .bat files to have crlf
line ending.
BUG=b:264555939
TEST=none
Change-Id: I66773f924316c8596361e02aefa2fb368b43acac
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4143459
Commit-Queue: Vikram Auradkar <auradkar@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
We are trying to reuse dev container to run tests on linux downstream.
The patch makes the script to understand downstream repo layout.
BUG=b:263398717
TEST=ran on downstream bots and local machine
Change-Id: I194edc8099d51e707ca034f64e8813c4cab14f23
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4134589
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
We don't need the incremental setup as it's not helpful.
BUG=b:240692674
Change-Id: I7d4720bc56480c4b878415e1172b7df2617e8312
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4034379
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Zihan Chen <zihanchen@google.com>
The windows code is build only for now because
- crosvm upstream windows code needs some changes to be runnable
- LUCI windows infra is not ready for nested vm
BUG=b:253498690
TEST=ran `cargo t --features all-msvc64 -p e2e_tests` downstream
Change-Id: I318f6f17fc91bc76cfd28741a526193362ab4e50
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4096606
Commit-Queue: Vikram Auradkar <auradkar@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This tools allow us to convert fuchsiaperf formated benchmark
results to catapult dashboard's HistogramSet format.
BUG=b:257303497
TEST=Generate LGTM result from sample fuchsiaperf file in their doc
Change-Id: Iae7ce36a8444bdb436a6126939f6d50997dedf5e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4084425
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Zihan Chen <zihanchen@google.com>
This allows tests to see environment variables specified by the
developer.
BUG=None
TEST=presubmit
Change-Id: I3a12e0652d5bdc68cad937cda66dc5a7bfc61526
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4082147
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
The tests will not work at runtime when using the stub
implementation.
This replaces the DO_NOT_RUN test option.
BUG=None
TEST=run_tests
Change-Id: Iabab40c70136945b377040712692dae258b4461c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4072745
Auto-Submit: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Testing tap functionality requires root privileges. The crosvmdev
user of our dev_container is set up for passwordless sudo, so we can
seamlessly execute these tests via sudo.
For running on the developer workstation directly, this will prompt
for a password, which is disruptive to workflows. The --no-root
option can be used to prevent this and skip the tests in question.
BUG=None
TEST=tools/run_tests [--no-root]
Change-Id: I731887837affceb76152466f0006c4ee51a19234
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4063237
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Now we are using markdown tables in our docs, and mdformat without
extension will do horrible things to them as tables is a GitHub
Flavored Markdown extension.
TEST=./tools/dev_container ./tools/fmt
Change-Id: I735284136a87ea17752bd6732885ff1f4f58a3f4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4026017
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Auto-Submit: Zihan Chen <zihanchen@google.com>