-
Notifications
You must be signed in to change notification settings - Fork 67
/
install.sh
executable file
·67 lines (50 loc) · 1.85 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh
# Install fuzzgrind dependencies
# - compile fuzzgrind testcases and fault detection tool
# - download binary version of STP
# - download valgrind 3.3.1 sources and compile them
VG_VER=r12356
###############################################################################
# Testcases and fault detection tool
###############################################################################
echo '[fuzzgrind] Compiling some binaries'
make -C fault_detection/
make -C testcase/
###############################################################################
# STP
###############################################################################
if [ ! -e stp.tar.gz ]; then
echo '[fuzzgrind] Downloading STP'
wget http://people.csail.mit.edu/vganesh/STP_files/stp.tar.gz
fi
if [ ! -e stp/stp ]; then
echo '[fuzzgrind] Installing STP into stp/'
mkdir -p stp/
tar -C stp/ -xzf stp.tar.gz
fi
###############################################################################
# Valgrind
###############################################################################
#if [ ! -e "valgrind-${VG_VER}.tar.bz2" ]; then
# echo "[fuzzgrind] Downloading valgrind ${VG_VER}"
# wget http://valgrind.org/downloads/valgrind-${VG_VER}.tar.bz2
#fi
#if [ ! -e "valgrind-${VG_VER}/README" ]; then
# echo "[fuzzgrind] Extracting valgrind-${VG_VER}.tar.bz2"
# tar --ignore-failed-read -jkxf "valgrind-${VG_VER}.tar.bz2"
#fi
cd "valgrind-${VG_VER}"
if [ ! -e ./fuzzgrind/Makefile ]; then
echo '[fuzzgrind] Configuring valgrind'
mkdir -p build/
./autogen.sh
./configure CFLAGS=-fno-stack-protector --prefix=`pwd`/build/ --enable-only32bit
fi
if [ ! -e ./fuzzgrind/fuzzgrind-x86-linux ]; then
echo '[fuzzgrind] Making valgrind'
make
fi
if [ ! -e ./build/bin/valgrind ]; then
echo '[fuzzgrind] Installing valgrind'
make install
fi