From 8b15ae801531f64804566391bfbd10db451956ca Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 8 Feb 2017 08:48:33 -0800 Subject: tests: Add a script to set up fuzzing tools This downloads a clang build that has support for instrumentation, and also downloads and compiles libFuzzer.a. --- tests/fuzz_setup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/fuzz_setup.sh (limited to 'tests/fuzz_setup.sh') diff --git a/tests/fuzz_setup.sh b/tests/fuzz_setup.sh new file mode 100644 index 0000000..df5462c --- /dev/null +++ b/tests/fuzz_setup.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +sudo apt-get --yes install subversion screen gcc g++ cmake ninja-build golang autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev + +git clone https://chromium.googlesource.com/chromium/src/tools/clang +clang/scripts/update.py +sudo cp -rf third_party/llvm-build/Release+Asserts/lib/* /usr/local/lib/ +sudo cp -rf third_party/llvm-build/Release+Asserts/bin/* /usr/local/bin + +svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer +Fuzzer/build.sh -- cgit v1.2.3 From ec984370fb525d0cbc20b009f69c9c5eaec022a7 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Fri, 10 Feb 2017 23:51:47 -0800 Subject: tests: Fix fuzz_setup.sh Make the file executable, fix Windows newlines and fix clang setup. --- tests/fuzz_setup.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) mode change 100644 => 100755 tests/fuzz_setup.sh (limited to 'tests/fuzz_setup.sh') diff --git a/tests/fuzz_setup.sh b/tests/fuzz_setup.sh old mode 100644 new mode 100755 index df5462c..05a40cb --- a/tests/fuzz_setup.sh +++ b/tests/fuzz_setup.sh @@ -1,11 +1,13 @@ -#!/bin/bash - -sudo apt-get --yes install subversion screen gcc g++ cmake ninja-build golang autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev - -git clone https://chromium.googlesource.com/chromium/src/tools/clang -clang/scripts/update.py -sudo cp -rf third_party/llvm-build/Release+Asserts/lib/* /usr/local/lib/ -sudo cp -rf third_party/llvm-build/Release+Asserts/bin/* /usr/local/bin - -svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer -Fuzzer/build.sh +#!/bin/bash + +sudo apt-get --yes install subversion screen gcc g++ cmake ninja-build golang autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev + +cd clang +git clone https://chromium.googlesource.com/chromium/src/tools/clang +cd .. +clang/clang/scripts/update.py +sudo cp -rf third_party/llvm-build/Release+Asserts/lib/* /usr/local/lib/ +sudo cp -rf third_party/llvm-build/Release+Asserts/bin/* /usr/local/bin + +svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer +Fuzzer/build.sh -- cgit v1.2.3