Skip to content

Commit 505dea1

Browse files
David PartykaDavid Partyka
authored andcommitted
Add logic to easily provide error thresholds to hybrid tcl tests.
Change-Id: I6ad8febf2c8d32234c8ea734caea68115be6cc53
1 parent d9b36fe commit 505dea1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Hybrid/Testing/Tcl/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
33
# Add tests
44
#
55
IF (VTK_DATA_ROOT)
6+
set(cubeAxes2Error 13)
67
FOREACH ( tfile
78
3DMorph
89
appendImplicitModel
@@ -52,12 +53,18 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
5253
xyPlot3
5354
xyPlot4
5455
)
56+
IF(${${tfile}Error})
57+
SET(_error_threshold ${${tfile}Error})
58+
ELSE()
59+
SET(_error_threshold 10)
60+
ENDIF()
5561
ADD_TEST(${tfile}-image ${VTK_EXECUTABLE}
5662
${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl
5763
${VTK_SOURCE_DIR}/Hybrid/Testing/Tcl/${tfile}.tcl
5864
-D ${VTK_DATA_ROOT}
5965
-V Baseline/Hybrid/${tfile}.png
60-
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
66+
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl
67+
-E ${_error_threshold})
6168
ENDFOREACH( tfile )
6269
#
6370
# If we do not have the data, still run the tests that we can

0 commit comments

Comments
 (0)