summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-08-06 13:49:13 +0200
committerljfa-ag <ljfa-ag@web.de>2015-08-06 13:49:13 +0200
commitb3fedb345162c1242b22446792aa80b6c10c7885 (patch)
tree93430e0101c5a62cdcb3ffd74089085b58372451
parent16a9df1556afc1650bbc883303ab0ee283710ce9 (diff)
downloadProject-Tick-b3fedb345162c1242b22446792aa80b6c10c7885.tar.gz
Project-Tick-b3fedb345162c1242b22446792aa80b6c10c7885.zip
Change directory structure of read tests
-rw-r--r--test/CMakeLists.txt8
-rw-r--r--test/read_test.cpp (renamed from test/io/read_test.cpp)0
-rw-r--r--test/testfiles/bigtest.nbt (renamed from test/io/bigtest.nbt)bin561 -> 561 bytes
-rw-r--r--test/testfiles/bigtest_uncompr (renamed from test/io/bigtest_uncompr)bin1601 -> 1601 bytes
-rw-r--r--test/testfiles/errortest_eof1 (renamed from test/io/errortest_eof1)bin43 -> 43 bytes
-rw-r--r--test/testfiles/errortest_eof2 (renamed from test/io/errortest_eof2)bin94 -> 94 bytes
-rw-r--r--test/testfiles/errortest_noend (renamed from test/io/errortest_noend)bin48 -> 48 bytes
7 files changed, 3 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index cffce2ad7b..af5dd4532b 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -10,11 +10,9 @@ add_executable(endian_str_test endian_str_test.cpp)
target_link_libraries(endian_str_test nbt++)
add_test(endian_str_test endian_str_test)
-add_executable(read_test io/read_test.cpp)
+add_executable(read_test read_test.cpp)
target_link_libraries(read_test nbt++)
add_custom_command(TARGET read_test POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/io/bigtest_uncompr ${CMAKE_CURRENT_BINARY_DIR}
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/io/errortest_eof1 ${CMAKE_CURRENT_BINARY_DIR}
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/io/errortest_eof2 ${CMAKE_CURRENT_BINARY_DIR}
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/io/errortest_noend ${CMAKE_CURRENT_BINARY_DIR})
+ COMMAND ${CMAKE_COMMAND} -E
+ copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/testfiles ${CMAKE_CURRENT_BINARY_DIR})
add_test(read_test read_test)
diff --git a/test/io/read_test.cpp b/test/read_test.cpp
index 85970fc069..85970fc069 100644
--- a/test/io/read_test.cpp
+++ b/test/read_test.cpp
diff --git a/test/io/bigtest.nbt b/test/testfiles/bigtest.nbt
index de1a91268b..de1a91268b 100644
--- a/test/io/bigtest.nbt
+++ b/test/testfiles/bigtest.nbt
Binary files differ
diff --git a/test/io/bigtest_uncompr b/test/testfiles/bigtest_uncompr
index dc1c9c113f..dc1c9c113f 100644
--- a/test/io/bigtest_uncompr
+++ b/test/testfiles/bigtest_uncompr
Binary files differ
diff --git a/test/io/errortest_eof1 b/test/testfiles/errortest_eof1
index abb7ac564f..abb7ac564f 100644
--- a/test/io/errortest_eof1
+++ b/test/testfiles/errortest_eof1
Binary files differ
diff --git a/test/io/errortest_eof2 b/test/testfiles/errortest_eof2
index 1e9a503484..1e9a503484 100644
--- a/test/io/errortest_eof2
+++ b/test/testfiles/errortest_eof2
Binary files differ
diff --git a/test/io/errortest_noend b/test/testfiles/errortest_noend
index d90614628c..d90614628c 100644
--- a/test/io/errortest_noend
+++ b/test/testfiles/errortest_noend
Binary files differ