mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 17:38:23 +01:00
test: add target check
This commit is contained in:
parent
822f50d887
commit
443ea15c58
@ -21,7 +21,7 @@ build_release:
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- ./build/test/test
|
||||
- ./build/test/testTug
|
||||
|
||||
lint:
|
||||
before_script:
|
||||
|
||||
@ -8,8 +8,10 @@ FetchContent_Declare(
|
||||
|
||||
FetchContent_MakeAvailable(DocTest)
|
||||
|
||||
#add_library(doctest INTERFACE)
|
||||
#target_include_directories(doctest INTERFACE doctest)
|
||||
add_executable(testTug setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
|
||||
target_link_libraries(testTug doctest tug)
|
||||
|
||||
add_executable(test setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
|
||||
target_link_libraries(test doctest tug)
|
||||
add_custom_target(check
|
||||
COMMAND $<TARGET_FILE:testTug>
|
||||
DEPENDS testTug
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user