From: azv Date: Mon, 22 Apr 2019 12:48:43 +0000 (+0300) Subject: Check reference data file for each HDF file X-Git-Tag: VEDF2019Lot4~148^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FTestHDFModels;p=modules%2Fshaper.git Check reference data file for each HDF file --- diff --git a/test.hdfs/CMakeLists.txt b/test.hdfs/CMakeLists.txt index 65813884f..58c6c48bd 100644 --- a/test.hdfs/CMakeLists.txt +++ b/test.hdfs/CMakeLists.txt @@ -39,6 +39,10 @@ if (EXISTS ${RESTRICTED_ROOT_DIR}) foreach(eachFilePath ${hdfFilesRestr}) # Strip the ".hdf" suffix GET_FILENAME_COMPONENT(aTestName ${eachFilePath} NAME_WE) + # Check corresponding ".py" file with reference data exists + IF(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${aTestName}.py") + MESSGAGE(WARNING "File ${aTestName}.py containing reference data does not exist") + ENDIF() # Add "SubprojectName_" prefix GET_FILENAME_COMPONENT(aSubprojectName ${CMAKE_CURRENT_SOURCE_DIR} NAME)