summaryrefslogtreecommitdiff
path: root/Tests/Module/ExternalData/Data2/Data2Check.cmake
blob: d5b0c7b68c8dacee7a33ca4c8919796535d94776 (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}\ndoes 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}\ndoes not exist!")
  endif()
endforeach()