logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 977bb9c201a9ec5448254515f55a2d660037e7b0
parent 3c4a307dffac58ccd68168a1e20211893b84b337
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 14 Oct 2023 19:40:44 +0200

dev-perl/Net-CVE: no network testing

Diffstat:

Mdev-perl/Net-CVE/Net-CVE-0.006.ebuild4++++
Adev-perl/Net-CVE/files/0001-t-30-get.t-Skip-on-NO_NETWORK_TESTING.patch28++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/dev-perl/Net-CVE/Net-CVE-0.006.ebuild b/dev-perl/Net-CVE/Net-CVE-0.006.ebuild @@ -23,3 +23,7 @@ BDEPEND=" ${RDEPEND} test? ( dev-perl/Test-Warnings ) " + +PATCHES=( + "${FILESDIR}/0001-t-30-get.t-Skip-on-NO_NETWORK_TESTING.patch" +) diff --git a/dev-perl/Net-CVE/files/0001-t-30-get.t-Skip-on-NO_NETWORK_TESTING.patch b/dev-perl/Net-CVE/files/0001-t-30-get.t-Skip-on-NO_NETWORK_TESTING.patch @@ -0,0 +1,28 @@ +From 7febf73579ce693ac60ecb88f93627a8bfe0e26f Mon Sep 17 00:00:00 2001 +From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me> +Date: Sat, 14 Oct 2023 19:33:19 +0200 +Subject: [PATCH 1/2] t/30-get.t: Skip on NO_NETWORK_TESTING + +--- + t/30-get.t | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/t/30-get.t b/t/30-get.t +index c638953..1afec30 100644 +--- a/t/30-get.t ++++ b/t/30-get.t +@@ -8,6 +8,11 @@ use Test::Warnings; + + use Net::CVE; + ++if ($ENV{NO_NETWORK_TESTING}) { ++ print "1..0 # SKIP Live tests disabled due to NO_NETWORK_TESTING\n"; ++ exit 0; ++ } ++ + ok (my $c1 = Net::CVE->new, "New reporter"); + ok ($c1->get ("CVE-2022-26928"), "Read report with prefix"); + ok (my $d1 = $c1->data, "Generate data"); +-- +2.41.0 +