aboutsummaryrefslogtreecommitdiff
path: root/tests/erase.cmake
blob: 1c27cfd833f991ea36865b86bf40836059a63356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include (${TestFunctions})

if (NOT "${TestFile}" STREQUAL "")
  set (WriteArgs "write ${TestConfigOptions} ${TestFile}")
  exec_test ("${WriteArgs}" 0)
endif ()

set (TestArgs "erase ${TestConfigOptions} ${TestArgs}")
exec_test ("${TestArgs}" ${TestExitCode})

if (NOT "${TestFile}" STREQUAL "" AND NOT "${TestBlessedFile}" STREQUAL "")
  set (ReadArgs "read ${TestConfigOptions} erase_read.bin")
  exec_test ("${ReadArgs}" 0)
  compare_files (erase_read.bin ${TestBlessedFile})
endif ()