Skip to content

Commit 0b7c55f

Browse files
committed
ci: Clone entire bitcoin-core/qa-assets repo only when run fuzzing
1 parent 8b5a4de commit 0b7c55f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ci/test/04_install.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,17 @@ fi
8787
DOCKER_EXEC echo "Free disk space:"
8888
DOCKER_EXEC df -h
8989

90-
if [ "$RUN_FUZZ_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
91-
if [ ! -d "${DIR_QA_ASSETS}" ]; then
90+
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
91+
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
92+
if [ ! -d "$DIR_FUZZ_IN" ]; then
9293
DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets "${DIR_QA_ASSETS}"
9394
fi
94-
95-
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
95+
elif [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
9696
export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
97+
if [ ! -d "$DIR_UNIT_TEST_DATA" ]; then
98+
DOCKER_EXEC mkdir -p "$DIR_UNIT_TEST_DATA"
99+
DOCKER_EXEC curl --location --fail https://github.com/bitcoin-core/qa-assets/raw/main/unit_test_data/script_assets_test.json -o "${DIR_UNIT_TEST_DATA}/script_assets_test.json"
100+
fi
97101
fi
98102

99103
DOCKER_EXEC mkdir -p "${BASE_SCRATCH_DIR}/sanitizer-output/"

0 commit comments

Comments
 (0)