]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
perl-WWW-Curl: Enable testsuite
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Mar 2023 10:09:24 +0000 (11:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:25:40 +0000 (18:25 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
perl-WWW-Curl/perl-WWW-Curl.nm

index 20619266aaacbacb437d5d7b71708543ab0e7b28..b319eaf7a45c611dd5d79c8414edf6731ec841a2 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = perl-WWW-Curl
 version    = 4.17
-release    = 1.2
+release    = 2
 thisapp    = WWW-Curl-%{version}
 
 groups     = Development/Libraries
@@ -21,12 +21,12 @@ source_dl  = http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/
 
 build
        requires
+               libcurl-devel
                perl(FindBin)
                perl(ExtUtils::MakeMaker)
                perl(ExtUtils::ParseXS)
                perl(Module::Install)
-               libcurl-devel
-               pakfire >= 0.9.26-3.1
+               perl(Test::More)
        end
 
        build
@@ -34,7 +34,24 @@ build
                make %{PARALLELISMFLAGS}
        end
 
-       make_install_targets = pure_install
+       test
+               # The following tests requires network connectivity
+               # Remove them
+               rm t/01basic.t
+               rm t/02callbacks.t
+               rm t/04abort-test.t
+               rm t/05progress.t
+               rm t/08ssl.t
+               rm t/09times.t
+               rm t/14duphandle.t
+               rm t/15duphandle-callback.t
+               rm t/18twinhandles.t
+               rm t/19multi.t
+               rm t/21write-to-scalar.t
+
+               make test
+       end
+
 end
 
 packages