Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

RegressionTest.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // RegressionTest.cpp 00005 // 00006 // Version 1.0 00007 // Date 13.09.02 00008 // Author A. Pasetti (P&P Software) 00009 00010 #include "../Utilities/TestSuite.h" 00011 #include "../Utilities/TestUtilities.h" 00012 00013 #include "TestCaseBasicDatabase_1.h" 00014 #include "TestCaseBasicDataPool_1.h" 00015 #include "TestCaseBasicPUSTcLoader_1.h" 00016 #include "TestCaseBasicPUSTmStream_1.h" 00017 #include "TestCaseBasicReconfigurer_1.h" 00018 #include "TestCaseByteArrayTelemetryStream_1.h" 00019 #include "TestCaseChecksum_1.h" 00020 #include "TestCaseControlAction_1.h" 00021 #include "TestCaseControlList_1.h" 00022 #include "TestCaseCycleDataItem16TmStream_1.h" 00023 #include "TestCaseCyclingPunctualActionModeManager_1.h" 00024 #include "TestCaseCyclingTelemetryModeManager_1.h" 00025 #include "TestCaseDataItem_1.h" 00026 #include "TestCaseDataItem16TmWord_1.h" 00027 #include "TestCaseDataPoolMonitor_1.h" 00028 #include "TestCaseDeltaProfile_1.h" 00029 #include "TestCaseDummyConditionalPunctualAction_1.h" 00030 #include "TestCaseDummyConfigurableManoeuvre_1.h" 00031 #include "TestCaseDummyCopyControlBlock_1.h" 00032 #include "TestCaseDummyCriticalTelecommand_1.h" 00033 #include "TestCaseDummyCriticalTelecommand_2.h" 00034 #include "TestCaseDummyDatabase_1.h" 00035 #include "TestCaseDummyDataItemControlBlock_1.h" 00036 #include "TestCaseDummyDataPool_1.h" 00037 #include "TestCaseDummyDataPoolControlBlock_1.h" 00038 #include "TestCaseDummyFsmState_1.h" 00039 #include "TestCaseDummyManoeuvre_1.h" 00040 #include "TestCaseDummyModeManager_1.h" 00041 #include "TestCaseDummyObsClock_1.h" 00042 #include "TestCaseDummyPointerControlBlock_1.h" 00043 #include "TestCaseDummyPunctualAction_1.h" 00044 #include "TestCaseDummyPUSTelecommand_1.h" 00045 #include "TestCaseDummyPUSTelemetryPacket_1.h" 00046 #include "TestCaseDummyTelecommand_1.h" 00047 #include "TestCaseDummyTelecommandLoader_1.h" 00048 #include "TestCaseDummyTelemetryPacket_1.h" 00049 #include "TestCaseDummyTelemetryStream_1.h" 00050 #include "TestCaseDummyTracer_1.h" 00051 #include "TestCaseEvent_1.h" 00052 #include "TestCaseEventRepository_1.h" 00053 #include "TestCaseEventRepository_2.h" 00054 #include "TestCaseEventRepository_3.h" 00055 #include "TestCaseFdirCheck_1.h" 00056 #include "TestCaseFileTelemetryStream_1.h" 00057 #include "TestCaseFileTelemetryStream_2.h" 00058 #include "TestCaseForbiddenValueProfile_1.h" 00059 #include "TestCaseFromFsmEvent_1.h" 00060 #include "TestCaseFsmEvent_1.h" 00061 #include "TestCaseFSM_1.h" 00062 #include "TestCaseFSM_2.h" 00063 #include "TestCaseFSM_3.h" 00064 #include "TestCaseInRangeProfile_1.h" 00065 #include "TestCaseIntStack_1.h" 00066 #include "TestCaseManoeuvreManager_1.h" 00067 #include "TestCaseManoeuvreManager_2.h" 00068 #include "TestCaseManoeuvreManager_3.h" 00069 #include "TestCaseManoeuvrePunctualAction_1.h" 00070 #include "TestCaseMatlabCopyPID_1.h" 00071 #include "TestCaseMatlabDataItemPID_1.h" 00072 #include "TestCaseMatlabDataPoolPID_1.h" 00073 #include "TestCaseMatlabPointerPID_1.h" 00074 #include "TestCaseNestedFsmActivator_1.h" 00075 #include "TestCaseNestedFsmActivatorWithEndState_1.h" 00076 #include "TestCaseNestedFsmActivatorWithExitCheck_1.h" 00077 #include "TestCaseNullProfile_1.h" 00078 #include "TestCaseOutOfRangeProfile_1.h" 00079 #include "TestCaseProfileList_1.h" 00080 #include "TestCasePUSClearDataReporting_1.h" 00081 #include "TestCasePUSControlDataReporting_1.h" 00082 #include "TestCasePUSDataReportingPacket_1.h" 00083 #include "TestCasePUSDataReportingPacket_2.h" 00084 #include "TestCasePUSDataReportingPacket_3.h" 00085 #include "TestCasePUSEventRepository_1.h" 00086 #include "TestCasePUSMemoryDumpOffset_1.h" 00087 #include "TestCasePUSMemoryLoadAbsolute_1.h" 00088 #include "TestCasePUSMemoryLoadOffset_1.h" 00089 #include "TestCasePUSMemoryLoadOffset_2.h" 00090 #include "TestCasePUSTelemetryModeManager_1.h" 00091 #include "TestCasePunctualActionManager_1.h" 00092 #include "TestCaseRawDataItem_1.h" 00093 #include "TestCaseRecoveryAction_1.h" 00094 #include "TestCaseRootObject_1.h" 00095 #include "TestCaseRootObject_2.h" 00096 #include "TestCaseRootObject_3.h" 00097 #include "TestCaseRootObjectStack_1.h" 00098 #include "TestCaseSampleFullDataPool_1.h" 00099 #include "TestCaseSampleMonitoredDataPool_1.h" 00100 #include "TestCaseSampleR1Database_1.h" 00101 #include "TestCaseSampleR2Database_1.h" 00102 #include "TestCaseSampleR3Database_1.h" 00103 #include "TestCaseSimpleChangeProfile_1.h" 00104 #include "TestCaseSimplePunctualActionModeManager_1.h" 00105 #include "TestCaseSimpleTelemetryModeManager_1.h" 00106 #include "TestCaseStuckDataProfile_1.h" 00107 #include "TestCaseTelecommandManager_1.h" 00108 #include "TestCaseTelecommandManager_2.h" 00109 #include "TestCaseTelecommandManager_3.h" 00110 #include "TestCaseTelemetryManager_1.h" 00111 #include "TestCaseTelemetryManager_2.h" 00112 #include "TestCaseTestPUSConfigurableManoeuvre_1.h" 00113 #include "TestCaseTestTracer_1.h" 00114 #include "TestCaseUnstableFsmState_1.h" 00115 #include "../GeneralInclude/TestCompilerSwitches.h" 00116 #include "../GeneralInclude/CompilerSwitches.h" 00117 #include "../GeneralInclude/Constants.h" 00118 00119 int main(int argc, char* argv[]) { 00120 00121 // Open output file (only on MS_HOST) 00122 FILE* out=pNULL; 00123 #ifdef MS_HOST 00124 if( (out = fopen("RegressionTestReport.html","w")) == pNULL ) 00125 printf( "\nThe file 'RegressionTestReport.html' could not be opened\n" ); 00126 else 00127 printf( "\nThe file 'RegressionTestReport.html' was successfully opened\n" ); 00128 #endif 00129 00130 printf( "\nBegin regression test ...\n" ); 00131 00132 // Create and load a test suite (NB: The TestCaseRootObject_3 must be the 00133 // the first test case to run because it tests the system configuration 00134 // service) 00135 TestSuite testSuite(out); 00136 00137 testSuite.loadTestCase(new TestCaseRootObject_3); 00138 testSuite.loadTestCase(new TestCaseBasicDatabase_1); 00139 testSuite.loadTestCase(new TestCaseBasicDataPool_1); 00140 testSuite.loadTestCase(new TestCaseBasicPUSTcLoader_1); 00141 testSuite.loadTestCase(new TestCaseBasicPUSTmStream_1); 00142 testSuite.loadTestCase(new TestCaseBasicReconfigurer_1); 00143 testSuite.loadTestCase(new TestCaseByteArrayTelemetryStream_1); 00144 testSuite.loadTestCase(new TestCaseChecksum_1); 00145 testSuite.loadTestCase(new TestCaseControlAction_1); 00146 testSuite.loadTestCase(new TestCaseControlList_1); 00147 testSuite.loadTestCase(new TestCaseCycleDataItem16TmStream_1); 00148 testSuite.loadTestCase(new TestCaseCyclingTelemetryModeManager_1); 00149 testSuite.loadTestCase(new TestCaseCyclingPunctualActionModeManager_1); 00150 testSuite.loadTestCase(new TestCaseDataItem_1); 00151 testSuite.loadTestCase(new TestCaseDataItem16TmWord_1); 00152 testSuite.loadTestCase(new TestCaseDataPoolMonitor_1); 00153 testSuite.loadTestCase(new TestCaseDeltaProfile_1); 00154 testSuite.loadTestCase(new TestCaseDummyConditionalPunctualAction_1); 00155 testSuite.loadTestCase(new TestCaseDummyConfigurableManoeuvre_1); 00156 testSuite.loadTestCase(new TestCaseDummyCopyControlBlock_1); 00157 testSuite.loadTestCase(new TestCaseDummyCriticalTelecommand_1); 00158 testSuite.loadTestCase(new TestCaseDummyCriticalTelecommand_2); 00159 testSuite.loadTestCase(new TestCaseDummyDatabase_1); 00160 testSuite.loadTestCase(new TestCaseDummyDataItemControlBlock_1); 00161 testSuite.loadTestCase(new TestCaseDummyDataPool_1); 00162 testSuite.loadTestCase(new TestCaseDummyDataPoolControlBlock_1); 00163 testSuite.loadTestCase(new TestCaseDummyFsmState_1); 00164 testSuite.loadTestCase(new TestCaseDummyManoeuvre_1); 00165 testSuite.loadTestCase(new TestCaseDummyModeManager_1); 00166 testSuite.loadTestCase(new TestCaseDummyObsClock_1); 00167 testSuite.loadTestCase(new TestCaseDummyPointerControlBlock_1); 00168 testSuite.loadTestCase(new TestCaseDummyPunctualAction_1); 00169 testSuite.loadTestCase(new TestCaseDummyPUSTelecommand_1); 00170 testSuite.loadTestCase(new TestCaseDummyPUSTelemetryPacket_1); 00171 testSuite.loadTestCase(new TestCaseDummyTelecommand_1); 00172 testSuite.loadTestCase(new TestCaseDummyTelecommandLoader_1); 00173 testSuite.loadTestCase(new TestCaseDummyTelemetryPacket_1); 00174 testSuite.loadTestCase(new TestCaseDummyTelemetryStream_1); 00175 testSuite.loadTestCase(new TestCaseDummyTracer_1); 00176 testSuite.loadTestCase(new TestCaseFsmEvent_1); 00177 testSuite.loadTestCase(new TestCaseEvent_1); 00178 testSuite.loadTestCase(new TestCaseEventRepository_1); 00179 testSuite.loadTestCase(new TestCaseEventRepository_2); 00180 testSuite.loadTestCase(new TestCaseEventRepository_3); 00181 testSuite.loadTestCase(new TestCaseFdirCheck_1); 00182 #ifdef MS_HOST 00183 testSuite.loadTestCase(new TestCaseFileTelemetryStream_1); 00184 #endif 00185 testSuite.loadTestCase(new TestCaseFileTelemetryStream_2); 00186 testSuite.loadTestCase(new TestCaseForbiddenValueProfile_1); 00187 testSuite.loadTestCase(new TestCaseFromFsmEvent_1); 00188 testSuite.loadTestCase(new TestCaseFSM_1); 00189 testSuite.loadTestCase(new TestCaseFSM_2); 00190 testSuite.loadTestCase(new TestCaseFSM_3); 00191 testSuite.loadTestCase(new TestCaseNestedFsmActivator_1); 00192 testSuite.loadTestCase(new TestCaseNestedFsmActivatorWithEndState_1); 00193 testSuite.loadTestCase(new TestCaseNestedFsmActivatorWithExitCheck_1); 00194 testSuite.loadTestCase(new TestCaseIntStack_1); 00195 testSuite.loadTestCase(new TestCaseInRangeProfile_1); 00196 testSuite.loadTestCase(new TestCaseManoeuvreManager_1); 00197 testSuite.loadTestCase(new TestCaseManoeuvreManager_2); 00198 testSuite.loadTestCase(new TestCaseManoeuvreManager_3); 00199 testSuite.loadTestCase(new TestCaseManoeuvrePunctualAction_1); 00200 testSuite.loadTestCase(new TestCaseMatlabCopyPID_1); 00201 testSuite.loadTestCase(new TestCaseMatlabDataPoolPID_1); 00202 testSuite.loadTestCase(new TestCaseMatlabDataItemPID_1); 00203 testSuite.loadTestCase(new TestCaseMatlabPointerPID_1); 00204 testSuite.loadTestCase(new TestCaseNullProfile_1); 00205 testSuite.loadTestCase(new TestCaseOutOfRangeProfile_1); 00206 testSuite.loadTestCase(new TestCaseProfileList_1); 00207 testSuite.loadTestCase(new TestCasePunctualActionManager_1); 00208 testSuite.loadTestCase(new TestCasePUSClearDataReporting_1); 00209 testSuite.loadTestCase(new TestCasePUSControlDataReporting_1); 00210 testSuite.loadTestCase(new TestCasePUSDataReportingPacket_1); 00211 testSuite.loadTestCase(new TestCasePUSDataReportingPacket_2); 00212 testSuite.loadTestCase(new TestCasePUSDataReportingPacket_3); 00213 testSuite.loadTestCase(new TestCasePUSEventRepository_1); 00214 testSuite.loadTestCase(new TestCasePUSMemoryDumpOffset_1); 00215 testSuite.loadTestCase(new TestCasePUSMemoryLoadAbsolute_1); 00216 testSuite.loadTestCase(new TestCasePUSMemoryLoadOffset_1); 00217 testSuite.loadTestCase(new TestCasePUSMemoryLoadOffset_2); 00218 testSuite.loadTestCase(new TestCasePUSTelemetryModeManager_1); 00219 testSuite.loadTestCase(new TestCaseRecoveryAction_1); 00220 testSuite.loadTestCase(new TestCaseRawDataItem_1); 00221 testSuite.loadTestCase(new TestCaseRootObject_1); 00222 testSuite.loadTestCase(new TestCaseRootObject_2); 00223 testSuite.loadTestCase(new TestCaseRootObjectStack_1); 00224 testSuite.loadTestCase(new TestCaseSampleFullDataPool_1); 00225 testSuite.loadTestCase(new TestCaseSampleMonitoredDataPool_1); 00226 testSuite.loadTestCase(new TestCaseSampleR1Database_1); 00227 testSuite.loadTestCase(new TestCaseSampleR2Database_1); 00228 testSuite.loadTestCase(new TestCaseSampleR3Database_1); 00229 testSuite.loadTestCase(new TestCaseSimpleChangeProfile_1); 00230 testSuite.loadTestCase(new TestCaseSimplePunctualActionModeManager_1); 00231 testSuite.loadTestCase(new TestCaseSimpleTelemetryModeManager_1); 00232 testSuite.loadTestCase(new TestCaseStuckDataProfile_1); 00233 testSuite.loadTestCase(new TestCaseTelecommandManager_1); 00234 testSuite.loadTestCase(new TestCaseTelecommandManager_2); 00235 testSuite.loadTestCase(new TestCaseTelecommandManager_3); 00236 testSuite.loadTestCase(new TestCaseTelemetryManager_1); 00237 testSuite.loadTestCase(new TestCaseTelemetryManager_2); 00238 testSuite.loadTestCase(new TestCaseTestPUSConfigurableManoeuvre_1); 00239 testSuite.loadTestCase(new TestCaseTestTracer_1); 00240 testSuite.loadTestCase(new TestCaseUnstableFsmState_1); 00241 00242 // Run the test suite -- this causes all test cases in 00243 // the test suite to be run in sequence 00244 testSuite.runTestSuite(); 00245 00246 printf( "\nRegression test ended...\n" ); 00247 00248 // close output file 00249 #ifdef MS_HOST 00250 fclose(out); 00251 #endif 00252 return 0; 00253 00254 } 00255
Copyright 2003 P&P Software GmbH - All Rights Reserved