Skip to content
Snippets Groups Projects
Commit aff491b9 authored by Julien Malik's avatar Julien Malik
Browse files

TEST: add a test to check OTB-Data revision number

parent 03ca4be1
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,11 @@ IF(Mercurial_FOUND)
STRING(REGEX REPLACE "\n" ";" OTB_WC_STATUS "${OTB_WC_STATUS}")
SET(OTB_WC_STATUS ${OTB_WC_STATUS} CACHE STRING "Repository status" FORCE)
MARK_AS_ADVANCED(OTB_WC_STATUS)
ENDIF(Mercurial_FOUND)
\ No newline at end of file
IF(OTB_DATA_ROOT)
Mercurial_WC_IDENTIFY(${OTB_DATA_ROOT} OTB_DATA)
SET(OTB_DATA_WC_REVISION ${OTB_DATA_WC_REVISION} CACHE STRING "Repository version" FORCE)
MARK_AS_ADVANCED(OTB_DATA_WC_REVISION)
ENDIF(OTB_DATA_ROOT)
ENDIF(Mercurial_FOUND)
......@@ -26,6 +26,12 @@ ADD_TEST(tsTvIsNightlyRevision ${TESTSYSTEM_TESTS}
${OTB_WC_REVISION}
http://www.orfeo-toolbox.org/nightly/libNightlyNumber )
#Test if the current working copy corresponds to the nightly revision number
ADD_TEST(tsTvDataIsNightlyRevision ${TESTSYSTEM_TESTS}
otbIsNightlyRevision
${OTB_DATA_WC_REVISION}
http://www.orfeo-toolbox.org/nightly/dataNightlyNumber )
#Test a basic ascii comparison
ADD_TEST(tsTvCompareAscii ${TESTSYSTEM_TESTS}
--compare-ascii ${NOTOL}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment