Merge #554: Test minimum bitcoin core version

5eba9c3189d509e206198e5910dde5c8b8cfb946 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 https://github.com/wizardsardine/liana/issues/548

ACKs for top commit:
  darosior:
    utACK 5eba9c3189d509e206198e5910dde5c8b8cfb946

Tree-SHA512: 0a55767b5dbb6668195e6203b5e3e1ceb2ec05773d75dfb1f7666ab0e386966fb724c5bfab5f16dd88a2cb4f07fc1b615aa2823b69192dc01af80a64d7621f71
This commit is contained in:
Antoine Poinsot 2023-06-28 15:50:13 +02:00
commit 3bea69170f
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -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
@ -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.