Skip to content

Commit

Permalink
Update buildscript for success
Browse files Browse the repository at this point in the history
  • Loading branch information
PJK committed Apr 26, 2015
1 parent 4e32c96 commit a06225d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions buildscript.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
set -e

mkdir /tmp/build
#mkdir /tmp/build
cd /tmp/build
cmake -DCUSTOM_ALLOC=$CUSTOM_ALLOC -DCMAKE_BUILD_TYPE=Debug $SOURCE
make
ctest -V
ctest -T memcheck | tee memcheck.out
# Hack - multiline return status doesn't work
grep -E 'Memory Leak - [1-9][0-9]*' memcheck.out | grep -v 'Memory Leak'
if grep -q 'Memory Leak' memcheck.out; then
exit 1
fi

0 comments on commit a06225d

Please sign in to comment.