Repository navigation
Expand file tree
/
Copy pathTesting.cpp
More file actions
108 lines (90 loc) · 1.82 KB
/
Copy pathTesting.cpp
File metadata and controls
108 lines (90 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
* Testing.cpp
*
* Created on: Dec 24, 2014
* Author: Xander Houtman
*/
#define LOGLEVEL 4
// Related header
#include "Testing.h"
// Logging
#include "logging/TextLogger.h"
// Global
#include "test/WDTTest.h"
#include "test/PostOfficeTest.h"
// Actuator
#include "test/actuator/ActuatorListTest.h"
#include "test/actuator/AbstractActuatorTest.h"
// Sensor
#include "test/sensor/SensorStateBufferTest.h"
#include "test/sensor/AbstractSensorTest.h"
// CAN
#include "test/can/AcceptanceFilterTest.h"
#include "test/PbValueQueueTest.h"
#include "test/can/CANTest.h"
#include "test/IntegrationTest.h"
#include "test/SdlTest.h"
using namespace STE2015;
void testWDT()
{
//Failure of it returns (different from other tests)
WDTTest::testTimer();
INFO("WDT test Failed. Should have generated hardfault.");
}
void testSensorStateBuffer()
{
SensorStateBufferTest().SensorStateBufferTests();
INFO("SensorStateBuffer tests are finished");
}
void testAbstractActuator()
{
AbstractActuatorTest().test();
INFO("AbstractActuator tests are finished.");
}
void testActuatorList()
{
ActuatorListTest::test();
INFO("ActuatorList tests are finished");
}
void testPostOffice()
{
PostOfficeTest::testPostOffice();
INFO("PostOffice tests are finished");
}
void testAbstractSensor()
{
AbstractSensorTest().test();
INFO("AbstractSensor tests are finished.");
}
void testBaseSensor()
{
//:TODO: call tests
}
void testBaseActuator()
{
//:TODO: call tests
}
void testAcceptanceFilter()
{
AcceptanceFilterTest::test();
}
void testCanClasses()
{
CANTest::test();
INFO("CAN tests finished");
}
void testPBValueQueue()
{
PbValueQueueTest::test();
INFO("PBValueQueue tests are finished");
}
void integrationTest()
{
IntegrationTest::test();
INFO("Integration test finished");
}
void sdlTest()
{
SDLTest::testSDL();
INFO("SDL tests finished");
}