Skip to content

Commit

Permalink
Add vis label to all tests opening a GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
EricMEsch committed Jan 16, 2025
1 parent 6647bce commit 41e9419
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/confinement/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,16 @@ set(_surface_tests
foreach(_test ${_surface_tests})

add_test(NAME confinment-surface/${_test} COMMAND ./test-surface-sampler-methods ${_test})
set_tests_properties(confinment-surface/${_test} PROPERTIES LABELS extra FIXTURES_REQUIRED
test-surface-sampler-methods-fixture)

if(_test MATCHES "test-points-.*")
set_tests_properties(
confinment-surface/${_test} PROPERTIES LABELS "extra;vis" FIXTURES_REQUIRED
test-surface-sampler-methods-fixture)
else()
set_tests_properties(
confinment-surface/${_test} PROPERTIES LABELS extra FIXTURES_REQUIRED
test-surface-sampler-methods-fixture)
endif()
endforeach()

# now run some simulations and test the outputs
Expand Down Expand Up @@ -159,7 +167,7 @@ foreach(det ${_solids})
gdml/simple-solids.gdml -w -l detail)

set_tests_properties(
confinment-surface/${det}-vis PROPERTIES LABELS extra FIXTURES_REQUIRED
confinment-surface/${det}-vis PROPERTIES LABELS "extra;vis" FIXTURES_REQUIRED
confine-surface-vis-macro-${det}-fixture)
endforeach()

Expand Down

0 comments on commit 41e9419

Please sign in to comment.