]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: use fixture for preparing venv 40235/head
authorKefu Chai <kchai@redhat.com>
Fri, 19 Mar 2021 09:26:37 +0000 (17:26 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 24 Mar 2021 14:19:31 +0000 (22:19 +0800)
commit47cec1861327ab9f4689e4e13f7db0e23b90709b
tree89e9d75c0245d489e42e7861651104566c819e97
parent5b4a7668f195c3f5f33ec05d13c17b83d3032cee
cmake: use fixture for preparing venv

this change should allow us to decouple "ninja tests" from "ctest".
in other words, we can just run

ctest -R run-tox-python-common -V

without running "ninja tests" first. before this change

${name}-venv is added as a dependency of "tests" target.

after this change,

setup-venv-for-${name} is added as a test, which is in turn a test of
run-tox-${name}, so we can just

ctest -R run-tox-${name}

now for preparing the venv and then testing the tox test of ${name}.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/AddCephTest.cmake