SelfTests: Print a quick message on test start.
This commit is contained in:
parent
36eefbf0f2
commit
ea47247dc7
@ -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;
|
||||||
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
{
|
{
|
||||||
|
@ -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>
|
||||||
{
|
{
|
||||||
|
@ -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>
|
||||||
{
|
{
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
{
|
{
|
||||||
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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));
|
||||||
|
@ -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:
|
||||||
|
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user