test_manager_lib/
constants.rs1use std::collections::HashMap;
6use std::sync::LazyLock;
7
8pub const TEST_ROOT_REALM_NAME: &'static str = "test_root";
9pub const TEST_ROOT_COLLECTION: &'static str = "test";
10pub const WRAPPER_REALM_NAME: &'static str = "test_wrapper";
11pub const HERMETIC_RESOLVER_REALM_NAME: &'static str = "hermetic_resolver";
12
13pub const KERNEL_DEBUG_DATA_FOR_SCP: &'static str = "/tmp/kernel_debug";
14pub const DEBUG_DATA_FOR_SCP: &'static str = "/tmp/debug";
15pub const ISOLATED_TMP: &'static str = "/tmp/isolated";
16
17pub const CUSTOM_ARTIFACTS_CAPABILITY_NAME: &'static str = "custom_artifacts";
18
19pub const TEST_ENVIRONMENT_NAME: &'static str = "test-env";
21pub const HERMETIC_TESTS_COLLECTION: &'static str = "tests";
22pub const SYSTEM_TESTS_COLLECTION: &'static str = "system-tests";
23pub const VULKAN_TESTS_COLLECTION: &'static str = "vulkan-tests";
24pub const CHROMIUM_TESTS_COLLECTION: &'static str = "chromium-tests";
25pub const CHROMIUM_SYSTEM_TESTS_COLLECTION: &'static str = "chromium-system-tests";
26pub const GOOGLE_TESTS_COLLECTION: &'static str = "google-tests";
27
28pub static TEST_TYPE_REALM_MAP: LazyLock<HashMap<&'static str, &'static str>> =
29 LazyLock::new(|| {
30 [
31 ("hermetic", HERMETIC_TESTS_COLLECTION),
32 ("chromium", CHROMIUM_TESTS_COLLECTION),
33 ("chromium-system", CHROMIUM_SYSTEM_TESTS_COLLECTION),
34 ("google", GOOGLE_TESTS_COLLECTION),
35 ("system", SYSTEM_TESTS_COLLECTION),
36 ("vulkan", VULKAN_TESTS_COLLECTION),
37 ]
38 .iter()
39 .copied()
40 .collect()
41 });