| # Copyright 2018 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| import("//build/image/image.gni") |
| |
| # Service to expose race conditions when running a vcpu. |
| source_set("check_state") { |
| testonly = true |
| public_configs = [ "//test/hftest:hftest_config" ] |
| |
| sources = [ |
| "check_state.c", |
| ] |
| |
| deps = [ |
| "//src/arch/aarch64/hftest:state", |
| ] |
| } |
| |
| # Service to listen for messages and echo them back to the sender. |
| source_set("echo") { |
| testonly = true |
| public_configs = [ "//test/hftest:hftest_config" ] |
| |
| sources = [ |
| "echo.c", |
| ] |
| } |
| |
| # Service that can be interrupted. |
| source_set("interruptible") { |
| testonly = true |
| public_configs = [ |
| "..:config", |
| "//test/hftest:hftest_config", |
| ] |
| |
| sources = [ |
| "interruptible.c", |
| ] |
| |
| deps = [ |
| "//src/arch/aarch64/hftest:interrupts_gicv3", |
| ] |
| } |
| |
| # Service to listen for messages and forward them on to another. |
| source_set("relay") { |
| testonly = true |
| public_configs = [ "//test/hftest:hftest_config" ] |
| |
| sources = [ |
| "relay.c", |
| ] |
| } |
| |
| # Group services together into VMs. |
| |
| vm_kernel("service_vm0") { |
| testonly = true |
| |
| deps = [ |
| ":check_state", |
| ":echo", |
| ":interruptible", |
| ":relay", |
| "//test/hftest:hftest_secondary_vm", |
| ] |
| } |
| |
| vm_kernel("service_vm1") { |
| testonly = true |
| |
| deps = [ |
| ":relay", |
| "//test/hftest:hftest_secondary_vm", |
| ] |
| } |