perl testing: refactor stand-alone testing into base class (#43044)
This commit is contained in:
parent
48183b37be
commit
1e9c46296c
@ -173,6 +173,72 @@ arguments to ``Makefile.PL`` or ``Build.PL`` by overriding
|
||||
]
|
||||
|
||||
|
||||
^^^^^^^
|
||||
Testing
|
||||
^^^^^^^
|
||||
|
||||
``PerlPackage`` provides a simple stand-alone test of the successfully
|
||||
installed package to confirm that installed perl module(s) can be used.
|
||||
These tests can be performed any time after the installation using
|
||||
``spack -v test run``. (For more information on the command, see
|
||||
:ref:`cmd-spack-test-run`.)
|
||||
|
||||
The base class automatically detects perl modules based on the presence
|
||||
of ``*.pm`` files under the package's library directory. For example,
|
||||
the files under ``perl-bignum``'s perl library are:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ find . -name "*.pm"
|
||||
./bigfloat.pm
|
||||
./bigrat.pm
|
||||
./Math/BigFloat/Trace.pm
|
||||
./Math/BigInt/Trace.pm
|
||||
./Math/BigRat/Trace.pm
|
||||
./bigint.pm
|
||||
./bignum.pm
|
||||
|
||||
|
||||
which results in the package having the ``use_modules`` property containing:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
use_modules = [
|
||||
"bigfloat",
|
||||
"bigrat",
|
||||
"Math::BigFloat::Trace",
|
||||
"Math::BigInt::Trace",
|
||||
"Math::BigRat::Trace",
|
||||
"bigint",
|
||||
"bignum",
|
||||
]
|
||||
|
||||
.. note::
|
||||
|
||||
This list can often be used to catch missing dependencies.
|
||||
|
||||
If the list is somehow wrong, you can provide the names of the modules
|
||||
yourself by overriding ``use_modules`` like so:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
use_modules = ["bigfloat", "bigrat", "bigint", "bignum"]
|
||||
|
||||
If you only want a subset of the automatically detected modules to be
|
||||
tested, you could instead define the ``skip_modules`` property on the
|
||||
package. So, instead of overriding ``use_modules`` as shown above, you
|
||||
could define the following:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
skip_modules = [
|
||||
"Math::BigFloat::Trace",
|
||||
"Math::BigInt::Trace",
|
||||
"Math::BigRat::Trace",
|
||||
]
|
||||
|
||||
for the same use tests.
|
||||
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
Alternatives to Spack
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -4,12 +4,15 @@
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
import inspect
|
||||
import os
|
||||
from typing import Iterable
|
||||
|
||||
from llnl.util.filesystem import filter_file
|
||||
from llnl.util.filesystem import filter_file, find
|
||||
from llnl.util.lang import memoized
|
||||
|
||||
import spack.builder
|
||||
import spack.package_base
|
||||
from spack.directives import build_system, extends
|
||||
from spack.install_test import SkipTest, test_part
|
||||
from spack.util.executable import Executable
|
||||
|
||||
from ._checks import BaseBuilder, execute_build_time_tests
|
||||
@ -28,6 +31,58 @@ class PerlPackage(spack.package_base.PackageBase):
|
||||
|
||||
extends("perl", when="build_system=perl")
|
||||
|
||||
@property
|
||||
@memoized
|
||||
def _platform_dir(self):
|
||||
"""Name of platform-specific module subdirectory."""
|
||||
perl = self.spec["perl"].command
|
||||
options = "-E", "use Config; say $Config{archname}"
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
return out.strip()
|
||||
|
||||
@property
|
||||
def use_modules(self) -> Iterable[str]:
|
||||
"""Names of the package's perl modules."""
|
||||
module_files = find(self.prefix.lib, ["*.pm"], recursive=True)
|
||||
|
||||
# Drop the platform directory, if present
|
||||
if self._platform_dir:
|
||||
platform_dir = self._platform_dir + os.sep
|
||||
module_files = [m.replace(platform_dir, "") for m in module_files]
|
||||
|
||||
# Drop the extension and library path
|
||||
prefix = self.prefix.lib + os.sep
|
||||
modules = [os.path.splitext(m)[0].replace(prefix, "") for m in module_files]
|
||||
|
||||
# Drop the perl subdirectory as well
|
||||
return ["::".join(m.split(os.sep)[1:]) for m in modules]
|
||||
|
||||
@property
|
||||
def skip_modules(self) -> Iterable[str]:
|
||||
"""Names of modules that should be skipped when running tests.
|
||||
|
||||
These are a subset of use_modules.
|
||||
|
||||
Returns:
|
||||
List of strings of module names.
|
||||
"""
|
||||
return []
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
if not self.use_modules:
|
||||
raise SkipTest("Test requires use_modules package property.")
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
for module in self.use_modules:
|
||||
if module in self.skip_modules:
|
||||
continue
|
||||
|
||||
with test_part(self, f"test_use-{module}", purpose=f"checking use of {module}"):
|
||||
options = ["-we", f'use strict; use {module}; print("OK\n")']
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
||||
|
||||
@spack.builder.builder("perl")
|
||||
class PerlBuilder(BaseBuilder):
|
||||
@ -52,7 +107,7 @@ class PerlBuilder(BaseBuilder):
|
||||
phases = ("configure", "build", "install")
|
||||
|
||||
#: Names associated with package methods in the old build-system format
|
||||
legacy_methods = ("configure_args", "check")
|
||||
legacy_methods = ("configure_args", "check", "test_use")
|
||||
|
||||
#: Names associated with package attributes in the old build-system format
|
||||
legacy_attributes = ()
|
||||
|
@ -221,6 +221,7 @@ def test_test_list_all(mock_packages):
|
||||
[
|
||||
"fail-test-audit",
|
||||
"mpich",
|
||||
"perl-extension",
|
||||
"printing-package",
|
||||
"py-extension1",
|
||||
"py-extension2",
|
||||
|
@ -19,11 +19,3 @@ class PerlAlgorithmC3(PerlPackage):
|
||||
version("0.11", sha256="aaf48467765deea6e48054bc7d43e46e4d40cbcda16552c629d37be098289309")
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Algorithm::C3; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlAlienBuildPluginDownloadGitlab(PerlPackage):
|
||||
depends_on("perl-path-tiny", type=("build", "run", "test"))
|
||||
depends_on("perl-test2-suite", type=("build", "test"))
|
||||
depends_on("perl-uri", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Alien::Build::Plugin::Download::GitLab; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlAnyUriEscape(PerlPackage):
|
||||
version("0.01", sha256="e3813cec9f108fa5c0be66e08c1986bfba4d242151b0f9f4ec5e0c5e17108c4c")
|
||||
|
||||
depends_on("perl-uri", type=("run"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Any::URI::Escape; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -28,11 +28,3 @@ class PerlApacheLogformatCompiler(PerlPackage):
|
||||
depends_on("perl-test-requires", type=("build", "test"))
|
||||
depends_on("perl-try-tiny@0.12:", type=("build", "test"))
|
||||
depends_on("perl-uri", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Apache::LogFormat::Compiler; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlBCow(PerlPackage):
|
||||
version("0.007", sha256="1290daf227e8b09889a31cf182e29106f1cf9f1a4e9bf7752f9de92ed1158b44")
|
||||
|
||||
depends_on("perl@5.8.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use B::COW; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlBHooksEndofscope(PerlPackage):
|
||||
depends_on("perl@5.6.1:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-module-implementation@0.05:", type=("build", "run", "test"))
|
||||
depends_on("perl-sub-exporter-progressive@0.001006:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use B::Hooks::EndOfScope; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -15,11 +15,3 @@ class PerlBKeywords(PerlPackage):
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("1.26", sha256="2daa155d2f267fb0dedd87f8a4c4fb5663879fc106517b1ee258353ef87aed34")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use B::Keywords; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlBioAsn1Entrezgene(PerlPackage):
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-bio-cluster", type=("build", "run", "test"))
|
||||
depends_on("perl-bioperl", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Bio::ASN1::EntrezGene; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlBioCluster(PerlPackage):
|
||||
depends_on("perl-bio-variation", type=("build", "run", "test"))
|
||||
depends_on("perl-bioperl", type=("build", "run", "test"))
|
||||
depends_on("perl-xml-sax", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Bio::Cluster; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -26,11 +26,3 @@ class PerlBioEutilities(PerlPackage):
|
||||
depends_on("perl-text-csv", type=("build", "run", "test"))
|
||||
depends_on("perl-uri", type=("build", "run", "test"))
|
||||
depends_on("perl-xml-simple", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Bio::DB::EUtilities; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -23,11 +23,3 @@ class PerlBioVariation(PerlPackage):
|
||||
depends_on("perl-io-string", type=("build", "run", "test"))
|
||||
depends_on("perl-xml-twig", type=("build", "run", "test"))
|
||||
depends_on("perl-xml-writer@0.4:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Bio::Variation; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -15,11 +15,3 @@ class PerlBsdResource(PerlPackage):
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("1.2911", sha256="9d1cfba063cc18f72427a22451f7908836b7331ac8785dbe07553c5b043a0c3d")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use BSD::Resource; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlCacheCache(PerlPackage):
|
||||
depends_on("perl-digest-sha1@2.02:", type=("build", "run", "test"))
|
||||
depends_on("perl-error@0.15:", type=("build", "run", "test"))
|
||||
depends_on("perl-ipc-sharelite@0.09:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Cache::Cache; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlCacheMemcached(PerlPackage):
|
||||
version("1.30", sha256="31b3c51ec0eaaf03002e2cc8e3d7d5cbe61919cfdada61c008eb9853acac42a9")
|
||||
|
||||
depends_on("perl-string-crc32", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Cache::Memcached; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -15,11 +15,3 @@ class PerlCanaryStability(PerlPackage):
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("2013", sha256="a5c91c62cf95fcb868f60eab5c832908f6905221013fea2bce3ff57046d7b6ea")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Canary::Stability; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -24,11 +24,3 @@ class PerlCatalystActionRenderview(PerlPackage):
|
||||
depends_on("perl-data-visitor@0.24:", type=("build", "run", "test"))
|
||||
depends_on("perl-http-request-ascgi", type=("build", "link"))
|
||||
depends_on("perl-mro-compat", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Action::RenderView; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -29,11 +29,3 @@ class PerlCatalystActionRest(PerlPackage):
|
||||
depends_on("perl-params-validate@0.76:", type=("build", "run", "test"))
|
||||
depends_on("perl-test-requires", type=("build", "test"))
|
||||
depends_on("perl-uri-find", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Action::REST; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlCatalystComponentInstancepercontext(PerlPackage):
|
||||
|
||||
depends_on("perl-catalyst-runtime", type=("build", "run", "test"))
|
||||
depends_on("perl-moose", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Component::InstancePerContext; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -36,11 +36,3 @@ class PerlCatalystDevel(PerlPackage):
|
||||
depends_on("perl-template-toolkit", type=("build", "run", "test"))
|
||||
depends_on("perl-test-fatal@0.003:", type=("build", "test"))
|
||||
depends_on("perl-yaml-tiny", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Devel; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -24,11 +24,3 @@ class PerlCatalystPluginCache(PerlPackage):
|
||||
depends_on("perl-test-deep", type=("build", "link"))
|
||||
depends_on("perl-test-exception", type=("build", "link"))
|
||||
depends_on("perl-class-accessor", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Plugin::Cache; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -24,11 +24,3 @@ class PerlCatalystPluginConfigloader(PerlPackage):
|
||||
depends_on("perl-config-any@0.20:", type=("build", "run", "test"))
|
||||
depends_on("perl-data-visitor@0.24:", type=("build", "run", "test"))
|
||||
depends_on("perl-mro-compat@0.09:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Plugin::ConfigLoader; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlCatalystPluginStaticSimple(PerlPackage):
|
||||
depends_on("perl-mime-types@2.03:", type=("build", "run", "test"))
|
||||
depends_on("perl-moose", type=("build", "run", "test"))
|
||||
depends_on("perl-namespace-autoclean", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Plugin::Static::Simple; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -60,11 +60,3 @@ class PerlCatalystRuntime(PerlPackage):
|
||||
depends_on("perl-try-tiny@0.17:", type=("build", "run", "test"))
|
||||
depends_on("perl-uri@1.65:", type=("build", "run", "test"))
|
||||
depends_on("perl-uri-ws@0.03:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::Test; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlCatalystViewJson(PerlPackage):
|
||||
depends_on("perl-catalyst-runtime", type=("build", "run", "test"))
|
||||
depends_on("perl-json-maybexs@1.003000:", type=("build", "run", "test"))
|
||||
depends_on("perl-mro-compat", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Catalyst::View::JSON; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlCgiSimple(PerlPackage):
|
||||
|
||||
depends_on("perl-test-exception", type=("build", "test"))
|
||||
depends_on("perl-test-nowarnings", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use CGI::Simple; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlCgiStruct(PerlPackage):
|
||||
version("1.21", sha256="d13d8da7fdcd6d906054e4760fc28a718aec91bd3cf067a58927fb7cb1c09d6c")
|
||||
|
||||
depends_on("perl-test-deep", type=("build", "link"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use CGI::Struct; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlChartGnuplot(PerlPackage):
|
||||
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
|
||||
|
||||
version("0.23", sha256="dcb46c0f93436464bdc3403469c828c6c33e954123a2adf4092fbb30bb244b6c")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Chart::Gnuplot; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlChiDriverMemcached(PerlPackage):
|
||||
depends_on("perl-chi@0.33:", type=("build", "run", "test"))
|
||||
depends_on("perl-moose@0.66:", type=("build", "run", "test"))
|
||||
depends_on("perl-test-class", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use CHI::Driver::Memcached; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -41,11 +41,3 @@ class PerlChi(PerlPackage):
|
||||
depends_on("perl-time-duration-parse@0.03:", type=("build", "run", "test"))
|
||||
depends_on("perl-timedate", type=("build", "run", "test"))
|
||||
depends_on("perl-try-tiny@0.05:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use CHI; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlClassAccessorGrouped(PerlPackage):
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-module-runtime@0.012:", type=("build", "run", "test"))
|
||||
depends_on("perl-test-exception@0.31:", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Class::Accessor::Grouped; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlClassAccessorLvalue(PerlPackage):
|
||||
|
||||
depends_on("perl-class-accessor", type=("build", "run", "test"))
|
||||
depends_on("perl-want", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Class::Accessor::Lvalue; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -15,11 +15,3 @@ class PerlClassAccessor(PerlPackage):
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("0.51", sha256="bf12a3e5de5a2c6e8a447b364f4f5a050bf74624c56e315022ae7992ff2f411c")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Class::Accessor; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlClassC3AdoptNext(PerlPackage):
|
||||
depends_on("perl-module-build-tiny@0.039:", type=("build"))
|
||||
depends_on("perl-mro-compat", type=("build", "run", "test"))
|
||||
depends_on("perl-test-exception@0.27:", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Class::C3::Adopt::NEXT; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -23,11 +23,3 @@ class PerlClassC3Componentised(PerlPackage):
|
||||
depends_on("perl-class-inspector@1.32:", type=("build", "run", "test"))
|
||||
depends_on("perl-mro-compat@0.09:", type=("build", "run", "test"))
|
||||
depends_on("perl-test-exception@0.31:", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Class::C3::Componentised; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlClassC3(PerlPackage):
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-algorithm-c3@0.07:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Class::C3; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlClassSingleton(PerlPackage):
|
||||
version("1.6", sha256="27ba13f0d9512929166bbd8c9ef95d90d630fc80f0c9a1b7458891055e9282a4")
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Class::Singleton; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlClonePp(PerlPackage):
|
||||
version("1.08", sha256="57203094a5d8574b6a00951e8f2399b666f4e74f9511d9c9fb5b453d5d11f578")
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Clone::PP; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlCommonSense(PerlPackage):
|
||||
license("GPL-1.0-or-later OR Artistic-1.0-Perl")
|
||||
|
||||
version("3.75", sha256="a86a1c4ca4f3006d7479064425a09fa5b6689e57261fcb994fe67d061cba0e7e")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use common::sense; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlCompressLzo(PerlPackage):
|
||||
depends_on("perl@5.4.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-devel-checklib@0.9:", type=("build"))
|
||||
depends_on("lzo", type=("build", "link", "run"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Compress::LZO; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlConfigAny(PerlPackage):
|
||||
version("0.33", sha256="c0668eb5f2cd355bf20557f04dc18a25474b7a0bcfa79562e3165d9a3c789333")
|
||||
|
||||
depends_on("perl-module-pluggable", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Config::Any; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlConfigInifiles(PerlPackage):
|
||||
|
||||
depends_on("perl@5.8.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-io-stringy", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Config::IniFiles; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlConfigTiny(PerlPackage):
|
||||
version("2.30", sha256="b2f7345619b3b8e636dd39ea010731c9dc2bfb8f022bcbd86ae6ad17866e110d")
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Config::Tiny; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlContextPreserve(PerlPackage):
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-test-exception", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Context::Preserve; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -18,11 +18,3 @@ class PerlConvertNlsDateFormat(PerlPackage):
|
||||
|
||||
depends_on("perl@5.6.1:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-module-build-tiny@0.035:", type=("build"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Convert::NLS_DATE_FORMAT; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlCookieBaker(PerlPackage):
|
||||
depends_on("perl-module-build-tiny@0.035:", type=("build"))
|
||||
depends_on("perl-test-time", type=("build", "test"))
|
||||
depends_on("perl-uri", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Cookie::Baker; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlCpanelJsonXs(PerlPackage):
|
||||
license("GPL-1.0-or-later OR Artistic-1.0-Perl")
|
||||
|
||||
version("4.37", sha256="c241615a0e17ff745aaa86bbf466a6e29cd240515e65f06a7a05017b619e6d4b")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Cpanel::JSON::XS; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlCssMinifierXs(PerlPackage):
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-test-diaginc@0.002:", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use CSS::Minifier::XS; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlDataDump(PerlPackage):
|
||||
version("1.25", sha256="a4aa6e0ddbf39d5ad49bddfe0f89d9da864e3bc00f627125d1bc580472f53fbd")
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Data::Dump; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlDataDumperConcise(PerlPackage):
|
||||
version("2.023", sha256="a6c22f113caf31137590def1b7028a7e718eface3228272d0672c25e035d5853")
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Data::Dumper::Concise; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -18,11 +18,3 @@ class PerlDataPredicate(PerlPackage):
|
||||
|
||||
depends_on("perl-test-exception", type=("build", "test"))
|
||||
depends_on("perl-readonly", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Data::Predicate; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlDataUuid(PerlPackage):
|
||||
license("BSD")
|
||||
|
||||
version("1.226", sha256="093d57ffa0d411a94bafafae495697db26f5c9d0277198fe3f7cf2be22996453")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Data::UUID; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -23,11 +23,3 @@ class PerlDataVisitor(PerlPackage):
|
||||
depends_on("perl-namespace-clean@0.19:", type=("build", "run", "test"))
|
||||
depends_on("perl-test-needs", type=("build", "test"))
|
||||
depends_on("perl-tie-toobject@0.01:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Data::Visitor; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlDateException(PerlPackage):
|
||||
depends_on("perl-moo@2.000000:", type=("build", "run", "test"))
|
||||
depends_on("perl-namespace-autoclean@0.28:", type=("build", "run", "test"))
|
||||
depends_on("perl-throwable@0.200011:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Date::Exception; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -23,11 +23,3 @@ class PerlDateUtils(PerlPackage):
|
||||
depends_on("perl-moo", type=("build", "run", "test"))
|
||||
depends_on("perl-namespace-autoclean@0.28:", type=("build", "run", "test"))
|
||||
depends_on("perl-term-ansicolor-markup@0.06:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Date::Utils; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlDatetimeFormatBuilder(PerlPackage):
|
||||
depends_on("perl-datetime@1.00:", type=("build", "run", "test"))
|
||||
depends_on("perl-datetime-format-strptime@1.04:", type=("build", "run", "test"))
|
||||
depends_on("perl-params-validate@0.72:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Format::Builder; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -24,11 +24,3 @@ class PerlDatetimeFormatIso8601(PerlPackage):
|
||||
depends_on("perl-params-validationcompiler@0.26:", type=("build", "run", "test"))
|
||||
depends_on("perl-specio@0.18:", type=("build", "run", "test"))
|
||||
depends_on("perl-test2-suite", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Format::ISO8601; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlDatetimeFormatMysql(PerlPackage):
|
||||
|
||||
depends_on("perl-datetime", type=("build", "run", "test"))
|
||||
depends_on("perl-datetime-format-builder@0.6:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Format::MySQL; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlDatetimeFormatOracle(PerlPackage):
|
||||
depends_on("perl-convert-nls-date-format@0.03:", type=("build", "run", "test"))
|
||||
depends_on("perl-datetime", type=("build", "run", "test"))
|
||||
depends_on("perl-datetime-format-builder", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Format::Oracle; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlDatetimeFormatPg(PerlPackage):
|
||||
depends_on("perl-datetime-format-builder@0.72:", type=("build", "run", "test"))
|
||||
depends_on("perl-datetime-timezone@0.05:", type=("build", "run", "test"))
|
||||
depends_on("perl-module-build-tiny@0.035:", type=("build"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Format::Pg; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -26,11 +26,3 @@ class PerlDatetimeFormatStrptime(PerlPackage):
|
||||
depends_on("perl-test-fatal", type=("build", "test"))
|
||||
depends_on("perl-test-warnings", type=("build", "test"))
|
||||
depends_on("perl-try-tiny", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Format::Strptime; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -31,11 +31,3 @@ class PerlDatetimeLocale(PerlPackage):
|
||||
depends_on("perl-test-file-sharedir", type=("build", "test"))
|
||||
depends_on("perl-test2-plugin-nowarnings", type=("build", "test"))
|
||||
depends_on("perl-test2-suite", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Locale; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -27,11 +27,3 @@ class PerlDatetimeTimezone(PerlPackage):
|
||||
depends_on("perl-test-fatal", type=("build", "test"))
|
||||
depends_on("perl-test-requires", type=("build", "test"))
|
||||
depends_on("perl-try-tiny", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::TimeZone; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -35,11 +35,3 @@ class PerlDatetime(PerlPackage):
|
||||
depends_on("perl-test-warnings@0.005:", type=("build", "test"))
|
||||
depends_on("perl-test-without-module", type=("build", "test"))
|
||||
depends_on("perl-try-tiny", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -23,11 +23,3 @@ class PerlDbdOracle(PerlPackage):
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
env.set("ORACLE_HOME", self.spec["oracle-instant-client"].prefix)
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DBD::Oracle; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -42,11 +42,3 @@ class PerlDbixClass(PerlPackage):
|
||||
depends_on("perl-test-exception@0.31:", type=("build", "link"))
|
||||
depends_on("perl-test-warn@0.21:", type=("build", "link"))
|
||||
depends_on("perl-try-tiny@0.07:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DBIx::Class; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlDevelStacktraceAshtml(PerlPackage):
|
||||
version("0.15", sha256="6283dbe2197e2f20009cc4b449997742169cdd951bfc44cbc6e62c2a962d3147")
|
||||
|
||||
depends_on("perl-devel-stacktrace", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Devel::StackTrace::AsHTML; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlDigestJhash(PerlPackage):
|
||||
version("0.10", sha256="c746cf0a861a004090263cd54d7728d0c7595a0cf90cbbfd8409b396ee3b0063")
|
||||
|
||||
depends_on("perl@5.8.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Digest::JHash; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlDigestSha1(PerlPackage):
|
||||
version("2.13", sha256="68c1dac2187421f0eb7abf71452a06f190181b8fc4b28ededf5b90296fb943cc")
|
||||
|
||||
depends_on("perl@5.4.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Digest::SHA1; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlEmailAbstract(PerlPackage):
|
||||
depends_on("perl-email-simple@1.998:", type=("build", "run", "test"))
|
||||
depends_on("perl-module-pluggable@1.5:", type=("build", "run", "test"))
|
||||
depends_on("perl-mro-compat", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::Abstract; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlEmailAddressXs(PerlPackage):
|
||||
version("1.05", sha256="1510b7f10d67201037cd50d22c9d6b26eeca55ededa4cdb46bbca27e59a4ea16")
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::Address::XS; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlEmailDateFormat(PerlPackage):
|
||||
version("1.008", sha256="432b7c83ff88749af128003f5257c573aec1a463418db90ed22843cbbc258b4f")
|
||||
|
||||
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::Date::Format; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlEmailMessageid(PerlPackage):
|
||||
version("1.408", sha256="1f3d5b4ff0b1c7b39e9ac7c318fb37adcd0bac9556036546494d14f06dc5643c")
|
||||
|
||||
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::MessageID; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlEmailMimeContenttype(PerlPackage):
|
||||
|
||||
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-text-unidecode", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::MIME::ContentType; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlEmailMimeEncodings(PerlPackage):
|
||||
version("1.317", sha256="4a9a41671a9d1504c4da241be419a9503fa3486262526edb81eca9e2ebea0baf")
|
||||
|
||||
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::MIME::Encodings; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -26,11 +26,3 @@ class PerlEmailMime(PerlPackage):
|
||||
depends_on("perl-email-simple@2.212:", type=("build", "run", "test"))
|
||||
depends_on("perl-mime-types@1.13:", type=("build", "run", "test"))
|
||||
depends_on("perl-module-runtime", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::MIME; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -29,11 +29,3 @@ class PerlEmailSender(PerlPackage):
|
||||
depends_on("perl-sub-exporter", type=("build", "run", "test"))
|
||||
depends_on("perl-throwable", type=("build", "run", "test"))
|
||||
depends_on("perl-try-tiny", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::Sender; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -18,11 +18,3 @@ class PerlEmailSimple(PerlPackage):
|
||||
|
||||
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-email-date-format", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::Simple; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -25,11 +25,3 @@ class PerlEmailStuffer(PerlPackage):
|
||||
depends_on("perl-moo", type=("build", "test"))
|
||||
depends_on("perl-params-util@1.05:", type=("build", "run", "test"))
|
||||
depends_on("perl-test-fatal", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Email::Stuffer; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlExporterAuto(PerlPackage):
|
||||
depends_on("perl@5.8.5:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-b-hooks-endofscope", type=("build", "run", "test"))
|
||||
depends_on("perl-sub-identify", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Exporter::Auto; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -26,11 +26,3 @@ class PerlFileChangenotify(PerlPackage):
|
||||
depends_on("perl-test-without-module", type=("build", "test"))
|
||||
depends_on("perl-test2-suite", type=("build", "test"))
|
||||
depends_on("perl-type-tiny", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use File::ChangeNotify; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlFileSharedir(PerlPackage):
|
||||
|
||||
depends_on("perl-class-inspector@1.12:", type=("build", "run", "test"))
|
||||
depends_on("perl-file-sharedir-install@0.13:", type=("build", "link"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use File::ShareDir; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlFilesysNotifySimple(PerlPackage):
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-test-sharedfork", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Filesys::Notify::Simple; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlGetoptLongDescriptive(PerlPackage):
|
||||
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-params-validate@0.97:", type=("build", "run", "test"))
|
||||
depends_on("perl-sub-exporter@0.972:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Getopt::Long::Descriptive; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -24,11 +24,3 @@ class PerlGraphviz(PerlPackage):
|
||||
depends_on("perl-parse-recdescent@1.965001:", type=("build", "run", "test"))
|
||||
depends_on("perl-xml-twig@3.52:", type=("build", "run", "test"))
|
||||
depends_on("perl-xml-xpath@1.13:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use GraphViz; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlGzipFaster(PerlPackage):
|
||||
version("0.21", sha256="c65f41ca108e7e53ec34c30dbb1b5d614bf4b8100673646cf301d0caf82c7aa5")
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Gzip::Faster; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlHashMoreutils(PerlPackage):
|
||||
version("0.06", sha256="db9a8fb867d50753c380889a5e54075651b5e08c9b3b721cb7220c0883547de8")
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Hash::MoreUtils; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlHashMultivalue(PerlPackage):
|
||||
version("0.16", sha256="66181df7aa68e2786faf6895c88b18b95c800a8e4e6fb4c07fd176410a3c73f4")
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Hash::MultiValue; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlHeap(PerlPackage):
|
||||
license("GPL-1.0-or-later OR Artistic-1.0-Perl")
|
||||
|
||||
version("0.80", sha256="ccda29f3c93176ad0fdfff4dd6f5e4ac90b370cba4b028386b7343bf64139bde")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Heap; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -19,11 +19,3 @@ class PerlHookLexwrap(PerlPackage):
|
||||
version("0.26", sha256="b60bdc5f98f94f9294b06adef82b1d996da192d5f183f9f434b610fd1137ec2d")
|
||||
|
||||
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Hook::LexWrap; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlHtmlTemplate(PerlPackage):
|
||||
|
||||
depends_on("perl-cgi", type=("build", "run", "test"))
|
||||
depends_on("perl-test-pod", type=("build", "link"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTML::Template; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlHttpBody(PerlPackage):
|
||||
|
||||
depends_on("perl-http-message", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-test-deep", type=("build", "link"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTTP::Body; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -23,11 +23,3 @@ class PerlHttpCookiejar(PerlPackage):
|
||||
depends_on("perl-test-deep", type=("test"))
|
||||
depends_on("perl-test-requires", type=("test"))
|
||||
depends_on("perl-uri", type=("test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTTP::CookieJar; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -26,11 +26,3 @@ class PerlHttpEntityParser(PerlPackage):
|
||||
depends_on("perl-module-build-tiny@0.035:", type=("build"))
|
||||
depends_on("perl-stream-buffered", type=("build", "run", "test"))
|
||||
depends_on("perl-www-form-urlencoded@0.23:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTTP::Entity::Parser; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -22,11 +22,3 @@ class PerlHttpHeadersFast(PerlPackage):
|
||||
depends_on("perl-http-date", type=("build", "run", "test"))
|
||||
depends_on("perl-module-build-tiny@0.035:", type=("build"))
|
||||
depends_on("perl-test-requires", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTTP::Headers::Fast; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -20,11 +20,3 @@ class PerlHttpMultipartparser(PerlPackage):
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-test-deep", type=("build", "link"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTTP::MultiPartParser; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -17,11 +17,3 @@ class PerlHttpParserXs(PerlPackage):
|
||||
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
|
||||
|
||||
version("0.17", sha256="794e6833e326b10d24369f9cdbfc1667105ef6591e8f41e561a3d41a7027a809")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTTP::Parser::XS; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -21,11 +21,3 @@ class PerlHttpRequestAscgi(PerlPackage):
|
||||
depends_on("perl-class-accessor", type=("build", "run", "test"))
|
||||
depends_on("perl-http-message", type=("build", "run", "test"))
|
||||
depends_on("perl-uri", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use HTTP::Request::AsCGI; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user