aboutsummaryrefslogtreecommitdiff
path: root/tests/read.cmake
diff options
context:
space:
mode:
authorJán Sučan <sucanjan@fit.cvut.cz>2017-05-10 15:13:29 +0200
committerJán Sučan <sucanjan@fit.cvut.cz>2017-05-10 15:13:29 +0200
commit02e24f0f533fe904c3a5275c4060c10c38d7c17a (patch)
tree19d05c60e3d6a6782c4712de960a8f6705054063 /tests/read.cmake
Uvodny commit, subory su rovnake ako na CD prilozenom k vytlacenemu texu bakalarskej prace, naviac je pridany len subor LICENCIA
Diffstat (limited to 'tests/read.cmake')
-rwxr-xr-xtests/read.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/read.cmake b/tests/read.cmake
new file mode 100755
index 0000000..4f24101
--- /dev/null
+++ b/tests/read.cmake
@@ -0,0 +1,12 @@
+include (${TestFunctions})
+
+set (TestArgs "read ${TestConfigOptions} ${TestArgs}")
+if (NOT "${TestFile}" STREQUAL "")
+ set (TestArgs "${TestArgs} read.bin")
+endif ()
+
+exec_test ("${TestArgs}" ${TestExitCode})
+
+if (NOT "${TestFile}" STREQUAL "" AND ${RETVAL} EQUAL 0)
+ compare_files (read.bin ${TestFile})
+endif ()