Skip to content

Commit

Permalink
Add testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Nov 23, 2024
1 parent 6dd3296 commit 35f1cf3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,9 @@ f3d_test(NAME TestInteractionDropFiles ARGS -n INTERACTION_CONFIGURE)#X;DropEven
f3d_test(NAME TestInteractionMultiFileDrop ARGS --multi-file-mode=all -e INTERACTION_CONFIGURE) #DropEvent mb_1_0.vtp mb_2_0.vtp
f3d_test(NAME TestInteractionDropSameFiles ARGS -x INTERACTION_CONFIGURE)#DropEvent cow.vtp;#DropEvent dragon.vtu;#DropEvent cow.vtp#DropEvent cow.vtp;

# A proper test for this is not possible because of the double quotes
f3d_test(NAME TestInteractionDropFileWithQuotes ARGS -n INTERACTION REGEXP "\"'`Quotes\"'`.stl does not exist" NO_BASELINE)#X;DropEvent "'`Quotes"'`.stl";

# HDRI test needs https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9767
if(VTK_VERSION VERSION_GREATER_EQUAL 9.2.20221220)
f3d_test(NAME TestInteractionDropHDRI INTERACTION_CONFIGURE LONG_TIMEOUT)#X;DropEvent dragon.vtu;DropEven palermo.hdr;
Expand Down
16 changes: 16 additions & 0 deletions testing/recordings/TestInteractionDropFileWithQuotes.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# StreamVersion 1.2
ExposeEvent 0 599 0 0 0 0 0
RenderEvent 0 599 0 0 0 0 0
KeyPressEvent -475 76 0 120 1 x 0
CharEvent -475 76 0 120 1 x 0
TimerEvent -475 76 0 120 1 x 0
TimerEvent -475 76 0 120 1 x 0
KeyReleaseEvent -475 76 0 120 1 x 0
KeyPressEvent 677 699 0 0 1 Super_L 0
CharEvent 677 699 0 0 1 Super_L 0
UpdateDropLocationEvent 677 699 0 0 1 Super_L 0
EnterEvent 781 494 0 0 0 Super_L 0
DropFilesEvent 781 494 0 0 0 Super_L 1 1 "'`Quotes"'`.stl
RenderEvent 781 494 0 0 0 Super_L 0
MouseMoveEvent 781 498 0 0 0 Super_L 0
LeaveEvent 751 614 0 0 0 Super_L 0

0 comments on commit 35f1cf3

Please sign in to comment.