File nmap-ncat-skip-network-tests.patch of Package nmap
From 7aa8e9fd460f274931641b17be20f6c6c2242a1b Mon Sep 17 00:00:00 2001
From: Martin Hauke <mardnh@gmx.de>
Date: Sun, 22 Nov 2015 18:20:31 +0100
Subject: [PATCH] ncat - skip tests requiring name resolution References:
http://seclists.org/nmap-dev/2012/q4/373 Upstream: never
Some tests in the ncat test script require name resolution which is not available in OBS. Remove tests.
---
ncat/test/test-addrset.sh | 19 -------------------
1 file changed, 19 deletions(-)
Index: b/ncat/test/test-addrset.sh
===================================================================
--- a/ncat/test/test-addrset.sh 2024-08-24 23:38:13.000000000 +0200
+++ b/ncat/test/test-addrset.sh 2025-09-09 11:09:49.260339434 +0200
@@ -246,25 +246,6 @@ test_addrset "1:2::0003/0" "1:2::3 1:2::
ff::00
EOF
-# Name lookup.
-test_addrset "scanme.nmap.org" "scanme.nmap.org" <<EOF
-1:2::3:4
-1.2.3.4
-scanme.nmap.org
-EOF
-
-# Name lookup combined with CIDR netmask.
-test_addrset "scanme.nmap.org/30" "scanme.nmap.org" <<EOF
-1:2::3:4
-1.2.3.4
-scanme.nmap.org
-EOF
-
-# Name lookup combined with /0 CIDR netmask.
-test_addrset "scanme.nmap.org/0" "1.2.3.4 scanme.nmap.org" <<EOF
-1.2.3.4
-scanme.nmap.org
-EOF
expect_fail "."
expect_fail "-"