Commit 0418bf23 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED broken tests

Note that the sleepingwhileworking automatic test are
now disabled until it is possible to specify a dependency
of the action with one ore more viewer extensions
parent 34f6ef31
......@@ -22,11 +22,12 @@ set -e
# values to check
initTestData() {
# fill test data
extensionCount=( [4.2]=44 [4.1]=41 [4.0]=31 )
componentExtensionCount=( [4.2]=14 [4.1]=14 [4.0]=14 )
actionExtensionCount=( [4.2]=30 [4.1]=27 [4.0]=27 )
fileExtensionCount=( [4.2]=37 [4.1]=37 [4.0]=37 )
actionCount=( [4.2]=109 [4.1]=105 [4.0]=105 )
extensionCount=( [4.2]=53 [4.1]=41 [4.0]=31 )
componentExtensionCount=( [4.2]=14 [4.1]=14 [4.0]=14 )
actionExtensionCount=( [4.2]=30 [4.1]=27 [4.0]=27 )
viewerExtensionCount=( [4.2]=9 )
fileExtensionCount=( [4.2]=37 [4.1]=37 [4.0]=37 )
actionCount=( [4.2]=109 [4.1]=105 [4.0]=105 )
# fill release date
releaseDate=( [4.2]="not yet released, current development version" \
......@@ -48,6 +49,7 @@ declareTestData() {
declare -Ag extensionCount
declare -Ag componentExtensionCount
declare -Ag actionExtensionCount
declare -Ag viewerExtensionCount
declare -Ag fileExtensionCount
declare -Ag actionCount
declare -Ag releaseDate
......@@ -171,16 +173,19 @@ getExpectedValue() {
;;
"Number of Component Extensions")
echo ${componentExtensionCount[$shortVersion]}
;;
;;
"Number of Action Extensions")
echo ${actionExtensionCount[$shortVersion]}
;;
;;
"Number of Viewer Extensions")
echo ${viewerExtensionCount[$shortVersion]}
;;
"Number of File Extensions Supported")
echo ${fileExtensionCount[$shortVersion]}
;;
;;
"Number of Actions")
echo ${actionCount[$shortVersion]}
;;
;;
esac
}
......@@ -284,6 +289,7 @@ else
fi
checkValue "Number of Component Extensions"
checkValue "Number of Action Extensions"
checkValue "Number of Viewer Extensions"
checkValue "Number of File Extensions Supported"
checkValue "Number of Actions"
......
# Call CamiTK CMake Macro to define the action
camitk_extension(ACTION_EXTENSION
ENABLE_AUTO_TEST
TEST_FILES Mesh.off BigEndian.hdr BigEndian.img BigEndianCompressed1.hdr BigEndianCompressed1.img biorad.pic brain.mha cthead1.lsm LittleEndian1.hdr LittleEndian1.img LittleEndianCompressed1.hdr LittleEndianCompressed1.img LittleEndianZ1.hdr mini-complex-slow1.nrrd mini-ten-nomask-slow1.nrrd mini-vector-slow1.nrrd ramp1.gipl
NEEDS_VIEWER_EXTENSION medicalimageviewer
NEEDS_VIEWER_EXTENSION medicalimageviewer
# Automatic test are disable for this extension because these actions directly manipulates the camera of the 3D
# viewer. During automatic test no viewers are loaded, therefore resulting in a crash.
# TODO Create a specific "TEST_REQUIRES_VIEWER_EXTENSIONS viewer1 viewer2..." option
# that will instructs camitk-testaction to load the specified viewer extensions before applying the actions
# ENABLE_AUTO_TEST
# TEST_FILES Mesh.off BigEndian.hdr BigEndian.img BigEndianCompressed1.hdr BigEndianCompressed1.img biorad.pic brain.mha cthead1.lsm LittleEndian1.hdr LittleEndian1.img LittleEndianCompressed1.hdr LittleEndianCompressed1.img LittleEndianZ1.hdr mini-complex-slow1.nrrd mini-ten-nomask-slow1.nrrd mini-vector-slow1.nrrd ramp1.gipl
)
......@@ -139,7 +139,7 @@ Log level "INFO": end test.
Log level "TRACE": begin test...
[TRACE ] Log level changed to: TRACE
With debug information:
[TRACE ] [virtual void camitk::CamiTKLogger::setDebugInformation(bool)@CamiTKLogger.cpp:223] Logging debug information: true
[TRACE ] [virtual void camitk::CamiTKLogger::setDebugInformation(bool)@CamiTKLogger.cpp:224] Logging debug information: true
TRACE message:
[TRACE ] [printLog@main.cpp:43] Test Log: TRACE
TRACE_IF(true) message:
......
......@@ -139,7 +139,7 @@ Log level "INFO": end test.
Log level "TRACE": begin test...
[TRACE ] Log level changed to: TRACE
With debug information:
[TRACE ] [void __cdecl camitk::CamiTKLogger::setDebugInformation(bool)@CamiTKLogger.cpp:223] Logging debug information: true
[TRACE ] [void __cdecl camitk::CamiTKLogger::setDebugInformation(bool)@CamiTKLogger.cpp:224] Logging debug information: true
TRACE message:
[TRACE ] [printLog@main.cpp:43] Test Log: TRACE
TRACE_IF(true) message:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment