Skip to content

Commit ea74fcd

Browse files
committed
Introduce test-stressgraphics-svg test with reference files
Test that produced SVG really match its content
1 parent 4c9c34b commit ea74fcd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+252088
-1
lines changed

test/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ROOT_EXECUTABLE(eventexe MainEvent.cxx LIBRARIES Event RIO Tree TreePlayer Hist
6868
ROOT_ADD_TEST(test-event COMMAND eventexe)
6969

7070
#---guitest------------------------------------------------------------------------------------
71-
if(TARGET Gui)
71+
if(TARGET Gui)
7272
ROOT_EXECUTABLE(guitest guitest.cxx LIBRARIES RIO Gui Gpad Hist)
7373
endif()
7474

@@ -183,6 +183,11 @@ if(ROOT_opengl_FOUND AND TARGET TreeViewer)
183183
COMMAND ${ROOT_root_CMD} -b --web=off -q -l ${CMAKE_CURRENT_SOURCE_DIR}/stressGraphics.cxx
184184
FAILREGEX "FAILED|Error in"
185185
DEPENDS test-stressgraphics)
186+
ROOT_ADD_TEST(test-stressgraphics-svg
187+
ENVIRONMENT LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib:$ENV{LD_LIBRARY_PATH}
188+
COMMAND stressGraphics -b --web=off -p=svg --svg=${CMAKE_CURRENT_SOURCE_DIR}/svg_ref/
189+
FAILREGEX "FAILED|Error in"
190+
LABELS longtest)
186191
if(CHROME_EXECUTABLE)
187192
ROOT_ADD_TEST(test-stressgraphics-chrome
188193
RUN_SERIAL

test/svg_ref/svg01.svg

Lines changed: 17 additions & 0 deletions
Loading

test/svg_ref/svg02.svg

Lines changed: 233 additions & 0 deletions
Loading

test/svg_ref/svg03.svg

Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)