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  a2c45ab26b9baba4ad17c746bd7f1943263eaf61 (commit)
      from  e3c953a038315b385d54822f0cef82e572bf76e1 (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=a2c45ab26b9baba4ad17c746bd7f1943263eaf61


commit a2c45ab26b9baba4ad17c746bd7f1943263eaf61
Author: Simon Josefsson <[email protected]>
Date:   Mon Jan 25 09:55:18 2021 +0100

    Fix 'make check' on broken platforms without /etc/protocols.
    
    * tests/traceroute-localhost.sh: Skip test if /etc/protocols
    doesn't exist, copied from existing code in tests/inetd.sh.
    * tests/ping-localhost.sh: Likewise.

diff --git a/ChangeLog b/ChangeLog
index e8a7093..3aaae37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2021-01-25  Simon Josefsson  <[email protected]>
 
+       Fix 'make check' on broken platforms without /etc/protocols.
+
+       * tests/traceroute-localhost.sh: Skip test if /etc/protocols
+       doesn't exist, copied from existing code in tests/inetd.sh.
+       * tests/ping-localhost.sh: Likewise.
+
+2021-01-25  Simon Josefsson  <[email protected]>
+
        git-version-gen: Sync with git-version-gen usage instructions.
 
        * Makefile.am (EXTRA_DIST): Add.
diff --git a/tests/ping-localhost.sh b/tests/ping-localhost.sh
index 1e8215d..f59ca86 100755
--- a/tests/ping-localhost.sh
+++ b/tests/ping-localhost.sh
@@ -26,6 +26,16 @@
 
 . ./tools.sh
 
+PROTOCOLS=/etc/protocols
+if test ! -r $PROTOCOLS; then
+    cat <<-EOT >&2
+       This test requires the availability of "$PROTOCOLS",
+       a file which can not be found in the current system.
+       Therefore skipping this test.
+       EOT
+    exit 77
+fi
+
 PING=${PING:-../ping/ping$EXEEXT}
 TARGET=${TARGET:-127.0.0.1}
 
diff --git a/tests/traceroute-localhost.sh b/tests/traceroute-localhost.sh
index 65613d1..e500957 100755
--- a/tests/traceroute-localhost.sh
+++ b/tests/traceroute-localhost.sh
@@ -26,6 +26,16 @@
 
 . ./tools.sh
 
+PROTOCOLS=/etc/protocols
+if test ! -r $PROTOCOLS; then
+    cat <<-EOT >&2
+       This test requires the availability of "$PROTOCOLS",
+       a file which can not be found in the current system.
+       Therefore skipping this test.
+       EOT
+    exit 77
+fi
+
 TRACEROUTE=${TRACEROUTE:-../src/traceroute$EXEEXT}
 TARGET=${TARGET:-127.0.0.1}
 

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

Summary of changes:
 ChangeLog                     |  8 ++++++++
 tests/ping-localhost.sh       | 10 ++++++++++
 tests/traceroute-localhost.sh | 10 ++++++++++
 3 files changed, 28 insertions(+)


hooks/post-receive
-- 
GNU Inetutils 

_______________________________________________
Commit-inetutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/commit-inetutils

Reply via email to