From e64edf41e54595d270cb8a67e51538e5547ae391 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 17 Jul 2023 21:04:43 +0000 Subject: [PATCH] metrics: Add tensorflow function in gha-run script This PR adds the tensorflow function in gha-run script in order to be triggered in the gha. Signed-off-by: Gabriela Cervantes --- tests/metrics/gha-run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/metrics/gha-run.sh b/tests/metrics/gha-run.sh index cfba540f0f..6bc472e7a9 100755 --- a/tests/metrics/gha-run.sh +++ b/tests/metrics/gha-run.sh @@ -83,6 +83,15 @@ function run_test_blogbench() { check_metrics } +function run_test_tensorflow() { + info "Running TensorFlow test using ${KATA_HYPERVISOR} hypervisor" + # ToDo: remove the exit once the metrics workflow is stable + exit 0 + + create_symbolic_links ${KATA_HYPERVISOR} + bash tests/metrics/machine_learning/tensorflow.sh 1 20 +} + function main() { action="${1:-}" case "${action}" in @@ -92,6 +101,7 @@ function main() { run-test-memory-usage) run_test_memory_usage ;; run-test-memory-usage-inside-container) run_test_memory_usage_inside_container ;; run-test-blogbench) run_test_blogbench ;; + run-test-tensorflow) run_test_tensorflow ;; *) >&2 die "Invalid argument" ;; esac }