blob: 622f91e13971d6b019d92538b47e92ba1cb7567b [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 Scullf35a5c92018-08-07 18:09:46 +010025 "//test/vm/primary_only:primary_only_test($arch_toolchain)",
26 "//test/vm/primary_with_secondary:primary_with_secondary_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}