]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Check reference data file for each HDF file
authorazv <azv@opencascade.com>
Mon, 22 Apr 2019 12:48:43 +0000 (15:48 +0300)
committervsv <vsv@opencascade.com>
Mon, 3 Jun 2019 10:31:58 +0000 (13:31 +0300)
test.hdfs/CMakeLists.txt

index 65813884fd7c7626a3dd7513054272062af5937e..58c6c48bdd8e02ef1972320cb588b8cd07628b64 100644 (file)
@@ -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)