Closed thomas-bc closed 1 year ago
There are two issues with this PR:
fprime-util impl --ut
does not produce .template
files, and thus will clobber the existing UT filesRef/SignalGen/SignalGen.hpp
comes out as SignalGen/SignalGen.hpp
SignalGenTestMain.cpp
isn't using a relative import, and thus cannot find SignalGenTester.hpp
These both might be issues in FPP (@bocchino, thoughts?)
(1) fprime-util impl --ut
does not mess with filenames. Currently it seems FPP generates <filename>.template
for fpp-to-cpp
, but regular <filename>
for fpp-to-cpp --templates
. I can implement the file renaming, but we may want to implement that in FPP instead?
(2) and (3) are an oversight on my end - I forgot to test with the old project structure (e.g. Ref/)
(4) Not too sure there, may be related to (2) and (3), I'll investigate
@thomas-bc: (1) We should implement it in fpp (4) This is likely an issue in FPP as I fixed a similar issue in fpp's Tester.cpp
Running fprime-util impl --ut does not produce .template files
We can change this, but the way it works in FPP now is consistent with the way it works in XML and has always worked.
and thus will clobber the existing UT files
I don't think so, because the existing UT files are typically in test/ut and the generated files are in the component directory. This way the user can just copy the files over, without renaming files. It is inconsistent with the .template naming for the flight implementation, but it seems to work well based on experience so far.
This is likely an issue in FPP as I fixed a similar issue in fpp's Tester.cpp
I agree, I'll open an issue to fix it in FPP.
Is now a good time to make a v2.0.1 release of FPP to get these changes into F Prime mainline?
Change Description
Implements https://github.com/nasa/fprime/issues/2204
fprime-util impl [--ut]
now uses fpp-to-cpp instead of the Python autocoders (through cmake) Also uses the same interface to run the implementation afterfprime-util new --component
Also some small changes to help text here and there.