summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-16 17:34:17 +0200
committerMattes D <github@xoft.cz>2016-06-18 13:12:10 +0200
commitea47247dc72a7ee44f97628e45c5b6867f46bedf (patch)
treead1dcecc7cb1a97f4b350a0c0d2d9a64e10f879e
parentSelfTests: Removed the unneeded cSelfTests class. (diff)
downloadcuberite-ea47247dc72a7ee44f97628e45c5b6867f46bedf.tar
cuberite-ea47247dc72a7ee44f97628e45c5b6867f46bedf.tar.gz
cuberite-ea47247dc72a7ee44f97628e45c5b6867f46bedf.tar.bz2
cuberite-ea47247dc72a7ee44f97628e45c5b6867f46bedf.tar.lz
cuberite-ea47247dc72a7ee44f97628e45c5b6867f46bedf.tar.xz
cuberite-ea47247dc72a7ee44f97628e45c5b6867f46bedf.tar.zst
cuberite-ea47247dc72a7ee44f97628e45c5b6867f46bedf.zip
-rw-r--r--tests/BoundingBox/BoundingBoxTest.cpp3
-rw-r--r--tests/ByteBuffer/ByteBufferTest.cpp8
-rw-r--r--tests/ChunkData/ArraytoCoord.cpp2
-rw-r--r--tests/ChunkData/Coordinates.cpp2
-rw-r--r--tests/ChunkData/Copies.cpp2
-rw-r--r--tests/ChunkData/CopyBlocks.cpp2
-rw-r--r--tests/ChunkData/creatable.cpp2
-rw-r--r--tests/CompositeChat/CompositeChatTest.cpp12
-rw-r--r--tests/HTTP/HTTPMessageParser_file.cpp2
-rw-r--r--tests/LoadablePieces/LoadablePieces.cpp2
-rw-r--r--tests/Network/EnumInterfaces.cpp1
-rw-r--r--tests/Network/Google.cpp3
-rw-r--r--tests/Network/NameLookup.cpp5
13 files changed, 45 insertions, 1 deletions
diff --git a/tests/BoundingBox/BoundingBoxTest.cpp b/tests/BoundingBox/BoundingBoxTest.cpp
index e3df95efa..988a2181e 100644
--- a/tests/BoundingBox/BoundingBoxTest.cpp
+++ b/tests/BoundingBox/BoundingBoxTest.cpp
@@ -66,6 +66,9 @@ static int Test(void)
int main(int argc, char * argv[])
{
+ LOGD("Test started");
+
+ LOGD("Running test");
auto NumFailed = Test();
LOG("BoundingBox test finished, number of failed tests: %d", NumFailed);
return NumFailed;
diff --git a/tests/ByteBuffer/ByteBufferTest.cpp b/tests/ByteBuffer/ByteBufferTest.cpp
index 98a802554..ddfe9e1d2 100644
--- a/tests/ByteBuffer/ByteBufferTest.cpp
+++ b/tests/ByteBuffer/ByteBufferTest.cpp
@@ -68,9 +68,17 @@ static void TestWrap(void)
int main(int argc, char * argv[])
{
+ LOGD("Test started");
+
+ LOGD("Testing reads");
TestRead();
+
+ LOGD("Testing writes");
TestWrite();
+
+ LOGD("Testing wraps");
TestWrap();
+
LOG("ByteBuffer test finished.");
}
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/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>
{
diff --git a/tests/CompositeChat/CompositeChatTest.cpp b/tests/CompositeChat/CompositeChatTest.cpp
index 12d9de673..65d05b6f1 100644
--- a/tests/CompositeChat/CompositeChatTest.cpp
+++ b/tests/CompositeChat/CompositeChatTest.cpp
@@ -98,11 +98,23 @@ static void TestParser5(void)
int main(int argc, char * argv[])
{
+ LOGD("Test started.");
+
+ LOGD("Running tests: 1");
TestParser1();
+
+ LOGD("Running tests: 2");
TestParser2();
+
+ LOGD("Running tests: 3");
TestParser3();
+
+ LOGD("Running tests: 4");
TestParser4();
+
+ LOGD("Running tests: 5");
TestParser5();
+
LOG("CompositeChat test finished.");
}
diff --git a/tests/HTTP/HTTPMessageParser_file.cpp b/tests/HTTP/HTTPMessageParser_file.cpp
index cd6dfa605..8675dd2a5 100644
--- a/tests/HTTP/HTTPMessageParser_file.cpp
+++ b/tests/HTTP/HTTPMessageParser_file.cpp
@@ -71,7 +71,7 @@ public:
int main(int argc, char * argv[])
{
- printf("HTTPMessageParser_file beginning\n");
+ LOGD("Test started");
// Open the input file:
if (argc <= 1)
diff --git a/tests/LoadablePieces/LoadablePieces.cpp b/tests/LoadablePieces/LoadablePieces.cpp
index cce43eee1..c4c44e3db 100644
--- a/tests/LoadablePieces/LoadablePieces.cpp
+++ b/tests/LoadablePieces/LoadablePieces.cpp
@@ -41,6 +41,8 @@ static int DoTest(void)
int main(int argc, char * argv[])
{
+ LOGD("Test started");
+
// Print the current directory for reference:
char folder[FILENAME_MAX];
GetCurrentFolder(folder, sizeof(folder));
diff --git a/tests/Network/EnumInterfaces.cpp b/tests/Network/EnumInterfaces.cpp
index a24158c62..e4c6be219 100644
--- a/tests/Network/EnumInterfaces.cpp
+++ b/tests/Network/EnumInterfaces.cpp
@@ -15,6 +15,7 @@
int main(int argc, char * argv[])
{
// Initialize the cNetwork subsystem:
+ LOGD("Initializing cNetwork...");
cNetworkSingleton::Get().Initialise();
// Enumerate all the addresses:
diff --git a/tests/Network/Google.cpp b/tests/Network/Google.cpp
index 23017d23b..4332828d6 100644
--- a/tests/Network/Google.cpp
+++ b/tests/Network/Google.cpp
@@ -118,7 +118,10 @@ static void DoTest(void)
int main()
{
+ LOGD("Initializing cNetwork...\n");
cNetworkSingleton::Get().Initialise();
+
+ LOGD("Testing...");
DoTest();
cNetworkSingleton::Get().Terminate();
diff --git a/tests/Network/NameLookup.cpp b/tests/Network/NameLookup.cpp
index 4781a59ec..2904a0199 100644
--- a/tests/Network/NameLookup.cpp
+++ b/tests/Network/NameLookup.cpp
@@ -79,7 +79,12 @@ static void DoTest(void)
int main()
{
+ LOGD("Initializing cNetwork...");
+ cNetworkSingleton::Get().Initialise();
+
+ LOGD("Running test...");
DoTest();
+
cNetworkSingleton::Get().Terminate();
LOGD("Network test finished");
return 0;