Skip to content

Commit

Permalink
Travis: Run TCMalloc runs explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowack committed Feb 27, 2016
1 parent a6a5c14 commit 18f01e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ env:

# Check at least one Debug+Asserts build
- LLVM_VERSION=3.4 SOLVERS=STP STP_VERSION=master KLEE_UCLIBC=klee_uclibc_v1.0.0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=0 COVERAGE=0

# Check with TCMALLOC
- LLVM_VERSION=3.4 SOLVERS=STP STP_VERSION=2.1.0 KLEE_UCLIBC=klee_uclibc_v1.0.0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 USE_TCMALLOC=1
- LLVM_VERSION=2.9 SOLVERS=STP STP_VERSION=2.1.0 KLEE_UCLIBC=klee_uclibc_v1.0.0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 USE_TCMALLOC=1

global:
- secure: EF/WAc4BdIRUchF3mjATN3/UwtGWtGaRgb5oIIJHjKhgZFdPsgWsXFgaOB0jaK2hfO/svj/LvlasuRIGxeePVjeaiX8ZlVpuHiX67vdYLY+0kCDRwkusRjm60/GbPU9O/Xjgb/d4aWAEkoq5OnsprVTEvU8iY2JHtAqgwR+wW9I=
- secure: Hrp1MRSxDUH2GTQg3QR/yUttY/3KmgbFb5e+zyy551dKpHjxJdsNe8bquY9oFoT7KmPQYl0HNNjEv4qWW8RK+HWHOCB55nL1KlGpOG7vAJcUEZg7ScbliGgiovMB6jIQVfeP9FhYngfc13vNZQ5PGlqzfSsHSAbvkwEogBToHVw=
Expand Down
16 changes: 9 additions & 7 deletions .travis/install-tcmalloc.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash -x
set -ev

# Get tcmalloc release
wget https://github.com/gperftools/gperftools/releases/download/gperftools-2.4/gperftools-2.4.tar.gz
tar xfz gperftools-2.4.tar.gz
cd gperftools-2.4
./configure --disable-dependency-tracking --disable-cpu-profiler --disable-heap-checker --disable-debugalloc --enable-minimal --prefix=/usr
make
sudo make install
if [ ${USE_TCMALLOC:-0} -eq 1 ] ; then
# Get tcmalloc release
wget https://github.com/gperftools/gperftools/releases/download/gperftools-2.4/gperftools-2.4.tar.gz
tar xfz gperftools-2.4.tar.gz
cd gperftools-2.4
./configure --disable-dependency-tracking --disable-cpu-profiler --disable-heap-checker --disable-debugalloc --enable-minimal --prefix=/usr
make
sudo make install
fi
4 changes: 4 additions & 0 deletions .travis/klee.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ for solver in ${SOLVER_LIST}; do
exit 1
esac
done


TCMALLOC_OPTION=$([ "${USE_TCMALLOC:-0}" == 1 ] && echo "--with-tcmalloc" || echo "--without-tcmalloc")
###############################################################################
# KLEE
###############################################################################
Expand All @@ -85,6 +88,7 @@ ${KLEE_SRC}/configure --with-llvmsrc=/usr/lib/llvm-${LLVM_VERSION}/build \
${KLEE_STP_CONFIGURE_OPTION} \
${KLEE_Z3_CONFIGURE_OPTION} \
${KLEE_UCLIBC_CONFIGURE_OPTION} \
${TCMALLOC_OPTION} \
CXXFLAGS="${COVERAGE_FLAGS}" \
&& make DISABLE_ASSERTIONS=${DISABLE_ASSERTIONS} \
ENABLE_OPTIMIZED=${ENABLE_OPTIMIZED} \
Expand Down

0 comments on commit 18f01e9

Please sign in to comment.