X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=scripts%2Fcheck.sh;h=c354a6606481217f56f71f7ecd96a337accea4a1;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hp=9919ce3d8d610fa6a59179625f262b912bd56278;hpb=a94b0149a148edecac5be54140a050252b72073e;p=psensor.git diff --git a/scripts/check.sh b/scripts/check.sh index 9919ce3..c354a66 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -3,9 +3,14 @@ SCRIPT_DIR=`dirname $0` cd $SCRIPT_DIR/.. -./configure CC=cgcc CPPFLAGS="-DCURL_DISABLE_TYPECHECK -Wno-old-initializer" -make clean all check 3>&1 1>&2 2>&3 | 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