X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=scripts%2Fcheck.sh;h=c354a6606481217f56f71f7ecd96a337accea4a1;hb=912b5d1986633786a656bb3361f7ae9c1263acef;hp=ba48fdacf904ff423e75b6722f87ecae1e76cef9;hpb=498aeeaef4fdde54833db90e88a370c8598d85e8;p=psensor.git diff --git a/scripts/check.sh b/scripts/check.sh index ba48fda..c354a66 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -3,9 +3,14 @@ SCRIPT_DIR=`dirname $0` cd $SCRIPT_DIR/.. -./configure --prefix=/tmp CC=cgcc CPPFLAGS="-Wsparse-all -DCURL_DISABLE_TYPECHECK -Wno-old-initializer" -make clean all check install distcheck 3>&1 1>&2 2>&3 | grep -v "^/usr/include" | tee /tmp/err +./configure --prefix=/tmp CC=cgcc CPPFLAGS="-Wsparse-all -DCURL_DISABLE_TYPECHECK -Wno-old-initializer" || exit 1 +make clean || exit 1 +make all check install distcheck 3>&1 1>&2 2>&3 | grep -v "^/usr/include" | tee /tmp/err cat /tmp/err echo Number of warnings: `cat /tmp/err|wc -l` + +export G_DEBUG=fatal_warnings + +$SCRIPT_DIR/../src/psensor