Add emu test for ovni_thread_require

This commit is contained in:
Rodrigo Arias 2023-11-09 15:11:25 +01:00
parent ab42ac4557
commit 428e0b44b8
2 changed files with 20 additions and 0 deletions

View File

@ -18,3 +18,4 @@ test_emu(sort-cpus-by-loom.c MP)
test_emu(sort-cpus-by-rank.c MP) test_emu(sort-cpus-by-rank.c MP)
test_emu(tracedir-subdir.c MP DRIVER "tracedir-subdir.driver.sh") 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(empty-stream.c SHOULD_FAIL REGEX "model_ovni_finish: thread .* is not dead")
test_emu(require.c)

19
test/emu/ovni/require.c Normal file
View File

@ -0,0 +1,19 @@
/* Copyright (c) 2023 Barcelona Supercomputing Center (BSC)
* SPDX-License-Identifier: GPL-3.0-or-later */
#include <ovni.h>
#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;
}