2021-11-08 17:08:50 +01:00
|
|
|
#
|
2022-08-22 16:40:08 +02:00
|
|
|
# Copyright (c) 2022 Barcelona Supercomputing Center (BSC)
|
2021-11-08 17:08:50 +01:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2022-08-22 16:40:08 +02:00
|
|
|
find_library(nosv libnosv)
|
|
|
|
find_path(NOSV_INCLUDE_DIR nosv.h)
|
2021-11-08 17:08:50 +01:00
|
|
|
|
2022-08-22 16:40:08 +02:00
|
|
|
function(nosv_test)
|
|
|
|
ovni_test(${ARGN})
|
|
|
|
target_link_libraries("${OVNI_TEST_NAME}" nosv)
|
|
|
|
target_include_directories("${OVNI_TEST_NAME}"
|
|
|
|
PUBLIC ${NOSV_INCLUDE_DIR})
|
|
|
|
set_property(TEST "${OVNI_TEST_NAME}" APPEND
|
|
|
|
PROPERTY
|
|
|
|
ENVIRONMENT "NOSV_CONFIG=${OVNI_TEST_SOURCE_DIR}/rt/nosv.toml")
|
|
|
|
endfunction()
|
2021-11-08 17:08:50 +01:00
|
|
|
|
2022-08-22 16:40:08 +02:00
|
|
|
nosv_test(NAME nosv-attach SOURCE nosv/attach.c)
|