Test library for MTS Socket Modem Arduino Shield devices for Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas ... more
doTests.h@13:cc03c4e85c69, 2015-06-25 (annotated)
- Committer:
- Mike Fiore
- Date:
- Thu Jun 25 08:45:51 2015 -0500
- Revision:
- 13:cc03c4e85c69
- Parent:
- 12:8855e127ccd5
fix whitespace
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mfiore | 7:d8a85e819d37 | 1 | #ifndef DOTESTS_H |
mfiore | 7:d8a85e819d37 | 2 | #define DOTESTS_H |
mfiore | 7:d8a85e819d37 | 3 | |
Vanger | 12:8855e127ccd5 | 4 | /*Input APN for cellular tests that use APN*/ |
Vanger | 12:8855e127ccd5 | 5 | static char* APN = ""; |
Vanger | 12:8855e127ccd5 | 6 | |
mfiore | 7:d8a85e819d37 | 7 | #include "TestRunner.h" |
mfiore | 7:d8a85e819d37 | 8 | #include <vector> |
mfiore | 7:d8a85e819d37 | 9 | |
mfiore | 7:d8a85e819d37 | 10 | #include "TestMTSText.h" |
mfiore | 7:d8a85e819d37 | 11 | #include "TestMTSLog.h" |
mfiore | 7:d8a85e819d37 | 12 | #include "TestMTSCircularBuffer.h" |
mfiore | 7:d8a85e819d37 | 13 | #include "TestHTTP.h" |
Vanger | 12:8855e127ccd5 | 14 | #include "TestHTTPS.h" |
mfiore | 7:d8a85e819d37 | 15 | #include "TestTCPSocketConnection.h" |
mfiore | 9:c48e5cfe8e2f | 16 | #include "TestUDPSocket.h" |
mfiore | 8:715480ee07e1 | 17 | #include "TestSMS.h" |
mfiore | 7:d8a85e819d37 | 18 | |
mfiore | 7:d8a85e819d37 | 19 | using namespace mts; |
mfiore | 7:d8a85e819d37 | 20 | |
mfiore | 7:d8a85e819d37 | 21 | static void doTests() { |
mfiore | 7:d8a85e819d37 | 22 | std::vector<TestCollection*> collections; |
mfiore | 8:715480ee07e1 | 23 | |
Vanger | 10:4056c7c30a1e | 24 | /* Note: Socket reception timeout values can be changed within the specific test header files if the radio is |
Vanger | 10:4056c7c30a1e | 25 | moving on too soon before receiving data */ |
mfiore | 7:d8a85e819d37 | 26 | collections.push_back(new TestMTSText); |
mfiore | 7:d8a85e819d37 | 27 | collections.push_back(new TestMTSLog); |
mfiore | 7:d8a85e819d37 | 28 | collections.push_back(new TestMTSCircularBuffer); |
mfiore | 7:d8a85e819d37 | 29 | collections.push_back(new TestHTTP); |
Vanger | 12:8855e127ccd5 | 30 | collections.push_back(new TestHTTPS); |
mfiore | 7:d8a85e819d37 | 31 | collections.push_back(new TestTCPSocketConnection); |
mfiore | 9:c48e5cfe8e2f | 32 | collections.push_back(new TestUDPSocket); |
mfiore | 8:715480ee07e1 | 33 | collections.push_back(new TestSMS); |
mfiore | 7:d8a85e819d37 | 34 | |
mfiore | 7:d8a85e819d37 | 35 | for (std::vector<TestCollection*>::iterator it = collections.begin(); it != collections.end(); it++) { |
mfiore | 7:d8a85e819d37 | 36 | TestRunner::addCollection(*it); |
mfiore | 7:d8a85e819d37 | 37 | } |
mfiore | 7:d8a85e819d37 | 38 | |
mfiore | 7:d8a85e819d37 | 39 | TestRunner::runTests(true, true, true, true); |
mfiore | 7:d8a85e819d37 | 40 | } |
mfiore | 7:d8a85e819d37 | 41 | |
mfiore | 7:d8a85e819d37 | 42 | #endif |