-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FPP v2.0 integration #2181
FPP v2.0 integration #2181
Conversation
The top-level comment sets out the procedure for integrating FPP 2.0 into F Prime. However, the changes in this PR just improve code coverage of existing tests. I think this PR can be reviewed and merged now. Perhaps we should move the top-level comments and checklist to another issue focused on FPP 2.0 integration. CI passes except for one failure that seems unrelated to this PR. |
65e7f85
to
627127a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Change Description
This PR integrates FPP v2.0, which adds support for C++ generation of unit test harness classes, with F Prime.
Unit tests for the FPP unit test autocoder have been added to the existing tests for FPP components.
Changes to Generated C++ Code for Unit Test Harnesses
General
[ComponentName]TesterBase.cpp
instead ofTesterBase.cpp
. This allows the generation of test harness classes for multiple components within the same directory.TesterBase classes
typedef struct {...} [name];
tostruct [name] {...};
m_param_[paramName]_valid
variable members from theinit
function to initializer lists in the constructor[portName]_static
and dispatch function implementations for special ports are not generated when the corresponding special port constructs do not appear (e.g. a component contains command ports, but no commands)sizeof([serializableType])
to[serializableType]::SERIALIZED_SIZE
where appropriate in thedispatchEvents
functionTo do before merging