diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-02-08 08:48:33 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-02-09 07:37:04 -0800 |
commit | 8b15ae801531f64804566391bfbd10db451956ca (patch) | |
tree | 1afcc92ea1ed803d2a4b066b386c0a68105c2922 /tests | |
parent | 00ef791078ec318f663b0cffdb18fd928394d591 (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fuzz_setup.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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
|