IAP GITLAB

Skip to content
Snippets Groups Projects
Commit ae3134e9 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

remove vertical_EAS as test

parent b8b63f45
No related tags found
No related merge requests found
......@@ -153,3 +153,31 @@ function (CORSIKA_ADD_TEST)
endif ()
add_test (NAME ${name} COMMAND ${name} -o ${PROJECT_BINARY_DIR}/test_outputs/junit-${name}.xml -s -r junit)
endfunction (CORSIKA_ADD_TEST)
function (CORSIKA_ADD_EXECUTABLE)
cmake_parse_arguments (PARSE_ARGV 1 _ "" "SANITIZE" "SOURCES")
set (name ${ARGV0})
if (NOT __SOURCES)
set (sources ${name}.cc)
else ()
set (sources ${__SOURCES})
endif ()
if (NOT __SANITIZE)
set(sanitize "address,undefined")
else ()
set(sanitize ${__SANITIZE})
endif ()
add_executable (${name} ${sources})
target_compile_options (${name} PRIVATE -g) # do not skip asserts
target_include_directories (${name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test_outputs/)
if (CORSIKA_SANITIZERS_ENABLED)
# -O1 is suggested in clang docs to get reasonable performance
target_compile_options (${name} PRIVATE -O1 -fno-omit-frame-pointer -fsanitize=${sanitize} -fno-sanitize-recover=all)
set_target_properties (${name} PROPERTIES LINK_FLAGS "-fsanitize=${sanitize}")
endif ()
endfunction (CORSIKA_ADD_EXECUTABLE)
......@@ -83,7 +83,8 @@ if (Pythia8_FOUND)
install (TARGETS cascade_proton_example DESTINATION share/examples)
endif()
CORSIKA_ADD_TEST(vertical_EAS)
# remove vertical_EAS from CI
CORSIKA_ADD_EXECUTABLE(vertical_EAS)
target_link_libraries (vertical_EAS
SuperStupidStack
CORSIKAunits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment