nmap/nmap-ncat-skip-network-tests.patch

45 lines
1.2 KiB
Diff

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(-)
diff --git a/ncat/test/test-addrset.sh b/ncat/test/test-addrset.sh
index 7f54023..1a7944e 100755
--- a/ncat/test/test-addrset.sh
+++ b/ncat/test/test-addrset.sh
@@ -227,25 +227,6 @@ test_addrset "1:2::0003/0" "1:2::3 1:2::0 1:2::ff 1:2::1ff 1:3::3 ff::00" <<EOF
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 "-"
--
1.8.4.5