Test\r
)\r
\r
+#-----------------------------------------------------------------------------\r
+# Add the testing directories\r
+OPTION(GDCM_BUILD_TESTING "Test the project" ON)\r
+IF(GDCM_BUILD_TESTING)\r
+ ENABLE_TESTING()\r
+ INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)\r
+ SUBDIRS(Test)\r
+ENDIF(GDCM_BUILD_TESTING)\r
+\r
+\r
#-----------------------------------------------------------------------------\r
OPTION(GDCM_VTK "Build VTK-GDCM Lib." OFF)\r
IF(GDCM_VTK)\r
${GDCM_BINARY_DIR}/gdcmLibraryDepends.cmake\r
)\r
\r
-# Intall the รขckaging files for use by FIND_PACKAGE(GDCM) in user projects.\r
+# Intall the packaging files for use by FIND_PACKAGE(GDCM) in user projects.\r
INSTALL_FILES(/lin/gdcm FILES\r
${GDCM_SOURCE_DIR}/gdcmUse.cmake\r
${GDCM_BINARY_DIR}/gdcmConfig.cmake\r
--- /dev/null
+# Dashboard is opened for submissions for a 24 hour period starting at\r
+# the specified NIGHLY_START_TIME. Time is specified in 24 hour format.\r
+SET (NIGHTLY_START_TIME "1:00:00 EDT")\r
+\r
+# Dart server to submit results (used by client)\r
+SET (DROP_SITE "public.kitware.com")\r
+SET (DROP_LOCATION "/incoming")\r
+SET (DROP_SITE_USER "ftpuser")\r
+SET (DROP_SITE_PASSWORD "public")\r
+SET (DROP_METHOD "ftp")\r
+SET (TRIGGER_SITE \r
+ "http://${DROP_SITE}/cgi-bin/Submit-Public-TestingResults.pl")\r
+\r
+# Project Home Page\r
+SET (PROJECT_URL "http://www.creatis.insa-lyon.fr/Public/Gdcm")\r
+\r
+# Dart server configuration \r
+SET (ROLLUP_URL "http://${DROP_SITE}/cgi-bin/Public-rollup-dashboard.sh")\r
+SET (CVS_WEB_URL "http://${DROP_SITE}/cgi-bin/cvsweb.cgi/Public/")\r
+SET (CVS_WEB_CVSROOT "Public")\r
+\r
+OPTION(BUILD_DOXYGEN "Build source documentation using doxygen" "Off")\r
+SET (DOXYGEN_CONFIG "${PROJECT_BINARY_DIR}/doxygen.config" )\r
+SET (USE_DOXYGEN "On")\r
+SET (DOXYGEN_URL "http://${DROP_SITE}/Public/Doxygen/html/" )\r
+\r
+SET (USE_GNATS "On")\r
+SET (GNATS_WEB_URL "http://${DROP_SITE}/Bug/index.php")\r
+\r
+# Continuous email delivery variables\r
+SET (CONTINUOUS_FROM "luis.ibanez@kitware.com")\r
+SET (SMTP_MAILHOST "public.kitware.com")\r
+SET (CONTINUOUS_MONITOR_LIST "luis.ibanez@kitware.com")\r
+SET (CONTINUOUS_BASE_URL "http://www.kitware.com/Testing")\r
+\r
+MARK_AS_ADVANCED(BUILD_DOXYGEN)\r
+\r
# http://www.cmake.org/pipermail/cmake/2001-November/002491.html
# So that dll is copied to each subdir where needed
+SET(CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH})
+
+SET(GDCM_TESTS ${CXX_TEST_PATH}/gdcmTests)
+
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
CHECK_INCLUDE_FILE("stdint.h" CMAKE_HAVE_STDINT_H)
bug1.cxx
pourFindTaggs.cxx
dcm2acr.cxx
+ PrintDicomDir.cxx
+ makeDicomDir.cxx
+ testDicomDir.cxx
)
# include stuff
)
ENDIF(GDCM_TEST_COMPILE_FLAGS)
GET_FILENAME_COMPONENT(name ${file} NAME_WE)
- ADD_EXECUTABLE(${name} ${file})
- TARGET_LINK_LIBRARIES(${name} gdcm)
+ ADD_TEST(${name} ${GDCM_TESTS} ${name})
ENDFOREACH(file ${TEST_SOURCES})
+
+
+ADD_EXECUTABLE(gdcmTests gdcmTests.cxx ${TEST_SOURCES})
+TARGET_LINK_LIBRARIES(gdcmTests gdcm)
+
+
// The following crashes on Win32
#include "gdcm.h"
-int main(int argc, char* argv[])
+int bug1(int argc, char* argv[])
{
gdcmHeader* e1;
// et des pixels d'une autre image
-int main(int argc, char* argv[]) {
+int testChangeEntete(int argc, char* argv[]) {
std::string premier, deuxieme;
char resultat[200];
#define ostringstream ostrstream
//extern "C"
-using namespace std;
-int main(int argc, char* argv[])
+int testDicomDir(int argc, char* argv[])
{
gdcmDicomDir *e1;
ListTag::iterator deb , fin;
}
*/
- cout << std::endl << std::endl
+ std::cout << std::endl << std::endl
<< " = Liste des PATIENT/STUDY/SERIE =========================================="
<< std::endl<< std::endl;
}
*/
- cout << std::endl << std::endl
+ std::cout << std::endl << std::endl
<< " = Contenu Complet du DICOMDIR =========================================="
<< std::endl<< std::endl;
e1->Print();
#include <iostream>
#include <stdio.h>
-int main() {
+int hashtest( int, char * [] ) {
typedef std::map<std::string, char*> dict;
std::cout << "Kaie ! Kaie! SQ stack overflow" << std::endl;
return;
}
- if (DEBUG) cout << "\n >>>>> empile niveau " << top
+ if (DEBUG) std::cout << "\n >>>>> empile niveau " << top
<< "; Lgr SeQ: " << (*i)->GetReadLength()
- << "\n" <<endl;
+ << "\n" <<std::endl;
pile[top].totalSQlength = (*i)->GetReadLength();
pile[top].alreadyParsedlength = 0;
<< std::endl;
} else {
if (DEBUG)
- cout << "alrdyPseLgt:"
+ std::cout << "alrdyPseLgt:"
<< pile[top].alreadyParsedlength << " totSeQlgt: "
<< pile[top].totalSQlength << " curPseLgt: "
<< currentParsedlength
- << endl;
+ << std::endl;
while (pile[top].alreadyParsedlength==pile[top].totalSQlength) {
if (DEBUG)