summaryrefslogtreecommitdiffstats
path: root/Tests/Module/ExternalData/Data2/Data2Check.cmake
blob: 412593ce81174c8371c3e51f417c30ef8290de65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
foreach(d "${Data2}" "${Data2b}")
  file(STRINGS "${d}" lines LIMIT_INPUT 1024)
  if(NOT "x${lines}" STREQUAL "xInput file already transformed.")
    message(SEND_ERROR "Input file:\n  ${d}\n" "does not have expected content, but [[${lines}]]")
  endif()
endforeach()
foreach(n 1 2 3)
  string(REGEX REPLACE "_1_\\.my\\.dat$" "_${n}_.my.dat" SeriesCFile "${SeriesC}")
  if(NOT EXISTS "${SeriesCFile}")
    message(SEND_ERROR "Input file:\n  ${SeriesCFile}\n" "does not exist!")
  endif()
endforeach()