You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/How-To-Guides/MC-DC-Testing-Tool.rst
+4-41Lines changed: 4 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,63 +24,26 @@ Here is an overview of what the MC/DC checker does:
24
24
#. Generates BDD .dot files showing before and after reordering.
25
25
26
26
27
-
Patch for the MC/DC checker
28
-
---------------------------
29
-
30
-
Currently the MC/DC checker works for simple C programs but crashes when run against code in several ROS packages. A `patch <https://gist.githubusercontent.com/iche033/ef0d23c85f4d810fa26c722027894c91/raw/f0a9f48abffff0101b9e7f2a2fd94f79cafe360e/mcdc_checker.patch>`_ with minor code changes to checker code is needed to avoid the crash. See instructions below for applying the patch to the checker.
31
-
32
-
33
27
How to run the MC/DC checker
34
28
-----------------------------
35
29
36
-
The recommended way of running the check is to use the upstream docker image as it requires a patched version of ``libclang``.
30
+
The recommended way of running the check is to use the upstream docker image as it requires Clang 19 or newer.
Go back to the docker container and run the ``mcdc_checker`` cmd
76
-
77
-
.. code-block:: bash
78
-
79
-
mcdc_checker -a
43
+
docker run -it -v $(pwd):/code registry.gitlab.com/gtd-gmbh/mcdc-checker/mcdc-checker -a
80
44
81
45
The ``-a`` flag tells the check to run recursively on all files in this directory. You should see the script start processing the source code and generating output. See notes below for more info about possible error messages.
0 commit comments