Skip to content

Commit

Permalink
skip performance test if we cant ger a baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerhards committed Nov 29, 2016
1 parent c83b157 commit 2927196
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/perf_to_string.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
# first, get baseline from system-installed library
rm -f callgrind.out &> /dev/null
valgrind --tool=callgrind --callgrind-out-file=callgrind.out .libs/perf_to_string
if [ $? -ne 0 ]; then
echo "Error obtaining performance baseline, assuming system is not able to"
echo "support this test - skipping"
exit 77
fi
export RETCODE=$?
echo return code $RETCODE
MAXCYCLES=$(grep < callgrind.out "^totals:" | tr -dc '0-9')
Expand Down

0 comments on commit 2927196

Please sign in to comment.