Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Diff: TestManager.cpp
- Revision:
- 30:dd2beda340c6
- Parent:
- 27:0297dbc3252b
- Parent:
- 29:c0e6f198db84
- Child:
- 31:9231acdde9ff
- Child:
- 32:8ff0b67bb58c
--- a/TestManager.cpp Thu Sep 06 15:13:38 2012 +0000 +++ b/TestManager.cpp Wed Sep 12 10:18:28 2012 +0000 @@ -7,11 +7,13 @@ _tests.push_back((VodafoneTestCase*)new Test10(_modem,10)); for(int i=11; i<12; i++) { _tests.push_back(NULL); } - _tests.push_back((VodafoneTestCase*)new Test12(_modem,12)); _tests.push_back((VodafoneTestCase*)new Test13(_modem,13)); - for(int i=14; i<21; i++) { _tests.push_back(NULL); } + for(int i=14; i<16; i++) { _tests.push_back(NULL); } + _tests.push_back((VodafoneTestCase*)new Test16(_modem,16)); + + for(int i=17; i<21; i++) { _tests.push_back(NULL); } _tests.push_back((VodafoneTestCase*)new Test21(_modem,21)); _tests.push_back((VodafoneTestCase*)new Test22(_modem,22)); @@ -25,6 +27,7 @@ for(int i=27; i<50; i++) { _tests.push_back(NULL); } _tests.push_back((VodafoneTestCase*)new Test50(_modem,50)); + _tests.push_back((VodafoneTestCase*)new Test56(_modem,45)); } int TestManager::getTestProfileLength(TestProfile profile) { @@ -37,9 +40,11 @@ } int TestManager::executeTestProfile(TestProfile profile) { + int numPassed = 0; if(profile <TESTS_END) { // no test for >= 0 since TestProfile is unsigned numPassed = executeTestList(gTestProfiles[profile], gTestProfileLengths[profile]); + } else { LOG("Test profile out of bounds. Must be between 0 and %d",TESTS_END-1); return 0; @@ -69,6 +74,8 @@ } int TestManager::executeTestList(const int *list, const int listLen) { + LOG("The executeTestList is: %d", list); + LOG("The executeTestListLength is: %d", listLen); int successfullTests = 0; LOG("Running %d tests...",listLen); for(int i=0; i<listLen; i++) {