Andrew Scull | af5e53e | 2018-07-23 19:19:46 +0100 | [diff] [blame] | 1 | import("//build/image/image.gni") |
Andrew Scull | a158e91 | 2018-07-16 11:32:13 +0100 | [diff] [blame] | 2 | |
Andrew Scull | 04502e4 | 2018-09-03 14:54:52 +0100 | [diff] [blame^] | 3 | group("tests") { |
| 4 | testonly = true |
| 5 | |
| 6 | deps = [ |
| 7 | ":unit_tests", |
| 8 | ":vm_tests", |
| 9 | ] |
| 10 | } |
| 11 | |
| 12 | group("unit_tests") { |
| 13 | testonly = true |
| 14 | |
| 15 | deps = [ |
| 16 | "//src:unit_tests($mock_toolchain)", |
| 17 | ] |
| 18 | } |
| 19 | |
| 20 | group("vm_tests") { |
Andrew Scull | af5e53e | 2018-07-23 19:19:46 +0100 | [diff] [blame] | 21 | testonly = true |
| 22 | |
| 23 | deps = [ |
| 24 | ":hypervisor", |
Andrew Scull | f35a5c9 | 2018-08-07 18:09:46 +0100 | [diff] [blame] | 25 | "//test/vm/primary_only:primary_only_test($arch_toolchain)", |
| 26 | "//test/vm/primary_with_secondary:primary_with_secondary_test($arch_toolchain)", |
Andrew Scull | af5e53e | 2018-07-23 19:19:46 +0100 | [diff] [blame] | 27 | ] |
| 28 | } |
| 29 | |
| 30 | group("hypervisor") { |
Andrew Scull | a158e91 | 2018-07-16 11:32:13 +0100 | [diff] [blame] | 31 | deps = [ |
| 32 | ":hafnium($arch_toolchain)", |
| 33 | ] |
| 34 | } |
| 35 | |
Andrew Scull | a158e91 | 2018-07-16 11:32:13 +0100 | [diff] [blame] | 36 | # Only build the image for the arch |
| 37 | if (current_toolchain == arch_toolchain) { |
| 38 | hypervisor("hafnium") { |
| 39 | deps = [ |
| 40 | "//src", |
| 41 | "//src/arch/${arch}", |
| 42 | ] |
| 43 | } |
| 44 | } |