Skip to content

Commit fa7af33

Browse files
author
MarcoFalke
committed
ci: Run unit tests sequential once
1 parent fa68a3e commit fa7af33

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ci/test/00_setup_env_native_qt5.sh

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export CONTAINER_NAME=ci_native_qt5
1010
export PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libdbus-1-dev libharfbuzz-dev"
1111
export DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1"
1212
export TEST_RUNNER_EXTRA="--coverage --extended --exclude feature_dbcrash" # Run extended tests so that coverage does not fail, but exclude the very slow dbcrash
13+
export RUN_UNIT_TESTS_SEQUENTIAL="true"
14+
export RUN_UNIT_TESTS="false"
1315
export GOAL="install"
1416
export TEST_PREVIOUS_RELEASES=true
1517
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --enable-debug CFLAGS=\"-g0 -O2 -funsigned-char\" CXXFLAGS=\"-g0 -O2 -funsigned-char\""

ci/test/06_script_b.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@ if [ -n "$USE_VALGRIND" ]; then
2121
END_FOLD
2222
fi
2323

24+
bash -c "${CI_WAIT}" & # Print dots in case the tests take a long time to run
25+
2426
if [ "$RUN_UNIT_TESTS" = "true" ]; then
2527
BEGIN_FOLD unit-tests
26-
bash -c "${CI_WAIT}" & # Print dots in case the unit tests take a long time to run
2728
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib make $MAKEJOBS check VERBOSE=1
2829
END_FOLD
2930
fi
3031

32+
if [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
33+
BEGIN_FOLD unit-tests-seq
34+
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib "${BASE_ROOT_DIR}/build/bitcoin-*/src/test/test_bitcoin" --catch_system_errors=no -l test_suite
35+
END_FOLD
36+
fi
37+
3138
if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
3239
BEGIN_FOLD functional-tests
3340
DOCKER_EXEC test/functional/test_runner.py --ci $MAKEJOBS --tmpdirprefix "${BASE_SCRATCH_DIR}/test_runner/" --ansi --combinedlogslen=4000 ${TEST_RUNNER_EXTRA} --quiet --failfast

0 commit comments

Comments
 (0)