From 02e24f0f533fe904c3a5275c4060c10c38d7c17a Mon Sep 17 00:00:00 2001 From: Ján Sučan Date: Wed, 10 May 2017 15:13:29 +0200 Subject: Uvodny commit, subory su rovnake ako na CD prilozenom k vytlacenemu texu bakalarskej prace, naviac je pridany len subor LICENCIA --- tests/write.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tests/write.cmake (limited to 'tests/write.cmake') diff --git a/tests/write.cmake b/tests/write.cmake new file mode 100755 index 0000000..0a164f5 --- /dev/null +++ b/tests/write.cmake @@ -0,0 +1,11 @@ +include (${TestFunctions}) + +set (TestArgs "write ${TestConfigOptions} ${TestArgs} ${TestFile}") +set (ReadArgs "read ${TestConfigOptions} write_read.bin") + +exec_test ("${TestArgs}" ${TestExitCode}) + +if (NOT "${TestFile}" STREQUAL "" AND NOT "${TestBlessedFile}" STREQUAL "") + exec_test ("${ReadArgs}" 0) + compare_files (write_read.bin ${TestBlessedFile}) +endif () -- cgit v1.2.3