MultiTech / MTS-Test

Dependents:   mtsas mtsas mtsas mtsas ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers doTests.h Source File

doTests.h

00001 #ifndef DOTESTS_H
00002 #define DOTESTS_H
00003 
00004 /*Input APN for cellular tests that use APN*/
00005 static char* APN = "";
00006 
00007 #include "TestRunner.h"
00008 #include <vector>
00009 
00010 #include "TestMTSText.h"
00011 #include "TestMTSLog.h"
00012 #include "TestMTSCircularBuffer.h"
00013 #include "TestHTTP.h"
00014 #include "TestHTTPS.h"
00015 #include "TestTCPSocketConnection.h"
00016 #include "TestUDPSocket.h"
00017 #include "TestSMS.h"
00018 
00019 using namespace mts;
00020 
00021 static void doTests() {
00022     std::vector<TestCollection*> collections;
00023     
00024     /* Note: Socket reception timeout values can be changed within the specific test header files if the radio is
00025         moving on too soon before receiving data */
00026     collections.push_back(new TestMTSText);
00027     collections.push_back(new TestMTSLog);
00028     collections.push_back(new TestMTSCircularBuffer);
00029     collections.push_back(new TestHTTP);
00030     collections.push_back(new TestHTTPS);
00031     collections.push_back(new TestTCPSocketConnection);
00032     collections.push_back(new TestUDPSocket);
00033     collections.push_back(new TestSMS);
00034 
00035     for (std::vector<TestCollection*>::iterator it = collections.begin(); it != collections.end(); it++) {
00036         TestRunner::addCollection(*it);
00037     }
00038 
00039     TestRunner::runTests(true, true, true, true);
00040 }
00041 
00042 #endif