test_config.py 2.3 KB

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