This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
/
Makefile
178 lines (136 loc) · 4.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
#
# Copyright (c) 2017-2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
ifneq (,$(wildcard /usr/lib/os-release))
include /usr/lib/os-release
else
include /etc/os-release
endif
# The time limit in seconds for each test
TIMEOUT := 120
# union for 'make test'
UNION := kubernetes
# get arch
ARCH := $(shell bash -c '.ci/kata-arch.sh -d')
ARCH_DIR = arch
ARCH_FILE_SUFFIX = -options.mk
ARCH_FILE = $(ARCH_DIR)/$(ARCH)$(ARCH_FILE_SUFFIX)
INSTALL_FILES := $(wildcard .ci/install_*.sh)
INSTALL_TARGETS := $(INSTALL_FILES:.ci/install_%.sh=install-%)
# Load architecture-dependent settings
ifneq ($(wildcard $(ARCH_FILE)),)
include $(ARCH_FILE)
endif
default: github-labels
github-labels:
make -C cmd/github-labels
spell-check-dictionary:
make -C cmd/check-spelling
check-markdown:
make -C cmd/check-markdown
crio:
bash .ci/install_bats.sh
./integration/cri-o/cri-o.sh
ksm:
bash -f integration/ksm/ksm_test.sh
kubernetes:
bash -f .ci/install_bats.sh
bash -f integration/kubernetes/run_kubernetes_tests.sh
nydus:
bash -f integration/nydus/nydus_tests.sh
kubernetes-e2e:
cd "integration/kubernetes/e2e_conformance" &&\
cat skipped_tests_e2e.yaml &&\
bash ./setup.sh &&\
bash ./run.sh
sandbox-cgroup:
bash -f functional/sandbox_cgroup/sandbox_cgroup_test.sh
sgx:
bash -f functional/sgx/run.sh
stability:
cd stability && \
ITERATIONS=2 MAX_CONTAINERS=20 ./soak_parallel_rm.sh
cd stability && ./hypervisor_stability_kill_test.sh
stability-baremetal:
bash -f stability/stressng.sh
bash -f stability/scability_test.sh 100 10
# If hypervisor is dragonball, the default path to keep pod info is /run/kata. Meanwhile, there is
# no independent hypervisor process for dragonball, so disale hypervisor_stability_kill_test.sh
dragonball-stability:
mkdir -p /etc/kata-containers && \
cp -a /opt/kata/share/defaults/kata-containers/configuration-dragonball.toml /etc/kata-containers/configuration.toml && \
cd stability && ITERATIONS=2 MAX_CONTAINERS=20 VC_POD_DIR=/run/kata ./soak_parallel_rm.sh && \
rm -rf /etc/kata-containers
# Run the static checks on this repository.
static-checks:
PATH="$(GOPATH)/bin:$(PATH)" .ci/static-checks.sh \
"github.com/kata-containers/tests"
shimv2:
bash integration/containerd/shimv2/shimv2-tests.sh
bash integration/containerd/shimv2/shimv2-factory-tests.sh
cri-containerd:
bash integration/containerd/cri/integration-tests.sh
# Run the Confidential Containers tests for containerd.
cc-containerd:
# TODO: The Confidential Containers test aren't merged into main yet, so
# disable their execution. They should be enabled again at the point when
# https://github.com/kata-containers/tests/issues/4628 is ready to be merged.
@echo "No Confidential Containers tests to run yet. Do nothing."
# bash integration/containerd/confidential/run_tests.sh
qat:
bash integration/qat/qat_test.sh
agent-shutdown:
bash functional/tracing/test-agent-shutdown.sh
# Tracing requires the agent to shutdown cleanly,
# so run the shutdown test first.
tracing: agent-shutdown
bash functional/tracing/tracing-test.sh
vcpus:
bash -f functional/vcpus/default_vcpus_test.sh
pmem:
bash -f integration/pmem/pmem_test.sh
test: ${UNION}
$(INSTALL_TARGETS): install-%: .ci/install_%.sh
@bash -f $<
list-install-targets:
@echo $(INSTALL_TARGETS) | tr " " "\n"
rootless:
bash -f functional/rootless/rootless_test.sh
vfio:
# Skip: Issue: https://github.com/kata-containers/kata-containers/issues/1488
# bash -f functional/vfio/run.sh -s false -p clh -i image
# bash -f functional/vfio/run.sh -s true -p clh -i image
bash -f functional/vfio/run.sh -s false -p qemu -m q35 -i image
bash -f functional/vfio/run.sh -s true -p qemu -m q35 -i image
vfio-ap:
bash -f functional/vfio-ap/run.sh
agent: bash -f functional/agent/agent_test.sh
monitor:
bash -f functional/kata-monitor/run.sh
runk:
bash -f integration/containerd/runk/runk-tests.sh
help:
@echo Subsets of the tests can be run using the following specific make targets:
@echo " $(UNION)" | sed 's/ /\n\t/g'
@echo ''
@echo "Pull request targets:"
@echo " static-checks - run the static checks on this repository."
# PHONY in alphabetical order
.PHONY: \
crio \
$(INSTALL_TARGETS) \
kubernetes \
list-install-targets \
qat \
rootless \
sandbox-cgroup \
stability \
static-checks \
test \
tracing \
vcpus \
vfio \
pmem \
agent