aboutsummaryrefslogtreecommitdiff
path: root/ci/test/00_setup_env_native_fuzz_with_valgrind.sh
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-02-17 13:34:51 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-02-18 06:56:26 +0000
commita3b539a924f8611abb3096f2bd9d35094b5577e3 (patch)
treea01f85b632f0a830084bd2ace903bd68086d7ecd /ci/test/00_setup_env_native_fuzz_with_valgrind.sh
parent179504ccb6f4e5a4418b064a184ba37b04491a31 (diff)
downloadbitcoin-a3b539a924f8611abb3096f2bd9d35094b5577e3.tar.xz
ci: Run fuzz testing test cases under valgrind
Diffstat (limited to 'ci/test/00_setup_env_native_fuzz_with_valgrind.sh')
-rw-r--r--ci/test/00_setup_env_native_fuzz_with_valgrind.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/ci/test/00_setup_env_native_fuzz_with_valgrind.sh b/ci/test/00_setup_env_native_fuzz_with_valgrind.sh
new file mode 100644
index 0000000000..45b13a669d
--- /dev/null
+++ b/ci/test/00_setup_env_native_fuzz_with_valgrind.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2019 The Bitcoin Core developers
+# Distributed under the MIT software license, see the accompanying
+# file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+export LC_ALL=C.UTF-8
+
+export CONTAINER_NAME=ci_native_fuzz_valgrind
+export PACKAGES="clang-8 llvm-8 python3 libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev valgrind"
+export NO_DEPENDS=1
+export RUN_UNIT_TESTS=false
+export RUN_FUNCTIONAL_TESTS=false
+export RUN_FUZZ_TESTS=true
+export FUZZ_TESTS_CONFIG="--valgrind"
+export GOAL="install"
+export BITCOIN_CONFIG="--enable-fuzz --with-sanitizers=fuzzer CC=clang-8 CXX=clang++-8"
+# Use clang-8, instead of default clang on bionic, which is clang-6 and does not come with libfuzzer on aarch64