CORDET Framework - C2 Implementation
|
Implementation of the test cases for the Large Packet Transfer Service components. More...
Go to the source code of this file.
Macros | |
#define | LPTSIZE 4000 |
The maximum size in number of bytes of a packet. | |
Functions | |
CrFwBool_t | CrPsLptTestCase1 () |
Check Service 13 (all standard functions to return outcome = 1) More... | |
CrFwBool_t | CrPsLptTestCase2 () |
Test the Service 13 EventReporting Service Up-Transfer. More... | |
CrFwBool_t | CrPsLptTestCase3 () |
Test the Service 13 EventReporting Service Down-Transfer. More... | |
CrFwBool_t | CrPsLptTestCase4 () |
Test the Service 13 EventReporting Service other stuff. More... | |
Variables | |
static uint8_t | memArray2set [LPTSIZE *2] |
static uint8_t | memArray2get [LPTSIZE *2] |
Implementation of the test cases for the Large Packet Transfer Service components.
last modification: 22.01.2018
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Definition in file CrPsLptTestCases.c.
CrFwBool_t CrPsLptTestCase1 | ( | ) |
Check Service 13 (all standard functions to return outcome = 1)
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
check all standard functions of the 13,1 Component
check all standard functions of the 13,2 Component
check all standard functions of the 13,3 Component
check all standard functions of the 13,9 Component
check all standard functions of the 13,10 Component
check all standard functions of the 13,11 Component
check all standard functions of the 13,16 Component
check all standard functions of the 13,129 Component
check all standard functions of the 13,130 Component
Reset the OutManager, OutFactory and InFactory and check for application errors
Definition at line 74 of file CrPsLptTestCases.c.
CrFwBool_t CrPsLptTestCase2 | ( | ) |
Test the Service 13 EventReporting Service Up-Transfer.
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
Create a 13,9 Packet and check that all actions have outcome 0
Create several 13,10 Packet and check that all actions have outcome 0
Create a 13,11 Packet and check that all actions have outcome 0
get the Data from the Buffer and check if the data was sent and stored correctly to the buffer
that no application error occures
Definition at line 411 of file CrPsLptTestCases.c.
CrFwBool_t CrPsLptTestCase3 | ( | ) |
Test the Service 13 EventReporting Service Down-Transfer.
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
Create a 13,129 Packet and execute it
Check that a application error is created when the OutFactory has no free slot
execute the 13,129 again and check if a 13,1 is created
fill the OutFactory again and check if an error occures when executing the 13,1 OutComponent
execute it again and check if an 13,2 is created
after all packets are triggered check if the content is correct
Allocate a 13,130 Packet and create an InCmd
run the start action, the progress action and the termination action
release the InCmd
again execute an 13,129 inCmd to trigger an error when a 13,3 should be created
check that the OutComponent allocation error is created and reset the error code
Reset the OutManager, OutFactory and InFactory and check for application errors
Definition at line 662 of file CrPsLptTestCases.c.
CrFwBool_t CrPsLptTestCase4 | ( | ) |
Test the Service 13 EventReporting Service other stuff.
The following actions are performed in this test:
initialize all PUS Extension components and Applications
creation of OutFactory, InFactory and OutManager
Definition at line 1038 of file CrPsLptTestCases.c.