Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Revision 56:6ca2d4c1ffc4, committed 2012-10-15
- Comitter:
- nherriot
- Date:
- Mon Oct 15 15:55:22 2012 +0000
- Parent:
- 53:54b2d3a0c7bf
- Child:
- 57:b76b3bdbe533
- Commit message:
- nothing special
Changed in this revision
Tests/Tests.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Tests/Tests.cpp Fri Oct 12 10:03:37 2012 +0000 +++ b/Tests/Tests.cpp Mon Oct 15 15:55:22 2012 +0000 @@ -82,8 +82,8 @@ // globals used for tests const char* gMyMessage = "myMessage is golden"; -const char* gTestPhoneNumber = "+447717275049"; -//const char* testPhoneNumber = "+447785666088"; +//const char* gTestPhoneNumber = "+447717275049"; +const char* gTestPhoneNumber = "+447785666088"; const char* gTestMessage = "this is a test message !"; const char* gAlphabetNumbersMessage = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"; const char* gAllCharsMessage = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ[]{}()!�$%&*,.':;";
--- a/main.cpp Fri Oct 12 10:03:37 2012 +0000 +++ b/main.cpp Mon Oct 15 15:55:22 2012 +0000 @@ -23,6 +23,26 @@ time_t gPreviousUptime = 0; time_t gUptime = 0; +<<<<<<< local +void loopForever() { + while(1) { + Thread::wait(1000); + time_t now = time(NULL); + gPreviousUptime = gUptime; + } +} + +void test(void const*) { + VodafoneUSBModem modem; + LOG("Constructing TestManager"); + LOG("Running tests."); + TestManager *m = new TestManager(&modem); + int numPassed = m->executeTestProfile(TESTS_MANUAL); + loopForever(); +} + +======= +>>>>>>> other void setTime() { struct tm t; t.tm_year = 100;