Hi,

added a script to contrib that does some checks of the Wget project status,
e.g. usable before pushing commits to the repo.

Of course first of all for discussion and aimed at developers.

It is just a beginning and aggregates my manually checks.
Please feel free to comment /and/or to add more configure option combinations
or whatever.

Right now it stops on 'make check' with VALGRIND_TESTS=1. As known, the IDN
tests (perl suite) does not pass. I had a look at it and it seems to be a
false positive of valgrind. If you agree with me, I can supply a valgrind
suppression file to make the tests pass.

Also, gnulib seems not to be C89 compliant !?

Have fun.

Tim
From d3a1a6a3a7e0755a08b44d2a64a06e17bcdbf978 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim Rühsen?= <[email protected]>
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 <[email protected]>

+	* contrib/check-hard: Added script to check Wget status
+
+2014-12-05  Tim Ruehsen <[email protected]>
+
 	* configure.ac: Fix message for when GnuTLS has not been found.

 2014-12-05  Tim Ruehsen <[email protected]>
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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to