From fd65ca5d2e7f08fa904953682f1a8185c2ca7260 Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 22 Apr 2019 15:48:43 +0300 Subject: [PATCH] Check reference data file for each HDF file --- test.hdfs/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.2