1
0

SelfTests: Print a quick message on test start.

This commit is contained in:
Mattes D 2016-06-16 17:34:17 +02:00
parent 36eefbf0f2
commit ea47247dc7
13 changed files with 45 additions and 1 deletions

View File

@ -66,6 +66,9 @@ static int Test(void)
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
LOGD("Test started");
LOGD("Running test");
auto NumFailed = Test(); auto NumFailed = Test();
LOG("BoundingBox test finished, number of failed tests: %d", NumFailed); LOG("BoundingBox test finished, number of failed tests: %d", NumFailed);
return NumFailed; return NumFailed;

View File

@ -68,9 +68,17 @@ static void TestWrap(void)
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
LOGD("Test started");
LOGD("Testing reads");
TestRead(); TestRead();
LOGD("Testing writes");
TestWrite(); TestWrite();
LOGD("Testing wraps");
TestWrap(); TestWrap();
LOG("ByteBuffer test finished."); LOG("ByteBuffer test finished.");
} }

View File

@ -6,6 +6,8 @@
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
LOGD("Test started");
class cMockAllocationPool class cMockAllocationPool
: public cAllocationPool<cChunkData::sChunkSection> : public cAllocationPool<cChunkData::sChunkSection>
{ {

View File

@ -6,6 +6,8 @@
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
LOGD("Test started");
class cMockAllocationPool class cMockAllocationPool
: public cAllocationPool<cChunkData::sChunkSection> : public cAllocationPool<cChunkData::sChunkSection>
{ {

View File

@ -6,6 +6,8 @@
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
LOGD("Test started");
class cMockAllocationPool class cMockAllocationPool
: public cAllocationPool<cChunkData::sChunkSection> : public cAllocationPool<cChunkData::sChunkSection>
{ {

View File

@ -16,6 +16,8 @@
int main(int argc, char ** argv) int main(int argc, char ** argv)
{ {
LOGD("Test started");
// Set up a cChunkData with known contents - all blocks 0x01, all metas 0x02: // Set up a cChunkData with known contents - all blocks 0x01, all metas 0x02:
class cMockAllocationPool class cMockAllocationPool
: public cAllocationPool<cChunkData::sChunkSection> : public cAllocationPool<cChunkData::sChunkSection>

View File

@ -4,6 +4,8 @@
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
LOGD("Test started");
class cMockAllocationPool class cMockAllocationPool
: public cAllocationPool<cChunkData::sChunkSection> : public cAllocationPool<cChunkData::sChunkSection>
{ {

View File

@ -98,11 +98,23 @@ static void TestParser5(void)
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
LOGD("Test started.");
LOGD("Running tests: 1");
TestParser1(); TestParser1();
LOGD("Running tests: 2");
TestParser2(); TestParser2();
LOGD("Running tests: 3");
TestParser3(); TestParser3();
LOGD("Running tests: 4");
TestParser4(); TestParser4();
LOGD("Running tests: 5");
TestParser5(); TestParser5();
LOG("CompositeChat test finished."); LOG("CompositeChat test finished.");
} }

View File

@ -71,7 +71,7 @@ public:
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
printf("HTTPMessageParser_file beginning\n"); LOGD("Test started");
// Open the input file: // Open the input file:
if (argc <= 1) if (argc <= 1)

View File

@ -41,6 +41,8 @@ static int DoTest(void)
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
LOGD("Test started");
// Print the current directory for reference: // Print the current directory for reference:
char folder[FILENAME_MAX]; char folder[FILENAME_MAX];
GetCurrentFolder(folder, sizeof(folder)); GetCurrentFolder(folder, sizeof(folder));

View File

@ -15,6 +15,7 @@
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
// Initialize the cNetwork subsystem: // Initialize the cNetwork subsystem:
LOGD("Initializing cNetwork...");
cNetworkSingleton::Get().Initialise(); cNetworkSingleton::Get().Initialise();
// Enumerate all the addresses: // Enumerate all the addresses:

View File

@ -118,7 +118,10 @@ static void DoTest(void)
int main() int main()
{ {
LOGD("Initializing cNetwork...\n");
cNetworkSingleton::Get().Initialise(); cNetworkSingleton::Get().Initialise();
LOGD("Testing...");
DoTest(); DoTest();
cNetworkSingleton::Get().Terminate(); cNetworkSingleton::Get().Terminate();

View File

@ -79,7 +79,12 @@ static void DoTest(void)
int main() int main()
{ {
LOGD("Initializing cNetwork...");
cNetworkSingleton::Get().Initialise();
LOGD("Running test...");
DoTest(); DoTest();
cNetworkSingleton::Get().Terminate(); cNetworkSingleton::Get().Terminate();
LOGD("Network test finished"); LOGD("Network test finished");
return 0; return 0;