PS-CP: is it possible, to add a sourcefile which contains all necessary stubs for a PS project when all sourcefiles will be verified independently?

1 回表示 (過去 30 日間)
Hi all.
1. I use PS CP at commandline via Python script, so a "source_list.txt" is generated and contains all c-files of the PS modul/project.
2. via script a "stubs.c" (& stubs.h) is generated which contains all necessary stub-functions.
Normally I would update the "sources_list.txt" with the "stubs.c" entry now, if the whole module shall be verified.
But the sourcefiles MUST be verified independently, so the PS module/project is configured (-unit-by-unit).
Question - a lack of logical understanding:
how to verifiy the files independently and also with a additional "stub.c" (maybe for each c-file?) ?
Best, kind regards Thomas
PS: idea - appending all the stub-functions to the original c-file and check this file?

採用された回答

Alexandre De Barros
Alexandre De Barros 2017 年 5 月 10 日
Hello,
in the scenario, the solution is to use the option -unit-by-unit-common-source. See the documentation of this option here:
Best regards,
Alexandre
  3 件のコメント
Alexandre De Barros
Alexandre De Barros 2017 年 5 月 10 日
Great ! Could you set this answer as "accepted"?
Alex
Thomas
Thomas 2017 年 5 月 11 日
Hello Alexandre.
Answer is accepted :-)
I tested it - it works fine.
Thanks a lot again.
Kind regards. Thomas

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by