Files
beast/scripts/install-valgrind.sh
T

21 lines
558 B
Bash
Raw Normal View History

2016-05-28 12:21:40 +07:00
#!/usr/bin/env bash
2016-04-27 14:58:07 +07:00
# Assumptions:
# 1) VALGRIND_ROOT is already defined, and contains a valid values
2016-05-28 12:21:40 +07:00
set -eu
2016-04-27 14:58:07 +07:00
if [ ! -d "$VALGRIND_ROOT/bin" ]
then
# These are specified in the addons/apt section of .travis.yml
# sudo apt-get install subversion automake autotools-dev libc6-dbg
export PATH=$PATH:$VALGRIND_ROOT/bin
svn co svn://svn.valgrind.org/valgrind/trunk valgrind-co
cd valgrind-co
./autogen.sh
./configure --prefix=$VALGRIND_ROOT
make
make install
# test it
valgrind ls -l
else
echo "Using cached valgrind at $VALGRIND_ROOT"
fi