commit-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Inetutils branch, master, updated. inetutils-1_8-95-gdc99ec0


From: Alfred M. Szmidt
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_8-95-gdc99ec0
Date: Wed, 08 Jun 2011 21:30:12 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  dc99ec0d54367bc2371d24a22f48743b9ef34f13 (commit)
      from  0d208b7e07f217d2497dbc345a6606596a6379ef (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=dc99ec0d54367bc2371d24a22f48743b9ef34f13


commit dc99ec0d54367bc2371d24a22f48743b9ef34f13
Author: Alfred M. Szmidt <address@hidden>
Date:   Wed Jun 8 23:26:27 2011 +0200

    tests/tftp.sh: Skip test if we cannot execute netstat.  Enable verbose
    execution of test as early as possible.

diff --git a/ChangeLog b/ChangeLog
index 64afaa3..c05fb43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-08  Alfred M. Szmidt  <address@hidden>
+
+       * tests/tftp.sh: Skip test if we cannot execute netstat.  Enable
+       verbose execution of test as early as possible.
+
 2011-06-05  Alfred M. Szmidt  <address@hidden>
 
        Clean up `make syntax-check' errors.
diff --git a/tests/tftp.sh b/tests/tftp.sh
index fec5171..b670c63 100755
--- a/tests/tftp.sh
+++ b/tests/tftp.sh
@@ -19,6 +19,10 @@
 
 # Run `inetd' with `tftpd' and try to fetch a file from there using `tftp'.
 
+if [ "$VERBOSE" ]; then
+    set -x
+fi
+
 TFTP="${TFTP:-../src/tftp$EXEEXT}"
 TFTPD="${TFTPD:-$PWD/../src/tftpd$EXEEXT}"
 INETD="${INETD:-../src/inetd$EXEEXT}"
@@ -32,8 +36,14 @@ INETD_CONF="$PWD/inetd.conf.tmp"
 ADDRESSES="`$IFCONFIG | sed -e "/$AF /!d" \
      -e "s/^.*$AF[[:blank:]]\([:.0-9]\{1,\}\)[[:blank:]].*$/\1/g"`"
 
+# Check that netstat works before proceeding.
+netstat -na > /dev/null
+if [ ! $? -eq 0 ]; then
+    echo "netstat: command failed to execute successfully"
+    exit 77
+fi
+
 if [ "$VERBOSE" ]; then
-    set -x
     "$TFTP" --version
     "$TFTPD" --version
     "$INETD" --version

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog     |    5 +++++
 tests/tftp.sh |   12 +++++++++++-
 2 files changed, 16 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]