Merge #17599: ci: Run functional tests on s390x
fabd71076c
ci: Print free disk space (MarcoFalke)fad9fdbea5
test: Properly deserialize integers in little-endian (MarcoFalke)fa94fc10c8
ci: Run functional tests on s390x (MarcoFalke) Pull request description: Top commit has no ACKs. Tree-SHA512: 98ba77eb56f283131fdaeb393fda86cc308f1bf9781e1e0e5736b8d616528dc8ff2e494d55ba107c138083025c66a59e382fcfa9962d4349a5fd6cbbc52484c3
This commit is contained in:
commit
69ca6cdd66
|
@ -96,14 +96,14 @@ jobs:
|
||||||
- set -o errexit; source ./ci/extended_lint/06_script.sh
|
- set -o errexit; source ./ci/extended_lint/06_script.sh
|
||||||
|
|
||||||
- stage: test
|
- stage: test
|
||||||
name: 'ARM [GOAL: install] [unit tests, functional tests]'
|
name: 'ARM [GOAL: install] [bionic] [unit tests, functional tests]'
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: >-
|
env: >-
|
||||||
FILE_ENV="./ci/test/00_setup_env_arm.sh"
|
FILE_ENV="./ci/test/00_setup_env_arm.sh"
|
||||||
QEMU_USER_CMD="" # Can run the tests natively without qemu
|
QEMU_USER_CMD="" # Can run the tests natively without qemu
|
||||||
|
|
||||||
- stage: test
|
- stage: test
|
||||||
name: 'S390x [GOAL: install] [unit tests, functional tests]'
|
name: 'S390x [GOAL: install] [bionic] [unit tests, functional tests]'
|
||||||
arch: s390x
|
arch: s390x
|
||||||
env: >-
|
env: >-
|
||||||
FILE_ENV="./ci/test/00_setup_env_s390x.sh"
|
FILE_ENV="./ci/test/00_setup_env_s390x.sh"
|
||||||
|
|
|
@ -7,12 +7,9 @@
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
export HOST=s390x-unknown-linux-gnu
|
export HOST=s390x-unknown-linux-gnu
|
||||||
export DOCKER_NAME_TAG=s390x/ubuntu:18.04
|
export PACKAGES="clang llvm python3-zmq qtbase5-dev qttools5-dev-tools libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev"
|
||||||
export PACKAGES="clang llvm python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev"
|
|
||||||
export NO_DEPENDS=1
|
export NO_DEPENDS=1
|
||||||
export RUN_UNIT_TESTS=true
|
export RUN_UNIT_TESTS=true
|
||||||
export RUN_FUNCTIONAL_TESTS=false
|
export RUN_FUNCTIONAL_TESTS=true
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
export BITCOIN_CONFIG="--enable-reduce-exports --with-incompatible-bdb"
|
export BITCOIN_CONFIG="--enable-reduce-exports --with-incompatible-bdb"
|
||||||
|
|
||||||
lscpu
|
|
||||||
|
|
|
@ -72,6 +72,8 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
||||||
else
|
else
|
||||||
DOCKER_EXEC free -m -h
|
DOCKER_EXEC free -m -h
|
||||||
DOCKER_EXEC echo "Number of CPUs \(nproc\):" \$\(nproc\)
|
DOCKER_EXEC echo "Number of CPUs \(nproc\):" \$\(nproc\)
|
||||||
|
DOCKER_EXEC echo "Free disk space:"
|
||||||
|
DOCKER_EXEC df -h
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$DPKG_ADD_ARCH" ]; then
|
if [ -n "$DPKG_ADD_ARCH" ]; then
|
||||||
|
|
|
@ -151,7 +151,7 @@ class RESTTest (BitcoinTestFramework):
|
||||||
|
|
||||||
bin_response = self.test_rest_request("/getutxos", http_method='POST', req_type=ReqType.BIN, body=bin_request, ret_type=RetType.BYTES)
|
bin_response = self.test_rest_request("/getutxos", http_method='POST', req_type=ReqType.BIN, body=bin_request, ret_type=RetType.BYTES)
|
||||||
output = BytesIO(bin_response)
|
output = BytesIO(bin_response)
|
||||||
chain_height, = unpack("i", output.read(4))
|
chain_height, = unpack("<i", output.read(4))
|
||||||
response_hash = output.read(32)[::-1].hex()
|
response_hash = output.read(32)[::-1].hex()
|
||||||
|
|
||||||
assert_equal(bb_hash, response_hash) # check if getutxo's chaintip during calculation was fine
|
assert_equal(bb_hash, response_hash) # check if getutxo's chaintip during calculation was fine
|
||||||
|
|
Loading…
Reference in a new issue