HomePhabricator

[CMAKE] Run test/util/bitcoin-util-test.py with ninja check

Description

[CMAKE] Run test/util/bitcoin-util-test.py with ninja check

Summary:
Add a few new rules to cmake:

  • bitcoin-util-test will run bitcoin-util-test.py
  • check now includes bitcoin-util-test

This mimics the behaviour of make check with autotools

Test Plan:

mkdir buildcmake && cd buildcmake
cmake -GNinja ..
ninja bitcoin-util-test
ninja check

Should return an unknown target error, as bitcoin-tx is required:

cmake -DBUILD_BITCOIN_TX=OFF -GNinja .. && ninja bitcoin-util-test

Should run the tests but not bitcoin-util-test:

cmake -DBUILD_BITCOIN_TX=OFF -GNinja .. && ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2494

Details

Provenance
FabienAuthored on Feb 1 2019, 16:07
FabienPushed on Feb 9 2019, 08:36
Reviewer
Restricted Project
Differential Revision
D2494: [CMAKE] Run test/util/bitcoin-util-test.py with ninja check
Parents
rSTAGINGa36c8cbcde44: Make the number service of service flag bits to display a constant
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/7279, tag: phabricator/base/7273