From c7b3941c9653b9860c932134dc391586ba921e8a Mon Sep 17 00:00:00 2001 From: Manabu Sugimoto Date: Tue, 31 May 2022 16:24:39 +0900 Subject: [PATCH] runk: Enable test for the agent built with standard-oci-runtime feature This enables tests for the kata-agent for runk that is built with standard-oci-runtime feature in CI. Fixes: #4351 Signed-off-by: Manabu Sugimoto --- src/tools/runk/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tools/runk/Makefile b/src/tools/runk/Makefile index 580aa39a0..420de1b38 100644 --- a/src/tools/runk/Makefile +++ b/src/tools/runk/Makefile @@ -7,6 +7,7 @@ include ../../../utils.mk TARGET = runk TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET) +AGENT_SOURCE_PATH = ../../agent # BINDIR is a directory for installing executable programs BINDIR := /usr/local/bin @@ -26,9 +27,14 @@ clean: vendor: cargo vendor -test: +test: test-runk test-agent + +test-runk: cargo test --all --target $(TRIPLE) -- --nocapture +test-agent: + make test -C $(AGENT_SOURCE_PATH) STANDARD_OCI_RUNTIME=yes + check: standard_rust_check .PHONY: \