diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-08-06 13:49:13 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-08-06 13:49:13 +0200 |
| commit | b3fedb345162c1242b22446792aa80b6c10c7885 (patch) | |
| tree | 93430e0101c5a62cdcb3ffd74089085b58372451 | |
| parent | 16a9df1556afc1650bbc883303ab0ee283710ce9 (diff) | |
| download | Project-Tick-b3fedb345162c1242b22446792aa80b6c10c7885.tar.gz Project-Tick-b3fedb345162c1242b22446792aa80b6c10c7885.zip | |
Change directory structure of read tests
| -rw-r--r-- | test/CMakeLists.txt | 8 | ||||
| -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) | bin | 561 -> 561 bytes | |||
| -rw-r--r-- | test/testfiles/bigtest_uncompr (renamed from test/io/bigtest_uncompr) | bin | 1601 -> 1601 bytes | |||
| -rw-r--r-- | test/testfiles/errortest_eof1 (renamed from test/io/errortest_eof1) | bin | 43 -> 43 bytes | |||
| -rw-r--r-- | test/testfiles/errortest_eof2 (renamed from test/io/errortest_eof2) | bin | 94 -> 94 bytes | |||
| -rw-r--r-- | test/testfiles/errortest_noend (renamed from test/io/errortest_noend) | bin | 48 -> 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 Binary files differindex de1a91268b..de1a91268b 100644 --- a/test/io/bigtest.nbt +++ b/test/testfiles/bigtest.nbt diff --git a/test/io/bigtest_uncompr b/test/testfiles/bigtest_uncompr Binary files differindex dc1c9c113f..dc1c9c113f 100644 --- a/test/io/bigtest_uncompr +++ b/test/testfiles/bigtest_uncompr diff --git a/test/io/errortest_eof1 b/test/testfiles/errortest_eof1 Binary files differindex abb7ac564f..abb7ac564f 100644 --- a/test/io/errortest_eof1 +++ b/test/testfiles/errortest_eof1 diff --git a/test/io/errortest_eof2 b/test/testfiles/errortest_eof2 Binary files differindex 1e9a503484..1e9a503484 100644 --- a/test/io/errortest_eof2 +++ b/test/testfiles/errortest_eof2 diff --git a/test/io/errortest_noend b/test/testfiles/errortest_noend Binary files differindex d90614628c..d90614628c 100644 --- a/test/io/errortest_noend +++ b/test/testfiles/errortest_noend |
