summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLineTar/touch-mtime.cmake
blob: c9e35240aefda851cb07a399302c3f9791bcedd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include(${CMAKE_CURRENT_LIST_DIR}/mtime-tests.cmake)

set(DECOMPRESSION_OPTIONS --touch)

include(${CMAKE_CURRENT_LIST_DIR}/roundtrip.cmake)

foreach(file ${CHECK_FILES})
  file(TIMESTAMP ${FULL_DECOMPRESS_DIR}/${COMPRESS_DIR}/${file} MTIME UTC)
  if(MTIME STREQUAL ARCHIVE_MTIME_RFC3339)
    message(FATAL_ERROR
      "File has unexpected timestamp ${MTIME}")
  endif()
endforeach()