IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Air Shower Physics
corsika
Commits
ae3134e9
Commit
ae3134e9
authored
Nov 06, 2019
by
Maximilian Reininghaus
🖖
Browse files
remove vertical_EAS as test
parent
b8b63f45
Pipeline
#1000
passed with stages
in 5 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeModules/CorsikaUtilities.cmake
View file @
ae3134e9
...
...
@@ -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
)
Documentation/Examples/CMakeLists.txt
View file @
ae3134e9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment