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:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./build/test/test
|
- ./build/test/testTug
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
before_script:
|
before_script:
|
||||||
|
|||||||
@ -8,8 +8,10 @@ FetchContent_Declare(
|
|||||||
|
|
||||||
FetchContent_MakeAvailable(DocTest)
|
FetchContent_MakeAvailable(DocTest)
|
||||||
|
|
||||||
#add_library(doctest INTERFACE)
|
add_executable(testTug setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
|
||||||
#target_include_directories(doctest INTERFACE doctest)
|
target_link_libraries(testTug doctest tug)
|
||||||
|
|
||||||
add_executable(test setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
|
add_custom_target(check
|
||||||
target_link_libraries(test doctest tug)
|
COMMAND $<TARGET_FILE:testTug>
|
||||||
|
DEPENDS testTug
|
||||||
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user