]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: add default set of cmake/ctest labels to tests 65699/head
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 26 Sep 2025 23:03:39 +0000 (19:03 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 26 Sep 2025 23:10:35 +0000 (19:10 -0400)
commit8258d270437e0bc1df5f14f9c09248af7c4989b1
tree3b8d0ecd6493661ecc684fa4e1e3cdb1253de8fd
parentf42d7dbea97e13d700633ea31b4e1ad068fea72d
pybind/mgr: add default set of cmake/ctest labels to tests

Add a pair of default test labels (`PurePython` and `PythonTox`) to the
tests generated by the add_tox_test cmake function. In addition, the
function can extend the set of labels applied with a new LABELS argument
to the cmake function.

Using the label can be done with something like:
```
ctest -L PythonTox -j8
```

Note that these tests are labeled PurePython because they do not
require C extensions to be built. The above example command can
be run successfully immediately after configuring, without having
to build the C++ sources first.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
cmake/modules/AddCephTest.cmake