Skip to content

Commit

Permalink
tests: fix confinement test for slim container
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu committed Apr 25, 2024
1 parent 0173433 commit c31e092
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 14 deletions.
5 changes: 3 additions & 2 deletions tests/confinement/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ foreach(_mac ${_macros})
test-out.root -- macros/${_mac})
set_tests_properties(confinement-mt/${_mac} PROPERTIES LABELS mt)

add_test(NAME confinement-vis/${_mac} COMMAND remage-cli -g gdml/geometry.gdml -o test-out.root
-- macros/vis.mac macros/${_mac})
add_test(NAME confinement-vis/${_mac}
COMMAND remage-cli -g gdml/geometry.gdml -o test-out.root -- macros/_vis.mac
macros/${_mac} macros/_vis-export.mac)
set_tests_properties(confinement-vis/${_mac} PROPERTIES LABELS vis)
endforeach()
File renamed without changes.
1 change: 1 addition & 0 deletions tests/confinement/macros/_vis-export.mac
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vis/ogl/export {export-fn}
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/confinement/macros/complex-volume.mac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/control/execute macros/init.mac
/control/execute macros/_init.mac

/RMG/Generator/Confine Volume
/RMG/Generator/Confinement/ForceContainmentCheck true
Expand All @@ -15,4 +15,4 @@

/run/beamOn 5000

/vis/ogl/export complex-volume.pdf
/control/alias export-fn complex-volume.pdf
4 changes: 2 additions & 2 deletions tests/confinement/macros/geometrical-and-physical.mac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/control/execute macros/init.mac
/control/execute macros/_init.mac

/RMG/Generator/Confine Volume
/RMG/Generator/Confinement/ForceContainmentCheck true
Expand All @@ -20,4 +20,4 @@

/run/beamOn 2000

/vis/ogl/export geometrical-and-physical.pdf
/control/alias export-fn eometrical-and-physical.pdf
4 changes: 2 additions & 2 deletions tests/confinement/macros/geometrical-or-physical.mac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/control/execute macros/init.mac
/control/execute macros/_init.mac

/RMG/Generator/Confine Volume
/RMG/Generator/Confinement/ForceContainmentCheck true
Expand All @@ -21,4 +21,4 @@

/run/beamOn 2000

/vis/ogl/export geometrical-or-physical.pdf
/control/alias export-fn geometrical-or-physical.pdf
4 changes: 2 additions & 2 deletions tests/confinement/macros/geometrical.mac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/control/execute macros/init.mac
/control/execute macros/_init.mac

/RMG/Generator/Confine Volume
/RMG/Generator/Confinement/ForceContainmentCheck true
Expand Down Expand Up @@ -36,4 +36,4 @@

/run/beamOn 5000

/vis/ogl/export geometrical.pdf
/control/alias export-fn geometrical.pdf
4 changes: 2 additions & 2 deletions tests/confinement/macros/native-surface.mac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/control/execute macros/init.mac
/control/execute macros/_init.mac

/RMG/Generator/Confine Volume
/RMG/Generator/Confinement/ForceContainmentCheck true
Expand All @@ -13,4 +13,4 @@

/run/beamOn 2000

/vis/ogl/export native-surface.pdf
/control/alias export-fn native-surface.pdf
4 changes: 2 additions & 2 deletions tests/confinement/macros/native-volume.mac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/control/execute macros/init.mac
/control/execute macros/_init.mac

/RMG/Generator/Confine Volume
/RMG/Generator/Confinement/ForceContainmentCheck true
Expand All @@ -13,4 +13,4 @@

/run/beamOn 2000

/vis/ogl/export native-volume.pdf
/control/alias export-fn native-volume.pdf

0 comments on commit c31e092

Please sign in to comment.