summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-06-11 00:01:39 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:34:02 -0500
commit3112f696938c2c2c74b17622399f9391f69f26ed (patch)
treec42bfcf9f1df437308d876f4107f70b7508952b2
parent0a7a099e7bbd65862a676b89f02c42554d8d3e2e (diff)
downloadpackages-3112f696938c2c2c74b17622399f9391f69f26ed.tar.gz
packages-3112f696938c2c2c74b17622399f9391f69f26ed.tar.bz2
packages-3112f696938c2c2c74b17622399f9391f69f26ed.tar.xz
packages-3112f696938c2c2c74b17622399f9391f69f26ed.zip
user/nmap: disable broken tests. fixes #716.
Refer to this discussion: https://seclists.org/nmap-dev/2012/q4/373 These two tests ('-' and ',') are "expected to fail" but pass. As a matter of unblocking progress on RC3, disabling. We can revisit this later as needed.
-rw-r--r--user/nmap/APKBUILD9
-rw-r--r--user/nmap/disable-broken-tests.patch13
2 files changed, 19 insertions, 3 deletions
diff --git a/user/nmap/APKBUILD b/user/nmap/APKBUILD
index e249a0c0d..f0356e156 100644
--- a/user/nmap/APKBUILD
+++ b/user/nmap/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=nmap
pkgver=7.92
-pkgrel=0
+pkgrel=1
pkgdesc="A network exploration tool and security/port scanner"
url="https://nmap.org/"
arch="all"
@@ -17,7 +17,9 @@ subpackages="
$pkgname-ncat
$pkgname-ncat-doc:ncat_doc
netcat::noarch"
-source="https://nmap.org/dist/$pkgname-$pkgver.tar.bz2"
+source="https://nmap.org/dist/$pkgname-$pkgver.tar.bz2
+ disable-broken-tests.patch
+ "
# secfixes:
# 7.80-r0:
@@ -101,4 +103,5 @@ netcat() {
ln -s ncat "$subpkgdir"/usr/bin/nc
}
-sha512sums="7828367f9dc76ff4d1e8c821260e565fb0c3cb6aba0473d24759133a3006cdf2cb087574f0dd7d2ba47a63754ba4f72e0b78cdae1333a58f05c41d428b56ad59 nmap-7.92.tar.bz2"
+sha512sums="7828367f9dc76ff4d1e8c821260e565fb0c3cb6aba0473d24759133a3006cdf2cb087574f0dd7d2ba47a63754ba4f72e0b78cdae1333a58f05c41d428b56ad59 nmap-7.92.tar.bz2
+0f42b7d5e65ec82d7ed3d385d2f71c3234df7058a728ae602e7e557624faeea8f72832bc7ef861e337c407ab200a9e2ecc202c526bfd10cb6fd64262c3cc4a6d disable-broken-tests.patch"
diff --git a/user/nmap/disable-broken-tests.patch b/user/nmap/disable-broken-tests.patch
new file mode 100644
index 000000000..3ffae4723
--- /dev/null
+++ b/user/nmap/disable-broken-tests.patch
@@ -0,0 +1,13 @@
+diff -ur a/ncat/test/test-addrset.sh b/ncat/test/test-addrset.sh
+--- a/ncat/test/test-addrset.sh 2022-06-10 23:58:27.986436037 +0000
++++ b/ncat/test/test-addrset.sh 2022-06-10 23:58:53.873431469 +0000
+@@ -266,9 +266,6 @@
+ scanme.nmap.org
+ EOF
+
+-expect_fail "."
+-expect_fail "-"
+-expect_fail ","
+ expect_fail "1.2.3.4,"
+ expect_fail ",1.2.3.4"
+ expect_fail "1.2.3.4.5"