diff options
author | Mattes D <github@xoft.cz> | 2016-06-19 14:57:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-19 14:57:14 +0200 |
commit | 5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7 (patch) | |
tree | 083bbf9029b971dbf7b74353c9c62c22de9c78c7 /tests/ChunkData | |
parent | Merge pull request #3224 from QUSpilPrgm/master (diff) | |
parent | cNetwork: Fixed possible hang when terminating immediately after init. (diff) | |
download | cuberite-5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7.tar cuberite-5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7.tar.gz cuberite-5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7.tar.bz2 cuberite-5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7.tar.lz cuberite-5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7.tar.xz cuberite-5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7.tar.zst cuberite-5ee6643804aa9cf5bc2a98b983ef7c453e78b8c7.zip |
Diffstat (limited to 'tests/ChunkData')
-rw-r--r-- | tests/ChunkData/ArraytoCoord.cpp | 2 | ||||
-rw-r--r-- | tests/ChunkData/CMakeLists.txt | 17 | ||||
-rw-r--r-- | tests/ChunkData/Coordinates.cpp | 2 | ||||
-rw-r--r-- | tests/ChunkData/Copies.cpp | 2 | ||||
-rw-r--r-- | tests/ChunkData/CopyBlocks.cpp | 2 | ||||
-rw-r--r-- | tests/ChunkData/creatable.cpp | 2 |
6 files changed, 27 insertions, 0 deletions
diff --git a/tests/ChunkData/ArraytoCoord.cpp b/tests/ChunkData/ArraytoCoord.cpp index 9d0ca6c8c..19f7ef105 100644 --- a/tests/ChunkData/ArraytoCoord.cpp +++ b/tests/ChunkData/ArraytoCoord.cpp @@ -6,6 +6,8 @@ int main(int argc, char** argv) { + LOGD("Test started"); + class cMockAllocationPool : public cAllocationPool<cChunkData::sChunkSection> { diff --git a/tests/ChunkData/CMakeLists.txt b/tests/ChunkData/CMakeLists.txt index bd2d6d9b4..8c1b10e9f 100644 --- a/tests/ChunkData/CMakeLists.txt +++ b/tests/ChunkData/CMakeLists.txt @@ -33,3 +33,20 @@ add_test(NAME arraystocoords-test COMMAND arraystocoords-exe) add_executable(copyblocks-exe CopyBlocks.cpp) target_link_libraries(copyblocks-exe ChunkBuffer) add_test(NAME copyblocks-test COMMAND copyblocks-exe) + + + + +# Put all test projects into a separate folder: +set_target_properties( + arraystocoords-exe + coordinates-exe + copies-exe + copyblocks-exe + creatable-exe + PROPERTIES FOLDER Tests/ChunkData +) +set_target_properties( + ChunkBuffer + PROPERTIES FOLDER Lib +) diff --git a/tests/ChunkData/Coordinates.cpp b/tests/ChunkData/Coordinates.cpp index 1aabb5374..384af7e03 100644 --- a/tests/ChunkData/Coordinates.cpp +++ b/tests/ChunkData/Coordinates.cpp @@ -6,6 +6,8 @@ int main(int argc, char** argv) { + LOGD("Test started"); + class cMockAllocationPool : public cAllocationPool<cChunkData::sChunkSection> { diff --git a/tests/ChunkData/Copies.cpp b/tests/ChunkData/Copies.cpp index 440819e91..6353d7273 100644 --- a/tests/ChunkData/Copies.cpp +++ b/tests/ChunkData/Copies.cpp @@ -6,6 +6,8 @@ int main(int argc, char** argv) { + LOGD("Test started"); + class cMockAllocationPool : public cAllocationPool<cChunkData::sChunkSection> { diff --git a/tests/ChunkData/CopyBlocks.cpp b/tests/ChunkData/CopyBlocks.cpp index 99f416e94..b76b2d420 100644 --- a/tests/ChunkData/CopyBlocks.cpp +++ b/tests/ChunkData/CopyBlocks.cpp @@ -16,6 +16,8 @@ int main(int argc, char ** argv) { + LOGD("Test started"); + // Set up a cChunkData with known contents - all blocks 0x01, all metas 0x02: class cMockAllocationPool : public cAllocationPool<cChunkData::sChunkSection> diff --git a/tests/ChunkData/creatable.cpp b/tests/ChunkData/creatable.cpp index fc786f688..a879c3dd7 100644 --- a/tests/ChunkData/creatable.cpp +++ b/tests/ChunkData/creatable.cpp @@ -4,6 +4,8 @@ int main(int argc, char** argv) { + LOGD("Test started"); + class cMockAllocationPool : public cAllocationPool<cChunkData::sChunkSection> { |