Debian Codegraph @

test_suite/system_tests/subsystems/test_noninstanced_creation.hxx

raw symbols SCIP
1 /*
2 * Copyright (C) 2018 Edward d'Auvergne
3 *
4 * This file is part of the program FlightGear.
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20
21 #ifndef _FG_NONINSTANCED_SUBSYSTEM_SYSTEM_TESTS_HXX
22 #define _FG_NONINSTANCED_SUBSYSTEM_SYSTEM_TESTS_HXX
23
24
25 #include <cppunit/extensions/HelperMacros.h>
26 #include <cppunit/TestFixture.h>
27
28 #include <simgear/structure/subsystem_mgr.hxx>
29
30
31 // The system tests.
32 class NonInstancedSubsystemTests : public CppUnit::TestFixture
33 {
34 // Set up the test suite.
35 CPPUNIT_TEST_SUITE(NonInstancedSubsystemTests);
36 //CPPUNIT_TEST(testagRadar); // Not registered yet.
37 CPPUNIT_TEST(testAirportDynamicsManager);
38 //CPPUNIT_TEST(testAreaSampler); // Not registered yet.
39 //CPPUNIT_TEST(testAutopilot); // Not registered yet.
40 CPPUNIT_TEST(testCanvasMgr);
41 CPPUNIT_TEST(testCockpitDisplayManager);
42 CPPUNIT_TEST(testDigitalFilter);
43 CPPUNIT_TEST(testEphemeris);
44 CPPUNIT_TEST(testErrorReporter);
45 CPPUNIT_TEST(testFDMShell);
46 //CPPUNIT_TEST(testFGACMS); // Not registered yet.
47 //CPPUNIT_TEST(testFGADA); // Not registered yet.
48 CPPUNIT_TEST(testFGAIManager);
49 CPPUNIT_TEST(testFGAircraftModel);
50 CPPUNIT_TEST(testFGATCManager);
51 //CPPUNIT_TEST(testFGBalloonSim); // Not registered yet.
52 CPPUNIT_TEST(testFGCom);
53 CPPUNIT_TEST(testFGControls);
54 CPPUNIT_TEST(testFGDNSClient);
55 //CPPUNIT_TEST(testFGElectricalSystem); // Not registered yet.
56 //CPPUNIT_TEST(testFGEnvironmentMgr); // Segfault.
57 //CPPUNIT_TEST(testFGExternalNet); // Not registered yet.
58 //CPPUNIT_TEST(testFGExternalPipe); // Not registered yet.
59 CPPUNIT_TEST(testFGFlightHistory);
60 CPPUNIT_TEST(testFGHIDEventInput);
61 CPPUNIT_TEST(testFGHTTPClient);
62 //CPPUNIT_TEST(testFGHttpd); // Not registered yet.
63 //CPPUNIT_TEST(testFGInput); // Segfault.
64 CPPUNIT_TEST(testFGInstrumentMgr);
65 CPPUNIT_TEST(testFGInterpolator);
66 CPPUNIT_TEST(testFGIO);
67 //CPPUNIT_TEST(testFGJoystickInput); // Segfault.
68 //CPPUNIT_TEST(testFGJSBsim); // Not registered yet.
69 CPPUNIT_TEST(testFGKeyboardInput);
70 //CPPUNIT_TEST(testFGLaRCsim); // Not registered yet.
71 CPPUNIT_TEST(testFGLight);
72 //CPPUNIT_TEST(testFGLinuxEventInput); // Need to handle #define INPUTEVENT_CLASS FGLinuxEventInput.
73 CPPUNIT_TEST(testFGLogger);
74 //CPPUNIT_TEST(testFGMacOSXEventInput); // Need to handle #define INPUTEVENT_CLASS FGMacOSXEventInput.
75 //CPPUNIT_TEST(testFGMagicCarpet); // Not registered yet.
76 CPPUNIT_TEST(testFGMagVarManager);
77 CPPUNIT_TEST(testFGModelMgr);
78 CPPUNIT_TEST(testFGMouseInput);
79 //CPPUNIT_TEST(testFGMultiplayMgr); // double free or corruption (fasttop): 0x0000000006423860
80 CPPUNIT_TEST(testFGNasalSys);
81 //CPPUNIT_TEST(testFGNullFDM); // Not registered yet.
82 //CPPUNIT_TEST(testFGPanel); // Not registered yet.
83 //CPPUNIT_TEST(testFGPrecipitationMgr); // Segfault.
84 CPPUNIT_TEST(testFGProperties);
85 //CPPUNIT_TEST(testFGReplay); // Segfault.
86 CPPUNIT_TEST(testFGRidgeLift);
87 //CPPUNIT_TEST(testFGRouteMgr); // Partially unstable (sometimes segfault or sometimes double free or corruption).
88 //CPPUNIT_TEST(testFGScenery); // Segfault.
89 CPPUNIT_TEST(testFGSoundManager);
90 CPPUNIT_TEST(testFGSubmodelMgr);
91 CPPUNIT_TEST(testFGSystemMgr);
92 CPPUNIT_TEST(testFGTrafficManager);
93 //CPPUNIT_TEST(testFGUFO); // Not registered yet.
94 //CPPUNIT_TEST(testFGViewMgr); // Not registered yet.
95 CPPUNIT_TEST(testFGVoiceMgr);
96 //CPPUNIT_TEST(testFGXMLAutopilotGroup); // Not registered yet.
97 CPPUNIT_TEST(testFlipFlop);
98 CPPUNIT_TEST(testGraphicsPresets);
99 //CPPUNIT_TEST(testGroundRadar); // Not registered yet.
100 CPPUNIT_TEST(testGUIMgr);
101 CPPUNIT_TEST(testHighlight);
102 //CPPUNIT_TEST(testInstrumentGroup); // Not registered yet.
103 CPPUNIT_TEST(testLogic);
104 //CPPUNIT_TEST(testNavDisplay); // Not registered yet.
105 //CPPUNIT_TEST(testNewGUI); // double free or corruption (fasttop): 0x000000000701d950
106 //CPPUNIT_TEST(testNoaaMetarRealWxController); // Not registered yet.
107 CPPUNIT_TEST(testPerformanceDB);
108 CPPUNIT_TEST(testPIDController);
109 CPPUNIT_TEST(testPISimpleController);
110 //CPPUNIT_TEST(testPitotSystem); // Not registered yet.
111 CPPUNIT_TEST(testPredictor);
112 CPPUNIT_TEST(testSGEventMgr);
113 //CPPUNIT_TEST(testSGPerformanceMonitor); // Not registered yet.
114 CPPUNIT_TEST(testSGSoundMgr);
115 CPPUNIT_TEST(testSGTerraSync);
116 //CPPUNIT_TEST(testStateMachineComponent); // Not registered yet.
117 //CPPUNIT_TEST(testStaticSystem); // Not registered yet.
118 //CPPUNIT_TEST(testTimeManager); // Segfault.
119 //CPPUNIT_TEST(testVacuumSystem); // Not registered yet.
120 //CPPUNIT_TEST(testView); // Not registered yet.
121 //CPPUNIT_TEST(testwxRadarBg); // Not registered yet.
122 //CPPUNIT_TEST(testYASim); // Not registered yet.
123 CPPUNIT_TEST_SUITE_END();
124
125 public:
126 // Set up function for each test.
127 void setUp();
128
129 // Clean up after each test.
130 void tearDown();
131
132 // The subsystem tests.
133 void testagRadar();
134 void testAirportDynamicsManager();
135 void testAreaSampler();
136 void testAutopilot();
137 void testCanvasMgr();
138 void testCockpitDisplayManager();
139 void testDigitalFilter();
140 void testEphemeris();
141 void testErrorReporter();
142 void testFDMShell();
143 void testFGACMS();
144 void testFGADA();
145 void testFGAIManager();
146 void testFGAircraftModel();
147 void testFGATCManager();
148 void testFGBalloonSim();
149 void testFGCom();
150 void testFGControls();
151 void testFGDNSClient();
152 void testFGElectricalSystem();
153 void testFGEnvironmentMgr();
154 void testFGExternalNet();
155 void testFGExternalPipe();
156 void testFGFlightHistory();
157 void testFGHIDEventInput();
158 void testFGHTTPClient();
159 void testFGHttpd();
160 void testFGInput();
161 void testFGInstrumentMgr();
162 void testFGInterpolator();
163 void testFGIO();
164 void testFGJoystickInput();
165 void testFGJSBsim();
166 void testFGKeyboardInput();
167 void testFGLaRCsim();
168 void testFGLight();
169 void testFGLinuxEventInput();
170 void testFGLogger();
171 void testFGMacOSXEventInput();
172 void testFGMagicCarpet();
173 void testFGMagVarManager();
174 void testFGModelMgr();
175 void testFGMouseInput();
176 void testFGMultiplayMgr();
177 void testFGNasalSys();
178 void testFGNullFDM();
179 void testFGPanel();
180 void testFGPrecipitationMgr();
181 void testFGProperties();
182 void testFGReplay();
183 void testFGRidgeLift();
184 void testFGRouteMgr();
185 void testFGScenery();
186 void testFGSoundManager();
187 void testFGSubmodelMgr();
188 void testFGSystemMgr();
189 void testFGTrafficManager();
190 void testFGUFO();
191 void testFGViewMgr();
192 void testFGVoiceMgr();
193 void testFGXMLAutopilotGroup();
194 void testFlipFlop();
195 void testGraphicsPresets();
196 void testGroundRadar();
197 void testGUIMgr();
198 void testHighlight();
199 void testInstrumentGroup();
200 void testLogic();
201 void testNavDisplay();
202 void testNewGUI();
203 void testNoaaMetarRealWxController();
204 void testPerformanceDB();
205 void testPIDController();
206 void testPISimpleController();
207 void testPitotSystem();
208 void testPredictor();
209 void testSGEventMgr();
210 void testSGPerformanceMonitor();
211 void testSGSoundMgr();
212 void testSGTerraSync();
213 void testStateMachineComponent();
214 void testStaticSystem();
215 void testTimeManager();
216 void testVacuumSystem();
217 void testView();
218 void testwxRadarBg();
219 void testYASim();
220
221 private:
222 // The subsystem manager.
223 std::unique_ptr<SGSubsystemMgr> _mgr;
224
225 // Helper functions.
226 void create(const char* name);
227 };
228
229 #endif // _FG_NONINSTANCED_SUBSYSTEM_SYSTEM_TESTS_HXX