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