crosvm/tools/impl/test_config.py
Dylan Reid 965f99a72a tools: Add riscv platform
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>
2023-05-03 16:50:25 +00:00

61 lines
1.5 KiB
Python
Executable file

# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from typing import Dict
BUILD_FEATURES: Dict[str, str] = {
"x86_64-unknown-linux-gnu": "linux-x86_64",
"aarch64-unknown-linux-gnu": "linux-aarch64",
"armv7-unknown-linux-gnueabihf": "linux-armhf",
"x86_64-pc-windows-gnu": "win64",
"x86_64-pc-windows-msvc": "win64",
}
# Do not build these on riscv64. They don't yet have riscv64 support of the backing libraries in the
# dev container.
DO_NOT_BUILD_RISCV64 = [
"tpm2",
"tpm2-sys",
"libvda",
"libva",
"ffmpeg",
"vmm_vhost",
"system_api",
"gpu_display",
]
# Configuration of integration tests
#
# The configuration below only applies to integration tests to fine tune which tests can be run
# on which platform (e.g. aarch64 emulation does not pass kvm tests).
#
# This configuration does NOT apply to unit tests.
# List of integration tests that will ask for root privileges.
ROOT_TESTS = [
"package(net_util) & binary(unix_tap)",
"package(cros_tracing) & binary(trace_marker)",
]
# Do not run these tests on any platform.
DO_NOT_RUN = [
"package(io_uring)",
]
# Do not run these tests for aarch64 builds
DO_NOT_RUN_AARCH64 = [
"package(hypervisor)",
"package(e2e_tests)",
"package(kvm)",
]
# Do not run these tests for win64 builds
DO_NOT_RUN_WIN64 = [
"package(e2e_tests)",
]
# Avoid e2e tests and benchmarks to be automatically included as unit tests
E2E_TESTS = [
"package(e2e_tests)",
]