From d3a1a6a3a7e0755a08b44d2a64a06e17bcdbf978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim Rühsen?= Date: Fri, 5 Dec 2014 16:04:50 +0100 Subject: [PATCH] Added script contrib/check-hard to check Wget status --- ChangeLog | 4 ++++ contrib/check-hard | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100755 contrib/check-hard diff --git a/ChangeLog b/ChangeLog index 5f13bc1..4d5f096 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2014-12-05 Tim Ruehsen + * contrib/check-hard: Added script to check Wget status + +2014-12-05 Tim Ruehsen + * configure.ac: Fix message for when GnuTLS has not been found. 2014-12-05 Tim Ruehsen diff --git a/contrib/check-hard b/contrib/check-hard new file mode 100755 index 0000000..ae1c95c --- /dev/null +++ b/contrib/check-hard @@ -0,0 +1,47 @@ +#!/bin/sh +# +# Do some checking before 'git push'. + +# automatically exit on error +set -e + +export CFLAGS="-stdÈ9 -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" + +CACHEFILE=$PWD/config_check.cache + +# measure time consumed and and print it at the end of the script +START=$(date +%s.%N) + +echo "./bootstrap" +./bootstrap >/dev/null +echo + +for CC in gcc clang-3.6; do + export CC + echo "*** checking CC=$CC" + + # the compiler changed, so we have to remove the cache file here + rm -f $CACHEFILE + + for options in "" "--with-ssl=openssl"; do + export DISTCHECK_CONFIGURE_FLAGS="-C --cache-file=$CACHEFILE $options" + echo " ./configure $DISTCHECK_CONFIGURE_FLAGS" + ./configure $DISTCHECK_CONFIGURE_FLAGS >/dev/null + + for xVALGRIND in 0 1; do + for xLCALL in C tr_TR.utf8; do + export TESTS_ENVIRONMENT="LC_ALL=$xLCALL VALGRIND_TESTS=$xVALGRIND" + echo " TESTS_ENVIRONMENT=\"$TESTS_ENVIRONMENT\"" make check + make check -j5 >/dev/null + done + done + + unset TESTS_ENVIRONMENT + export TESTS_ENVIRONMENT + echo " make distcheck" + make distcheck -j5 + done +done + +END=$(date +%s.%N) +echo "Duration: "$(echo "$END - $START" | bc) -- 2.1.3