]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/env bash | |
2 | # Assumptions: | |
3 | # 1) VALGRIND_ROOT is already defined, and contains a valid values | |
4 | set -eu | |
5 | if [ ! -d "$VALGRIND_ROOT/bin" ] | |
6 | then | |
7 | # These are specified in the addons/apt section of .travis.yml | |
8 | # sudo apt-get install subversion automake autotools-dev libc6-dbg | |
9 | export PATH=$PATH:$VALGRIND_ROOT/bin | |
10 | svn co svn://svn.valgrind.org/valgrind/trunk valgrind-co | |
11 | cd valgrind-co | |
12 | ./autogen.sh | |
13 | ./configure --prefix=$VALGRIND_ROOT | |
14 | make | |
15 | make install | |
16 | # test it | |
17 | valgrind ls -l | |
18 | else | |
19 | echo "Using cached valgrind at $VALGRIND_ROOT" | |
20 | fi |