Skip to content

Commit

Permalink
Merge #554: Test minimum bitcoin core version
Browse files Browse the repository at this point in the history
5eba9c3 Run tests for minimum supported bitcoin version (Wim van der Ham)

Pull request description:

  Added the cirrus job for bitcoin-24.0.1. For now only for the `test_misc.py` but this can be extended to the other tests as well.

  Fixes #548

ACKs for top commit:
  darosior:
    utACK 5eba9c3

Tree-SHA512: 0a55767b5dbb6668195e6203b5e3e1ceb2ec05773d75dfb1f7666ab0e386966fb724c5bfab5f16dd88a2cb4f07fc1b615aa2823b69192dc01af80a64d7621f71
  • Loading branch information
darosior committed Jun 28, 2023
2 parents 0d6a752 + 5eba9c3 commit 3bea691
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ task:
- name: 'Misc functional tests'
env:
TEST_GROUP: tests/test_misc.py
matrix:
- USE_MIN_BITCOIN_VERSION: 'TRUE'
- USE_MIN_BITCOIN_VERSION: 'FALSE'
- name: 'RPC functional tests'
env:
TEST_GROUP: tests/test_rpc.py
Expand Down Expand Up @@ -42,11 +45,19 @@ task:
test_script: |
set -xe
# Download the bitcoind binary
curl -O https://bitcoincore.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz
echo "33930d432593e49d58a9bff4c30078823e9af5d98594d2935862788ce8a20aec bitcoin-25.0-x86_64-linux-gnu.tar.gz" | sha256sum -c
tar -xzf bitcoin-25.0-x86_64-linux-gnu.tar.gz
export BITCOIND_PATH=bitcoin-25.0/bin/bitcoind
if [ "$USE_MIN_BITCOIN_VERSION" = "TRUE" ]; then
# Download the minimum required bitcoind binary
curl -O https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz
echo "49df6e444515d457ea0b885d66f521f2a26ca92ccf73d5296082e633544253bf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz" | sha256sum -c
tar -xzf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz
export BITCOIND_PATH=bitcoin-24.0.1/bin/bitcoind
else
# Download the bitcoind binary
curl -O https://bitcoincore.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz
echo "33930d432593e49d58a9bff4c30078823e9af5d98594d2935862788ce8a20aec bitcoin-25.0-x86_64-linux-gnu.tar.gz" | sha256sum -c
tar -xzf bitcoin-25.0-x86_64-linux-gnu.tar.gz
export BITCOIND_PATH=bitcoin-25.0/bin/bitcoind
fi
# The misc tests have a backward compat test that need the path to a previous version of Liana.
# For now it requires using 0.3.
Expand Down

0 comments on commit 3bea691

Please sign in to comment.