X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FCMakeLists.txt;h=5a25f63a4d6dcee4c862207d4e7d0d7798ae64ac;hb=c55ef12ae4b89631bd3d7eacca2b72a3087ea873;hp=f18303c52bb38acd834e486d5594ac7d06085532;hpb=e6ff7dc295436e9463650ea13ab965ce35ae126c;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index f18303c5..5a25f63a 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -8,11 +8,12 @@ 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 @@ -20,7 +21,8 @@ SET(TEST_SOURCES # add tests that require data IF (GDCM_DATA_ROOT) - SET(TEST_SOURCES ${TEST_SOURCES} + SET(TEST_SOURCES ${TEST_SOURCES} + TestSerieHeader # uses gdcmData as a default root directory TestReadWriteReadCompare.cxx # includes generated gdcmDataImages.h PrintAllDocument.cxx # includes generated gdcmDataImages.h TestAllReadCompareDicom.cxx # includes generated gdcmDataImages.h @@ -148,13 +150,23 @@ SET(BLACK_LIST # Just to remember this format exist, and is gdcm::Header compliant # (NOT gdcm::File ...) # any contribution is welcome - "PET-cardio-Multiframe-Papyrus.dcm" + "PET-cardio-Multiframe-Papyrus.dcm" + "D_CLUNIE_CT1_JLSN.dcm" + "D_CLUNIE_CT1_JLSL.dcm" + "D_CLUNIE_CT1_J2KR.dcm" + "D_CLUNIE_CT1_J2KI.dcm" ) +# Add a special test that requires dciodvfy from dicom3tools +INCLUDE(${GDCM_SOURCE_DIR}/CMake/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}\",")