Skip to content

build: latest rapidcheck, update configuration - #16654

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
jonatack:build-update-rapidcheck-makefile
Aug 23, 2019
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
jonatack:build-update-rapidcheck-makefile

Conversation

@jonatack

@jonatack jonatack commented Aug 19, 2019 •

Copy link
Copy Markdown
Member
  • update RapidCheck to the latest commit on master
  • install only the extras needed by Bitcoin Core, e.g. ENABLE_BOOST_TEST instead of INSTALL_ALL_EXTRAS
  • remove cmake warning by providing -B arg:
    CMake Warning:
    No source or binary directory provided.  Both will be assumed to be the
    same as the current working directory, but note that this warning will
    become a fatal error in future CMake releases.
    

Tested with cd depends && make RAPIDCHECK=1 on Linux Debian.

@fanquake fanquake left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

Did a depends build after fixing up the SHA hash. Compiling works and property tests run ok.

What do you mean by:

because I'd like to have the Makefile autobuild RapidCheck

Comment thread depends/packages/rapidcheck.mk Resolved
Comment thread depends/packages/rapidcheck.mk Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK DRC_ENABLE_BOOST_TEST. This seems better than DRC_INSTALL_ALL_EXTRAS.

- update RapidCheck to latest commit on master
- install only the extras needed by Bitcoin Core
- update shasum hash
- remove CMake warning
@jonatack
jonatack force-pushed the build-update-rapidcheck-makefile branch from d1ef69d to 0f0e281 Compare August 21, 2019 13:28
@jonatack jonatack changed the title [WIP] build: update RapidCheck Makefile build: update RapidCheck Makefile Aug 21, 2019
@jonatack
jonatack force-pushed the build-update-rapidcheck-makefile branch from 0f0e281 to 2958920 Compare August 21, 2019 13:32
@jonatack

jonatack commented Aug 21, 2019 •

Copy link
Copy Markdown
Member Author

What do you mean by:

because I'd like to have the Makefile autobuild RapidCheck

Thank you for reviewing! I wanted RapidCheck to build with RAPIDCHECK=1 make... then realized I just needed to cd into the /depends dir first. I also tried to get rid of the CMake warnings about the future fatal missing build dir by adding the -B argument. Updated the PR title and description.

@jonatack
jonatack force-pushed the build-update-rapidcheck-makefile branch from 2958920 to f7220e8 Compare August 21, 2019 14:24
@fanquake fanquake changed the title build: update RapidCheck Makefile build: latest rapidcheck, update configuration Aug 22, 2019

@fanquake fanquake left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f7220e8 - Tested building using depends. ENABLE_BOOST_TEST instead of INSTALL_ALL_EXTRAS seems fine.

fanquake added a commit that referenced this pull request Aug 23, 2019
f7220e8 build: update RapidCheck Makefile (Jon Atack)

Pull request description:

  - update RapidCheck to the latest commit on master
  - install only the extras needed by Bitcoin Core, e.g. ENABLE_BOOST_TEST instead of INSTALL_ALL_EXTRAS
  - remove cmake warning by providing `-B` arg:
      ```
      CMake Warning:
    No source or binary directory provided.  Both will be assumed to be the
    same as the current working directory, but note that this warning will
    become a fatal error in future CMake releases.
      ```

  Tested with `cd depends && make RAPIDCHECK=1` on Linux Debian.

ACKs for top commit:
  fanquake:
    ACK f7220e8 - Tested building using depends. `ENABLE_BOOST_TEST` instead of `INSTALL_ALL_EXTRAS` seems fine.

Tree-SHA512: 8033aa25014a87125cd0aa0885a892649039ef888688f4a855d23af21a350792a4081b181b8222ed293b5070dff39c438e9c3f80294eda0c931076a8153403ea
@fanquake
fanquake merged commit f7220e8 into bitcoin:master Aug 23, 2019
@jonatack
jonatack deleted the build-update-rapidcheck-makefile branch August 23, 2019 10:37
fanquake added a commit that referenced this pull request Aug 23, 2019
2483266 packages.md: document depends build targets (Russell Yanofsky)
be27161 Clarify need to specify --prefix with depends (Russell Yanofsky)

Pull request description:

  There seems to be some confusion about exactly how to use depends, when to pass a prefix to `./configure` etc (see #16367, #16654).

  I've cherry-picked two of russ's commits out of #16367, as they are clear stand-alone improvements and we don't have to wait for #16367 to improve the depends documentation.

ACKs for top commit:
  Sjors:
    utACK 2483266
  hebasto:
    ACK 2483266, I have reviewed the code and it looks OK, I agree it can be merged.
  jonasschnelli:
    ACK 2483266

Tree-SHA512: a198c288248f573519a3b0ef384626b61cc803803280af9a448c28466e3d9949bed0332af6618dac19e81c5a6e9694afa83d976b176fd13c32a6c2c3fea3fc1f
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Feb 27, 2020
Summary:
```
- update RapidCheck to latest commit on master
- install only the extras needed by Bitcoin Core
- update shasum hash
- remove CMake warning
```

Backport of core [[bitcoin/bitcoin#16654 | PR16654]].

Depends on D5325.

Test Plan:
Assuming you are running a 64-bit Linux machine:

  cd depends
  RAPIDCHECK=1 make build-linux64
Check the rapidcheck package is built, and the cmake warning is gone.

  cd .. && mkdir buildLinux64 && cd buildLinux64
  cmake -GNinja .. \
    -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux64.cmake \
    -DENABLE_PROPERTY_BASED_TESTS=ON
Check the rapidcheck lib found is the one from the depends.

  ninja check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D5326
ftrader pushed a commit to bitcoin-cash-node/bitcoin-cash-node that referenced this pull request May 19, 2020
Summary:
```
- update RapidCheck to latest commit on master
- install only the extras needed by Bitcoin Core
- update shasum hash
- remove CMake warning
```

Backport of core [[bitcoin/bitcoin#16654 | PR16654]].

Depends on D5325.

Test Plan:
Assuming you are running a 64-bit Linux machine:

  cd depends
  RAPIDCHECK=1 make build-linux64
Check the rapidcheck package is built, and the cmake warning is gone.

  cd .. && mkdir buildLinux64 && cd buildLinux64
  cmake -GNinja .. \
    -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux64.cmake \
    -DENABLE_PROPERTY_BASED_TESTS=ON
Check the rapidcheck lib found is the one from the depends.

  ninja check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D5326
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants