From 4bac9e7e53195f6369ca15f9a6cb72520fe1b13b Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Mon, 6 May 2024 00:33:12 +0200 Subject: [PATCH] Skip online test if no or empty /etc/resolv.conf (#113) Downstream build systems, e.g. at Linux distributions like Fedora, might be (sealed) offline (chroot) environments. --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e3e74c9..a51836a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,4 +36,8 @@ maintainer-clean-local: check: ./bgpq4 -v @echo - ./bgpq4 -6 AS15562:AS-SNIJDERS | grep 2001:67c:208c:: + -@if [ -s /etc/resolv.conf ]; then \ + ./bgpq4 -6 AS15562:AS-SNIJDERS | grep 2001:67c:208c::; \ + else \ + echo "No or empty /etc/resolv.conf, skipping online test"; \ + fi