-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nasa#816 from nasa/integration-candidate
Integration Candidate 2020-08-12
- Loading branch information
Showing
25 changed files
with
708 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Mini-HOWTO guide for running CFE functional tests | ||
|
||
This version of CFE includes additional modular libraries and an application | ||
to execute functional tests within an unmodified CFE environment. These are | ||
distinct from the unit tests, which are executed separately from CFE in a | ||
confined (non-CFE, test-specific) environment. | ||
|
||
## Building the modules | ||
|
||
These modules are built automatically when `ENABLE_UNIT_TESTS` is enabled | ||
in the build. However, they can be added to any CFE build by adding the | ||
following to the `APPLIST` of any target in `targets.cmake`: | ||
|
||
- `cfe_assert`: a CFE-compatible library wrapping the basic UT assert library. This | ||
is the same library that all other unit tests use, but configured to be | ||
dynamically loaded into the CFE environment, and using CFE syslog for its output. | ||
This must be the first library loaded for any functional test. | ||
|
||
- `cfe_testcase`: a CFE-compatible library implementing test cases for CFE core apps. | ||
This must be loaded after `cfe_assert`. | ||
|
||
- `cfe_testrunner`: a CFE application that actually executes the tests. This is a very | ||
simple app that waits for CFE startup to complete, then executes all registered test | ||
cases. It also must be loaded after `cfe_assert`. | ||
|
||
|
||
## Example startup script entries | ||
|
||
To execute tests at startup, the following lines can be added to `cfe_es_startup.scr` on the | ||
designated test target: | ||
|
||
CFE_LIB, /cf/cfe_assert.so, CFE_Assert_LibInit, ASSERT_LIB, 0, 0, 0x0, 0; | ||
CFE_APP, /cf/cfe_testrunner.so, CFE_TestRunner_AppMain, TESTRUN_APP, 100, 16384, 0x0, 0; | ||
CFE_LIB, /cf/cfe_testcase.so, CFE_Test_Init, CFETEST_LIB, 0, 0, 0x0, 0; | ||
CFE_LIB, /cf/psp_test.so, PSP_Test_Init, PSPTEST_LIB, 0, 0, 0x0, 0; | ||
|
||
It is important that `cfe_assert` is loaded first, as all other test libraries depend on | ||
symbols provided in this library. The order of loading other test cases should not | ||
matter with respect to symbol resolution, but note that test cases will be executed in | ||
the same order that they are registered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.