Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Diff: main.cpp
- Revision:
- 22:5b1feecf2aeb
- Parent:
- 20:18373fb68ad7
- Child:
- 23:408199b5d2cb
--- a/main.cpp Tue Sep 04 15:36:59 2012 +0000 +++ b/main.cpp Wed Sep 05 14:47:44 2012 +0000 @@ -11,7 +11,6 @@ #include "VodafoneUSBModem.h" #include "VodafoneTestCase.h" #include "TestManager.h" -#include "Tests.h" DigitalOut led1(LED1); DigitalOut led2(LED2); @@ -24,11 +23,11 @@ VodafoneUSBModem modem; LOG("Constructing TestManager"); TestManager *m = new TestManager(&modem); - LOG("Running all automated tests"); - - int numPassed = m->executeTestList(gAutomatedTests,gNumAutomatedTests); - LOG("%d tests complete: %d passes and %d failures.", - gNumAutomatedTests,numPassed,gNumAutomatedTests-numPassed); + LOG("Running tests."); + TestProfile profile = TESTS_AUTOMATED; + int numPassed = m->executeTestProfile(profile); + int numTests = m->getTestProfileLength(profile); + LOG("%d tests complete: %d passes and %d failures.",numTests,numPassed,numTests-numPassed); while(1) { Thread::wait(1000);