Part 1
요약·해설
cpptestscan, ZEPHYR_SCA_VARIANT=cpptest, BDF 경로와 compiler/linker import 설정을 설명합니다.
cpptestscan · BDF
cpptestcli · rules
commercial tool
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
43E57C38EC52578CF7782DCBA90F7E5D593349AB358CF5A6CC81047F82260B48
.. _cpptest:
Parasoft C/C++test support
##########################
Parasoft `C/C++test <https://www.parasoft.com/products/parasoft-c-ctest/>`__ is a software testing
and static analysis tool for C and C++. It is a commercial software and you must acquire a
commercial license to use it.
Documentation of C/C++test can be found at https://docs.parasoft.com/. Please refer to the
documentation for how to use it.
Generating Build Data Files
***************************
To use C/C++test, ``cpptestscan`` must be found in your :envvar:`PATH` environment variable. And
:ref:`west build <west-building>` should be called with a ``-DZEPHYR_SCA_VARIANT=cpptest``
parameter, e.g.
.. code-block:: shell
west build -b qemu_cortex_m3 zephyr/samples/hello_world -- -DZEPHYR_SCA_VARIANT=cpptest
A ``.bdf`` file will be generated as :file:`build/sca/cpptest/cpptestscan.bdf`.
Generating a report file
************************
Please refer to Parasoft C/C++test documentation for more details.
To import and generate a report file, something like the following should work.
.. code-block:: shell
cpptestcli -data out -localsettings local.conf -bdf build/sca/cpptest/cpptestscan.bdf -config "builtin://Recommended Rules" -report out/report
You might need to set ``bdf.import.c.compiler.exec``, ``bdf.import.cpp.compiler.exec``, and
``bdf.import.linker.exec`` to the toolchain :ref:`west build <west-building>` used.
Part 3
한국어 전문 번역
Parasoft C/C++test 지원
Parasoft C/C++test는 C와 C++용 software testing·static analysis 도구입니다. Commercial software이므로 사용하려면 commercial license를 구매해야 합니다.
C/C++test 문서에서 사용 방법을 확인하십시오.
Build Data File 생성
cpptestscan이 PATH environment variable에서 검색되어야 합니다. west build를 -DZEPHYR_SCA_VARIANT=cpptest parameter와 함께 호출합니다.
west build -b qemu_cortex_m3 zephyr/samples/hello_world -- -DZEPHYR_SCA_VARIANT=cpptest.bdf file은 build/sca/cpptest/cpptestscan.bdf에 생성됩니다.
Report file 생성
자세한 내용은 Parasoft C/C++test 문서를 참조하십시오.
다음과 같은 명령으로 build data를 import하고 report file을 생성할 수 있습니다.
cpptestcli -data out -localsettings local.conf -bdf build/sca/cpptest/cpptestscan.bdf -config "builtin://Recommended Rules" -report out/reportbdf.import.c.compiler.exec, bdf.import.cpp.compiler.exec, bdf.import.linker.exec를 west build에서 사용한 toolchain에 맞게 설정해야 할 수 있습니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.