Skip to content

Commit 4fa3157

Browse files
author
MarcoFalke
committed
Merge #18929: ci: Pass down LD_LIBRARY_PATH and MAKEJOBS to fuzz test_runner
cbd6611 Set LD_LIBRARY_PATH consistently in travis tests (Russell Yanofsky) fa35c34 Remove unused ci configs that have been moved elsewhere (MarcoFalke) 3333cb9 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
2 parents 0f2fa59 + cbd6611 commit 4fa3157

File tree

5 files changed

+4
-38
lines changed

5 files changed

+4
-38
lines changed

.cirrus.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
task:
2-
name: "FreeBsd 12.1 amd64 [GOAL: install] [no depends, only system libs]"
3-
freebsd_instance:
4-
image_family: freebsd-12-1 # https://cirrus-ci.org/guide/FreeBSD/
5-
cpu: 8
6-
memory: 8G
7-
timeout_in: 60m
8-
env:
9-
MAKEJOBS: "-j9"
10-
CONFIGURE_OPTS: "--disable-dependency-tracking"
11-
GOAL: "install"
12-
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
13-
CCACHE_SIZE: "200M"
14-
CCACHE_COMPRESS: 1
15-
CCACHE_DIR: "/tmp/ccache_dir"
16-
ccache_cache:
17-
folder: "/tmp/ccache_dir"
18-
install_script:
19-
- pkg install -y autoconf automake boost-libs git gmake libevent libtool pkgconf python3 ccache
20-
- ./contrib/install_db4.sh $(pwd)
21-
- ccache --max-size=${CCACHE_SIZE}
22-
configure_script:
23-
- ./autogen.sh
24-
- ./configure ${CONFIGURE_OPTS} BDB_LIBS="-L$(pwd)/db4/lib -ldb_cxx-4.8" BDB_CFLAGS="-I$(pwd)/db4/include" || ( cat config.log && false)
25-
make_script:
26-
- gmake ${MAKEJOBS} ${GOAL} || ( echo "Build failure. Verbose build follows." && gmake ${GOAL} V=1 ; false )
27-
check_script:
28-
- gmake check ${MAKEJOBS} VERBOSE=1
29-
functional_test_script:
30-
- ./test/functional/test_runner.py --jobs 9 --ci --extended --exclude feature_dbcrash --combinedlogslen=1000 --quiet --failfast
311
#task:
322
# name: "Windows"
333
# windows_container:

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ stages:
4646
env:
4747
global:
4848
- CI_RETRY_EXE="travis_retry"
49-
- CI_WAIT="while sleep 500; do echo .; done"
5049
- 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."
5150
before_install:
5251
- set -o errexit; source ./ci/test/00_setup_env.sh

ci/test/00_setup_env_native_valgrind.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ export CONTAINER_NAME=ci_native_valgrind
1010
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"
1111
export USE_VALGRIND=1
1212
export NO_DEPENDS=1
13-
if [[ "${TRAVIS}" == "true" && "${TRAVIS_REPO_SLUG}" != "bitcoin/bitcoin" ]]; then
14-
export TEST_RUNNER_EXTRA="wallet_disable" # Only run wallet_disable as a smoke test to not hit the 50 min travis time limit
15-
else
16-
export TEST_RUNNER_EXTRA="--exclude rpc_bind --factor=2" # Excluded for now, see https://github.com/bitcoin/bitcoin/issues/17765#issuecomment-602068547
17-
fi
13+
export TEST_RUNNER_EXTRA="--exclude rpc_bind --factor=2" # Excluded for now, see https://github.com/bitcoin/bitcoin/issues/17765#issuecomment-602068547
1814
export GOAL="install"
1915
export BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --with-gui=no CC=clang CXX=clang++" # TODO enable GUI

ci/test/06_script_b.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ fi
3737

3838
if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
3939
BEGIN_FOLD functional-tests
40-
DOCKER_EXEC test/functional/test_runner.py --ci $MAKEJOBS --tmpdirprefix "${BASE_SCRATCH_DIR}/test_runner/" --ansi --combinedlogslen=4000 ${TEST_RUNNER_EXTRA} --quiet --failfast
40+
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib test/functional/test_runner.py --ci $MAKEJOBS --tmpdirprefix "${BASE_SCRATCH_DIR}/test_runner/" --ansi --combinedlogslen=4000 ${TEST_RUNNER_EXTRA} --quiet --failfast
4141
END_FOLD
4242
fi
4343

4444
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
4545
BEGIN_FOLD fuzz-tests
46-
DOCKER_EXEC test/fuzz/test_runner.py ${FUZZ_TESTS_CONFIG} -l DEBUG ${DIR_FUZZ_IN}
46+
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib test/fuzz/test_runner.py ${FUZZ_TESTS_CONFIG} $MAKEJOBS -l DEBUG ${DIR_FUZZ_IN}
4747
END_FOLD
4848
fi

test/fuzz/test_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def main():
3838
)
3939
parser.add_argument(
4040
'--par',
41+
'-j',
4142
type=int,
4243
default=4,
4344
help='How many targets to merge or execute in parallel.',

0 commit comments

Comments
 (0)