• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The ChromiumOS Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from typing import Dict
6
7BUILD_FEATURES: Dict[str, str] = {
8    "x86_64-unknown-linux-gnu": "linux-x86_64",
9    "aarch64-unknown-linux-gnu": "linux-aarch64",
10    "armv7-unknown-linux-gnueabihf": "linux-armhf",
11    "x86_64-pc-windows-gnu": "win64",
12    "x86_64-pc-windows-msvc": "win64",
13}
14
15# Do not build these on riscv64. They don't yet have riscv64 support of the backing libraries in the
16# dev container.
17DO_NOT_BUILD_RISCV64 = [
18    "libvda",
19    "libva",
20    "ffmpeg",
21    "vmm_vhost",
22    "system_api",
23    "gpu_display",
24]
25
26# Configuration of integration tests
27#
28# The configuration below only applies to integration tests to fine tune which tests can be run
29# on which platform (e.g. aarch64 emulation does not pass kvm tests).
30#
31# This configuration does NOT apply to unit tests.
32
33# List of integration tests that will ask for root privileges.
34ROOT_TESTS = [
35    "package(e2e_tests) & binary(pci_hotplug)",
36    "package(e2e_tests) & binary(swap)",
37    "package(net_util) & binary(unix_tap)",
38    "package(cros_tracing) & binary(trace_marker)",
39    "package(swap) & binary(page_handler)",
40    "package(swap) & binary(main)",
41    "package(ext2) & binary(tests)",
42]
43
44# Do not run these tests on any platform.
45DO_NOT_RUN = [
46    "package(io_uring)",
47]
48
49# Do not run these tests for aarch64 builds
50DO_NOT_RUN_AARCH64 = [
51    "package(hypervisor)",
52    "package(e2e_tests)",
53    "package(kvm)",
54]
55
56# Do not run these tests for win64 builds
57DO_NOT_RUN_WIN64 = [
58    "package(e2e_tests)",
59]
60
61# Do not run these tests for win64 build on linux with wine64 runner.
62DO_NOT_RUN_WINE64 = [
63    "package(crosvm) and test(sigterm_signals_exit_event)",
64    "package(crosvm) and test(test_forwarding_loops)",
65    "package(base) and test(get_allocated_ranges_for_empty_file)",
66    "package(base) and test(get_allocated_ranges_for_fully_allocated_file)",
67    "package(base) and test(get_allocated_ranges_for_file_with_one_hole)",
68    "package(base) and test(get_allocated_ranges_for_file_with_many_hole)",
69    "package(gpu_display) & test(can_create_2_window_proc_threads)",
70    "package(gpu_display) & test(user_event_handler_can_call_into_wndproc)",
71]
72
73# Avoid e2e tests and benchmarks to be automatically included as unit tests
74E2E_TESTS = [
75    "package(e2e_tests)",
76]
77