From 428e0b44b8c7654491e1353f842f793c8b849fb3 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 9 Nov 2023 15:11:25 +0100 Subject: [PATCH] Add emu test for ovni_thread_require --- test/emu/ovni/CMakeLists.txt | 1 + test/emu/ovni/require.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/emu/ovni/require.c diff --git a/test/emu/ovni/CMakeLists.txt b/test/emu/ovni/CMakeLists.txt index 6d3412a..dbae584 100644 --- a/test/emu/ovni/CMakeLists.txt +++ b/test/emu/ovni/CMakeLists.txt @@ -18,3 +18,4 @@ test_emu(sort-cpus-by-loom.c MP) test_emu(sort-cpus-by-rank.c MP) test_emu(tracedir-subdir.c MP DRIVER "tracedir-subdir.driver.sh") test_emu(empty-stream.c SHOULD_FAIL REGEX "model_ovni_finish: thread .* is not dead") +test_emu(require.c) diff --git a/test/emu/ovni/require.c b/test/emu/ovni/require.c new file mode 100644 index 0000000..4bfd8c4 --- /dev/null +++ b/test/emu/ovni/require.c @@ -0,0 +1,19 @@ +/* Copyright (c) 2023 Barcelona Supercomputing Center (BSC) + * SPDX-License-Identifier: GPL-3.0-or-later */ + +#include +#include "instr.h" + +/* Test the ovni_thread_require() function */ + +int +main(void) +{ + instr_start(0, 1); + + ovni_thread_require("ovni", "1.2.0"); + + instr_end(); + + return 0; +}