diff --git a/test/emu/ovni/CMakeLists.txt b/test/emu/ovni/CMakeLists.txt index a77ad4e..9a5ed9f 100644 --- a/test/emu/ovni/CMakeLists.txt +++ b/test/emu/ovni/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Barcelona Supercomputing Center (BSC) +# Copyright (c) 2022-2024 Barcelona Supercomputing Center (BSC) # SPDX-License-Identifier: GPL-3.0-or-later test_emu(flush-overhead.c DISABLED) @@ -26,3 +26,4 @@ test_emu(thread-free-isready.c) test_emu(flush-tmpdir.c MP DRIVER "flush-tmpdir.driver.sh") test_emu(tmpdir-metadata.c MP DRIVER "tmpdir-metadata.driver.sh") test_emu(dummy.c NAME "ovniver" DRIVER "ovniver.driver.sh") +test_emu(dummy.c NAME "match-doc-events" DRIVER "match-doc-events.sh") diff --git a/test/emu/ovni/match-doc-events.sh b/test/emu/ovni/match-doc-events.sh new file mode 100644 index 0000000..7824824 --- /dev/null +++ b/test/emu/ovni/match-doc-events.sh @@ -0,0 +1,8 @@ +docs="$OVNI_SOURCE_DIR/doc/user/emulation/events.md" + +( + cat "$docs" | grep -v '^Built on' > old.md + ovnievents | grep -v '^Built on' > new.md + + diff -up old.md new.md +) diff --git a/test/macros.cmake b/test/macros.cmake index 39e852c..507817a 100644 --- a/test/macros.cmake +++ b/test/macros.cmake @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Barcelona Supercomputing Center (BSC) +# Copyright (c) 2022-2024 Barcelona Supercomputing Center (BSC) # SPDX-License-Identifier: GPL-3.0-or-later include(CMakeParseArguments) @@ -49,6 +49,9 @@ function(ovni_test source) list(APPEND OVNI_TEST_ENV "OVNI_CONFIG_DIR=${CMAKE_SOURCE_DIR}/cfg") + list(APPEND OVNI_TEST_ENV + "OVNI_SOURCE_DIR=${CMAKE_SOURCE_DIR}") + if(OVNI_TEST_SORT) list(APPEND OVNI_TEST_ENV "OVNI_DO_SORT=1") endif()