File: ctest-to.rst

package info (click to toggle)
cmake-format 0.6.13-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,436 kB
  • sloc: python: 16,990; makefile: 14
file content (72 lines) | stat: -rw-r--r-- 1,813 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
========
ctest-to
========

The ``ctest-to`` program can parse listfiles from a ctest output tree and
generate a more structured representation of the test spec.

-----
Usage
-----

.. literalinclude:: bits/ctest-to-usage.txt

-------
Example
-------

Here are some examples generated by the ctest file for this repository:

.. code::

    [
      {
        "name": "cmakelang-TestAddCustomCommand",
        "argv": [
          "python",
          "-Bm",
          "cmakelang.command_tests",
          "TestAddCustomCommand"
        ],
        "cwd": "/code/cmakelang/.build/nd.x86/cmakelang/command_tests",
        "props": {
          "working_directory": "/code/cmakelang"
        }
      },
      {
        "name": "cmakelang-TestAddCustomCommand_py3",
        "argv": [
          "python3",
          "-Bm",
          "cmakelang.command_tests",
          "TestAddCustomCommand"
        ],
        "cwd": "/code/cmakelang/.build/nd.x86/cmakelang/command_tests",
        "props": {
          "working_directory": "/code/cmakelang"
        }
      },
    ...
    ]

.. code::

    <ctest>
      <test cwd="/code/cmakelang/.build/nd.x86/cmakelang/command_tests" name="cmakelang-TestAddCustomCommand" working_directory="/code/cmakelang">
        <argv>
          <arg value="python"/>
          <arg value="-Bm"/>
          <arg value="cmakelang.command_tests"/>
          <arg value="TestAddCustomCommand"/>
        </argv>
      </test>
      <test cwd="/code/cmakelang/.build/nd.x86/cmakelang/command_tests" name="cmakelang-TestAddCustomCommand_py3" working_directory="/code/cmakelang">
        <argv>
          <arg value="python3"/>
          <arg value="-Bm"/>
          <arg value="cmakelang.command_tests"/>
          <arg value="TestAddCustomCommand"/>
        </argv>
      </test>
    ...
    </ctest>