X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FCMakeLists.txt;h=42b6ba0822abc6523d41efb0b4c808436cd211ac;hb=7409414e04772fdb69056cfb8066f392c08014e1;hp=cb06b586aaac58ea11a47ca280b3974a3c0927a5;hpb=6ee5f1d767d15c71d283389adc85948ec6c5edfc;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index cb06b586..42b6ba08 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -8,12 +8,15 @@ SET(GDCM_TESTS ${CXX_TEST_PATH}/gdcmTests) # add test that does not require data: # They usally return if no argument is given SET(TEST_SOURCES + TestUtil.cxx TestBug.cxx TestHash.cxx TestTS.cxx TestVR.cxx - TestUtil.cxx + TestDicomDirElement.cxx TestDicomString.cxx + TestDict.cxx + TestWriteSimple.cxx ) # add tests that require data @@ -23,14 +26,13 @@ IF (GDCM_DATA_ROOT) PrintAllDocument.cxx # includes generated gdcmDataImages.h TestAllReadCompareDicom.cxx # includes generated gdcmDataImages.h TestAllEntryVerify.cxx # includes generated gdcmDataImages.h - PrintDicomDir.cxx #TestChangeHeader.cxx + TestCopyDicom.cxx # includes generated gdcmDataImages.h + TestCopyRescaleDicom.cxx # includes generated gdcmDataImages.h TestDicomDir.cxx # require DICOMDIR BuildUpDicomDir.cxx # writes a file named "NewDICOMDIR" makeDicomDir.cxx # writes a file named "NewDICOMDIR" - TestCopyDicom.cxx - TestCopyRescaleDicom.cxx - TestWriteSimple.cxx + TestDirList.cxx ) # add test that require VTK: IF(GDCM_VTK) @@ -41,9 +43,9 @@ IF (GDCM_DATA_ROOT) ${GDCM_SOURCE_DIR}/vtk/ ) SET(TEST_SOURCES ${TEST_SOURCES} - ShowDicom.cxx - ShowDicomSeq.cxx - TestWriteWithVTK.cxx + VTKTestRead.cxx + VTKTestReadSeq.cxx + VTKTestWrite.cxx ) ENDIF(GDCM_VTK) ENDIF (GDCM_DATA_ROOT) @@ -136,18 +138,31 @@ ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.9) # Black list of images known to break lots of readers (efilm, xmedcon ...): SET(BLACK_LIST # serial killer (also segfaults vtkgdcmViewer, but NOT PrintFile) - "gdcm-JPEG-LossLessThoravision.dcm" + #"gdcm-JPEG-LossLessThoravision.dcm" # Mathieu: temporarily remove as it kills my gnome session (but not kde) # JPR: also breaks TestReadWriteReadCompare : Pixel differ (as expanded # in memory) - "KODAK-12-MONO1-Odd_Terminated_Sequence.dcm" + #"KODAK-12-MONO1-Odd_Terminated_Sequence.dcm" + + # Multiframe Papyrus format image + # Just to remember this format exist, and is gdcm::Header compliant + # (NOT gdcm::File ...) + # any contribution is welcome + "PET-cardio-Multiframe-Papyrus.dcm" ) + +# Add a special test that requires dciodvfy from dicom3tools +INCLUDE(${GDCM_SOURCE_DIR}/FindDicom3Tools.cmake) + # This is a GLOB expression, change it into a list separated with a comma and \n SET(GDCM_DATA_IMAGES) FOREACH(filename ${GDCM_DATA_IMAGES_GLOB}) GET_FILENAME_COMPONENT(filename_temp ${filename} NAME) + IF(DCIODVFY_FOUND) + ADD_TEST("Clunie-${filename_temp}" "${DCIODVFY_EXECUTABLE}" "${filename}") + ENDIF(DCIODVFY_FOUND) STRING(REGEX MATCH ${filename_temp} bad_dicom ${BLACK_LIST}) IF(NOT bad_dicom) SET(GDCM_DATA_IMAGES "${GDCM_DATA_IMAGES}\n\"${filename_temp}\",")