mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-24 16:54:26 +01:00
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 <Manabu.Sugimoto@sony.com>
49 lines
827 B
Makefile
49 lines
827 B
Makefile
# Copyright 2021-2022 Sony Group Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
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
|
|
|
|
.DEFAULT_GOAL := default
|
|
default: build
|
|
|
|
build:
|
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo build --target $(TRIPLE) --$(BUILD_TYPE)
|
|
|
|
install:
|
|
install -D $(TARGET_PATH) $(BINDIR)/$(TARGET)
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
vendor:
|
|
cargo vendor
|
|
|
|
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: \
|
|
build \
|
|
install \
|
|
clean \
|
|
clippy \
|
|
format \
|
|
vendor \
|
|
test \
|
|
check \
|