blob: 83622bc20f14ba7e2ad3a31726bb62f213503dc0 [file] [log] [blame]
Andrew Scullaf5e53e2018-07-23 19:19:46 +01001import("//build/image/image.gni")
Andrew Sculla158e912018-07-16 11:32:13 +01002
Andrew Scull04502e42018-09-03 14:54:52 +01003group("tests") {
4 testonly = true
5
6 deps = [
7 ":unit_tests",
8 ":vm_tests",
9 ]
10}
11
12group("unit_tests") {
13 testonly = true
14
15 deps = [
16 "//src:unit_tests($mock_toolchain)",
17 ]
18}
19
20group("vm_tests") {
Andrew Scullaf5e53e2018-07-23 19:19:46 +010021 testonly = true
22
23 deps = [
24 ":hypervisor",
Andrew Scull4b6c2fc2018-10-05 18:14:02 +010025 "//test/vm/:primary_only_test($arch_toolchain)",
26 "//test/vm/:primary_with_secondaries_test($arch_toolchain)",
Andrew Scullaf5e53e2018-07-23 19:19:46 +010027 ]
28}
29
30group("hypervisor") {
Andrew Sculla158e912018-07-16 11:32:13 +010031 deps = [
32 ":hafnium($arch_toolchain)",
33 ]
34}
35
Andrew Sculla158e912018-07-16 11:32:13 +010036# Only build the image for the arch
37if (current_toolchain == arch_toolchain) {
38 hypervisor("hafnium") {
39 deps = [
40 "//src",
41 "//src/arch/${arch}",
42 ]
43 }
44}