Files
kata-containers/tests/metrics/gha-run.sh
David Esparza bc152b1141 gha: ci-on-push: Run metrics tests
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>
2023-06-14 15:15:08 -06:00

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 "$@"