tomcrypt/coverage.sh
2014-05-07 16:16:08 +02:00

27 lines
391 B
Bash
Executable File

#!/bin/bash
if [ -z "$(echo $CC | grep "gcc")" ]; then
echo "no gcc detected, early exit success"
exit 0
fi
# output version
bash printinfo.sh
bash build.sh " $1" " $2" " $3 " "$4 -fprofile-arcs -ftest-coverage " "$5 -lgcov"
if [ -a testok.txt ] && [ -f testok.txt ]; then
echo
else
echo
echo "Test failed"
exit 1
fi
cpp-coveralls
exit 0
# $Source$
# $Revision$
# $Date$