mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
Merge #18929: ci: Pass down LD_LIBRARY_PATH and MAKEJOBS to fuzz test_runner
cbd661122e5852d543467090459d33cf8cb4a3c7 Set LD_LIBRARY_PATH consistently in travis tests (Russell Yanofsky) fa35c34df781cf46bbd15522961f214f03b958bf Remove unused ci configs that have been moved elsewhere (MarcoFalke) 3333cb96994182bbdbb21174b691feb716858bc2 fuzz: Pass down MAKEJOBS to test_runner (MarcoFalke) Pull request description: Just how `MAKEJOBS` is passed down to the functional test `test_runner`, do the same for the fuzz `test_runner`. Also includes a commit to remove unused config files, which have been moved elsewhere. Top commit has no ACKs. Tree-SHA512: 32557102c9e40599b432aeb004c8427e8fbb07cdf4048050cdc8241d1b029aaad306b1131007eeca8315a4f71c38a7efbb833310e056cd11b835676cd19b8902
This commit is contained in:
parent
295c99c4cf
commit
a5abf4b6b3
30
.cirrus.yml
30
.cirrus.yml
@ -1,33 +1,3 @@
|
|||||||
task:
|
|
||||||
name: "FreeBsd 12.1 amd64 [GOAL: install] [no depends, only system libs]"
|
|
||||||
freebsd_instance:
|
|
||||||
image_family: freebsd-12-1 # https://cirrus-ci.org/guide/FreeBSD/
|
|
||||||
cpu: 8
|
|
||||||
memory: 8G
|
|
||||||
timeout_in: 60m
|
|
||||||
env:
|
|
||||||
MAKEJOBS: "-j9"
|
|
||||||
CONFIGURE_OPTS: "--disable-dependency-tracking"
|
|
||||||
GOAL: "install"
|
|
||||||
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
|
|
||||||
CCACHE_SIZE: "200M"
|
|
||||||
CCACHE_COMPRESS: 1
|
|
||||||
CCACHE_DIR: "/tmp/ccache_dir"
|
|
||||||
ccache_cache:
|
|
||||||
folder: "/tmp/ccache_dir"
|
|
||||||
install_script:
|
|
||||||
- pkg install -y autoconf automake boost-libs git gmake libevent libtool pkgconf python3 ccache
|
|
||||||
- ./contrib/install_db4.sh $(pwd)
|
|
||||||
- ccache --max-size=${CCACHE_SIZE}
|
|
||||||
configure_script:
|
|
||||||
- ./autogen.sh
|
|
||||||
- ./configure ${CONFIGURE_OPTS} BDB_LIBS="-L$(pwd)/db4/lib -ldb_cxx-4.8" BDB_CFLAGS="-I$(pwd)/db4/include" || ( cat config.log && false)
|
|
||||||
make_script:
|
|
||||||
- gmake ${MAKEJOBS} ${GOAL} || ( echo "Build failure. Verbose build follows." && gmake ${GOAL} V=1 ; false )
|
|
||||||
check_script:
|
|
||||||
- gmake check ${MAKEJOBS} VERBOSE=1
|
|
||||||
functional_test_script:
|
|
||||||
- ./test/functional/test_runner.py --jobs 9 --ci --extended --exclude feature_dbcrash --combinedlogslen=1000 --quiet --failfast
|
|
||||||
task:
|
task:
|
||||||
name: "x86_64 Linux [GOAL: install] [focal] [Using ./ci/ system]"
|
name: "x86_64 Linux [GOAL: install] [focal] [Using ./ci/ system]"
|
||||||
container:
|
container:
|
||||||
|
@ -74,7 +74,6 @@ builddocker: &builddocker
|
|||||||
# no need to run tests again here
|
# no need to run tests again here
|
||||||
- if [ "$DOCKER_BUILD" = "true" ]; then $DOCKER_RUN_IN_BUILDER ./ci/dash/build_depends.sh && $DOCKER_RUN_IN_BUILDER ./ci/dash/build_src.sh && BUILD_DIR=build-ci/dashcore-$BUILD_TARGET ./ci/dash/build-docker.sh; fi
|
- if [ "$DOCKER_BUILD" = "true" ]; then $DOCKER_RUN_IN_BUILDER ./ci/dash/build_depends.sh && $DOCKER_RUN_IN_BUILDER ./ci/dash/build_src.sh && BUILD_DIR=build-ci/dashcore-$BUILD_TARGET ./ci/dash/build-docker.sh; fi
|
||||||
- CI_RETRY_EXE="travis_retry"
|
- CI_RETRY_EXE="travis_retry"
|
||||||
- CI_WAIT="while sleep 500; do echo .; done"
|
|
||||||
- CACHE_ERR_MSG="Error! Initial build successful, but not enough time remains to run later build stages and tests. See https://docs.travis-ci.com/user/customizing-the-build#build-timeouts . Please manually re-run this job by using the travis restart button. The next run should not time out because the build cache has been saved."
|
- CACHE_ERR_MSG="Error! Initial build successful, but not enough time remains to run later build stages and tests. See https://docs.travis-ci.com/user/customizing-the-build#build-timeouts . Please manually re-run this job by using the travis restart button. The next run should not time out because the build cache has been saved."
|
||||||
before_install:
|
before_install:
|
||||||
- set -o errexit; source ./ci/test/00_setup_env.sh
|
- set -o errexit; source ./ci/test/00_setup_env.sh
|
||||||
|
@ -42,7 +42,7 @@ echo "Using socketevents mode: $SOCKETEVENTS"
|
|||||||
EXTRA_ARGS="--dashd-arg=-socketevents=$SOCKETEVENTS"
|
EXTRA_ARGS="--dashd-arg=-socketevents=$SOCKETEVENTS"
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
./test/functional/test_runner.py --ci --attempts=3 --ansi --combinedlogslen=4000 ${TEST_RUNNER_EXTRA} --failfast --nocleanup --tmpdir=$(pwd)/testdatadirs $PASS_ARGS $EXTRA_ARGS
|
LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib ./test/functional/test_runner.py --ci --attempts=3 --ansi --combinedlogslen=4000 ${TEST_RUNNER_EXTRA} --failfast --nocleanup --tmpdir=$(pwd)/testdatadirs $PASS_ARGS $EXTRA_ARGS
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -9,10 +9,6 @@ export LC_ALL=C.UTF-8
|
|||||||
export PACKAGES="valgrind clang llvm python3-zmq libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev"
|
export PACKAGES="valgrind clang llvm python3-zmq libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev"
|
||||||
export USE_VALGRIND=1
|
export USE_VALGRIND=1
|
||||||
export NO_DEPENDS=1
|
export NO_DEPENDS=1
|
||||||
if [[ "${TRAVIS}" == "true" && "${TRAVIS_REPO_SLUG}" != "bitcoin/bitcoin" ]]; then
|
export TEST_RUNNER_EXTRA="--exclude rpc_bind" # Excluded for now, see https://github.com/bitcoin/bitcoin/issues/17765#issuecomment-602068547
|
||||||
export TEST_RUNNER_EXTRA="wallet_disable" # Only run wallet_disable as a smoke test to not hit the 50 min travis time limit
|
|
||||||
else
|
|
||||||
export TEST_RUNNER_EXTRA="--exclude rpc_bind" # Excluded for now, see https://github.com/bitcoin/bitcoin/issues/17765#issuecomment-602068547
|
|
||||||
fi
|
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
export BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --with-gui=no --enable-suppress-external-warnings CC=clang-15 CXX=clang++-15" # TODO enable GUI
|
export BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --with-gui=no --enable-suppress-external-warnings CC=clang-15 CXX=clang++-15" # TODO enable GUI
|
||||||
|
Loading…
Reference in New Issue
Block a user