crosvm/tools/impl/test_config.py
Federico 'Morg' Pareschi 2e93874a25 cros_tracing: Add trace_marker integration tests
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>
2023-04-12 01:21:39 +00:00

48 lines
1.3 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",
}
# 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)",
]