mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-12-07 13:12:49 +00:00
This gh-workflow prints a simple msg, but is the base for future PRs that will gradually add the jobs corresponding to the kata metrics test. Fixes: #7100 Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
36 lines
686 B
Bash
Executable File
36 lines
686 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2023 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
metrics_dir="$(dirname "$(readlink -f "$0")")"
|
|
|
|
function run_test_launchtimes() {
|
|
hypervisor="${1}"
|
|
|
|
echo "Running launchtimes tests: "
|
|
|
|
if [ "${hypervisor}" = 'qemu' ]; then
|
|
echo "qemu"
|
|
elif [ "${hypervisor}" = 'clh' ]; then
|
|
echo "clh"
|
|
fi
|
|
}
|
|
|
|
function main() {
|
|
action="${1:-}"
|
|
case "${action}" in
|
|
run-test-launchtimes-qemu) run_test_launchtimes "qemu" ;;
|
|
run-test-launchtimes-clh) run_test_launchtimes "clh" ;;
|
|
*) >&2 echo "Invalid argument"; exit 2 ;;
|
|
esac
|
|
}
|
|
|
|
main "$@"
|