mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 00:07:16 +00:00
gha: Add stability gha run script
This PR adds the stability gha run script. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
54f0c8f88e
commit
85d290a048
33
tests/stability/gha-run.sh
Executable file
33
tests/stability/gha-run.sh
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
kata_tarball_dir="${2:-kata-artifacts}"
|
||||||
|
stability_dir="$(dirname "$(readlink -f "$0")")"
|
||||||
|
source "${stability_dir}/../common.bash"
|
||||||
|
|
||||||
|
function run() {
|
||||||
|
info "Running soak parallel stability tests using ${KATA_HYPERVISOR} hypervisor"
|
||||||
|
|
||||||
|
# export ITERATIONS=2 MAX_CONTAINERS=20
|
||||||
|
# bash "${stability_dir}/soak_parallel_rm.sh"
|
||||||
|
}
|
||||||
|
|
||||||
|
function main() {
|
||||||
|
action="${1:-}"
|
||||||
|
case "${action}" in
|
||||||
|
install-kata) install_kata ;;
|
||||||
|
enabling-hypervisor) enabling_hypervisor ;;
|
||||||
|
run) run ;;
|
||||||
|
*) >&2 die "Invalid argument" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
Loading…
Reference in New Issue
Block a user