2022-09-13 15:36:55 +02:00
|
|
|
find_library(nanos6 libnanos6)
|
|
|
|
find_path(NANOS6_INCLUDE_DIR nanos6.h)
|
|
|
|
|
2022-08-25 18:56:55 +02:00
|
|
|
function(nanos6_rt_test)
|
|
|
|
ovni_test(${ARGN})
|
|
|
|
target_compile_options("${OVNI_TEST_NAME}" PUBLIC "-fompss-2")
|
|
|
|
target_link_options("${OVNI_TEST_NAME}" PUBLIC "-fompss-2")
|
2022-09-13 15:36:55 +02:00
|
|
|
target_link_libraries("${OVNI_TEST_NAME}" nanos6)
|
|
|
|
target_include_directories("${OVNI_TEST_NAME}"
|
|
|
|
PUBLIC ${NANOS6_INCLUDE_DIR})
|
2022-08-25 18:56:55 +02:00
|
|
|
set_property(TEST "${OVNI_TEST_NAME}" APPEND PROPERTY
|
|
|
|
ENVIRONMENT "NANOS6_CONFIG=${OVNI_TEST_SOURCE_DIR}/rt/nanos6/nanos6.toml")
|
|
|
|
endfunction()
|
|
|
|
|
2022-08-25 19:30:44 +02:00
|
|
|
nanos6_rt_test(simple-task.c)
|
|
|
|
nanos6_rt_test(nested-task.c)
|
2022-09-08 13:41:52 +02:00
|
|
|
nanos6_rt_test(several-tasks.c)
|
2022-09-13 15:36:55 +02:00
|
|
|
nanos6_rt_test(sched-add.c)
|
2022-09-21 13:02:24 +02:00
|
|
|
nanos6_rt_test(if0.c)
|