mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
contrib/check-hard: Indentation and spacing cleanup
* contrib/check-hard: Reduce the amount of text output to the screen. Also implement some indentation and whitespace cleanups.
This commit is contained in:
parent
5f0818d9f1
commit
103f940950
@ -2,13 +2,15 @@
|
||||
#
|
||||
# Do some checking before 'git push'.
|
||||
|
||||
CORES=`grep -c ^processor /proc/cpuinfo 2>/dev/null || echo 0`
|
||||
# Set a stricter bash mode
|
||||
set -e
|
||||
set -u
|
||||
|
||||
CORES=$(grep -c ^processor /proc/cpuinfo 2> /dev/null || echo 0)
|
||||
if [ $CORES -lt 1 ]; then CORES=1; fi
|
||||
|
||||
make -f Makefile distclean 2>/dev/null
|
||||
|
||||
# automatically exit on error
|
||||
set -e
|
||||
echo "Running: make distclean"
|
||||
make distclean > /dev/null || true
|
||||
|
||||
CFLAGS="-std=c89 -pedantic -O2 -g -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wwrite-strings -Wshadow -Wformat -Wformat-security -Wunreachable-code -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition"
|
||||
|
||||
@ -17,13 +19,13 @@ CACHEFILE=$PWD/config_check.cache
|
||||
# measure time consumed and print it at the end of the script
|
||||
START=$(date +%s.%N)
|
||||
|
||||
echo "./bootstrap"
|
||||
echo "Running: ./bootstrap"
|
||||
./bootstrap > /dev/null
|
||||
echo
|
||||
|
||||
for CC in gcc clang; do
|
||||
export CC
|
||||
echo "*** checking CC=$CC"
|
||||
echo "*** Testing with CC=$CC"
|
||||
|
||||
# the compiler changed, so we have to remove the cache file here
|
||||
rm -f $CACHEFILE
|
||||
@ -43,8 +45,8 @@ for CC in gcc clang; do
|
||||
|
||||
unset TESTS_ENVIRONMENT
|
||||
export TESTS_ENVIRONMENT
|
||||
echo " make distcheck -j$CORES"
|
||||
make distcheck CFLAGS="$CFLAGS" -j$CORES
|
||||
echo " make distcheck CFLAGS=$CFLAGS -j$CORES"
|
||||
make distcheck CFLAGS="$CFLAGS" -j$CORES > /dev/null
|
||||
done
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user