Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Revision 71:0d1b99ae9b58, committed 2013-06-27
- Comitter:
- ashleymills
- Date:
- Thu Jun 27 13:09:14 2013 +0000
- Parent:
- 70:619a2da3e40d
- Child:
- 72:0e8e769fcf76
- Commit message:
- Updated dependencies to latest versions
Changed in this revision
--- a/Tests/TestHelper.h Fri Mar 08 13:45:51 2013 +0000 +++ b/Tests/TestHelper.h Thu Jun 27 13:09:14 2013 +0000 @@ -2,11 +2,12 @@ bool connectToSocket(char *ipAddress, int port, int *sockfd); #define APN_PAYG +//#define APN_CUSTOM //#define APN_GDSP //#define APN_CONTRACT #ifdef APN_GDSP - #define APN "ppinternetd.gdsp" + #define APN "ppinternet.gdsp" #define APN_USERNAME "" #define APN_PASSWORD "" #endif @@ -21,4 +22,10 @@ #define APN "smart" #define APN_USERNAME "web" #define APN_PASSWORD "web" +#endif + +#ifdef APN_CUSTOM + #define APN "" + #define APN_USERNAME "" + #define APN_PASSWORD "" #endif \ No newline at end of file
--- a/Tests/Tests.h Fri Mar 08 13:45:51 2013 +0000 +++ b/Tests/Tests.h Thu Jun 27 13:09:14 2013 +0000 @@ -23,27 +23,32 @@ const int gNumInteractiveTests = 5; const int gSoakTests[] = {}; const int gNumSoakTests = 0; +const int gTestsInternet[] = {0,1,14}; +const int gNumTestsInternet = 3; enum TestProfile { TESTS_ALL, TESTS_AUTOMATED, TESTS_MANUAL, TESTS_SOAK, + TESTS_INTERNET, TESTS_END }; -static const int* gTestProfiles[4] = { +static const int* gTestProfiles[5] = { gAllTests, gAutomatedTests, gInteractiveTests, - gSoakTests + gSoakTests, + gTestsInternet }; -static const int gTestProfileLengths[4] = { +static const int gTestProfileLengths[5] = { gNumAllTests, gNumAutomatedTests, gNumInteractiveTests, - gNumSoakTests + gNumSoakTests, + gNumTestsInternet }; extern const char* gTestDescriptions[];
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/VodafoneUSBModem.lib Thu Jun 27 13:09:14 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/VodafoneUSBModem/#f8d65dc86a97
--- a/VodafoneUSBModem_bleedingedge.lib Fri Mar 08 13:45:51 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/donatien/code/VodafoneUSBModem_bleedingedge/#adfd686297d6
--- a/main.cpp Fri Mar 08 13:45:51 2013 +0000 +++ b/main.cpp Thu Jun 27 13:09:14 2013 +0000 @@ -1,14 +1,14 @@ #define __DEBUG__ 4 //Maximum verbosity #ifndef __MODULE__ -#define __MODULE__ "net_3g_basic_http_test.cpp" +#define __MODULE__ "main.cpp" #endif #include "LogHeader.h" #include "mbed.h" - #include "rtos.h" #include "VodafoneUSBModem.h" + #include "VodafoneTestCase.h" #include "TestManager.h" @@ -49,8 +49,9 @@ LOG("Running tests."); TestManager *m = new TestManager(&modem); - m->runTestProfile(TESTS_AUTOMATED); - //m->runTest(11); + //m->runTestProfile(TESTS_AUTOMATED); + //m->runTestProfile(TESTS_INTERNET); + m->runTest(11); // this thread just waits and blinks leds periodically while(1) {
--- a/mbed-rtos.lib Fri Mar 08 13:45:51 2013 +0000 +++ b/mbed-rtos.lib Thu Jun 27 13:09:14 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#53e6cccd8782 +http://mbed.org/users/mbed_official/code/mbed-rtos/#58b30ac3f00e