summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-28 22:23:41 +0000
committerGitHub <noreply@github.com>2024-02-28 14:23:41 -0800
commit2bae1b7e003f30279db169b9b791b5a34e9fa764 (patch)
treeba84f34b2a95a843a48601f3387180c226f27bcb
parentae5b605f99f60119b70054f2f55d1a5c693e7890 (diff)
downloadspack-2bae1b7e003f30279db169b9b791b5a34e9fa764.tar.gz
spack-2bae1b7e003f30279db169b9b791b5a34e9fa764.tar.bz2
spack-2bae1b7e003f30279db169b9b791b5a34e9fa764.tar.xz
spack-2bae1b7e003f30279db169b9b791b5a34e9fa764.zip
perl-test-xpath: New package (#42895)
Adds Test::XPath
-rw-r--r--var/spack/repos/builtin/packages/perl-test-xpath/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-test-xpath/package.py b/var/spack/repos/builtin/packages/perl-test-xpath/package.py
new file mode 100644
index 0000000000..657792c816
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-test-xpath/package.py
@@ -0,0 +1,30 @@
+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class PerlTestXpath(PerlPackage):
+ """Test XML and HTML content and structure with XPath expressions"""
+
+ homepage = "https://metacpan.org/pod/Test::XPath"
+ url = "https://cpan.metacpan.org/authors/id/M/MA/MANWAR/Test-XPath-0.20.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.20", sha256="dfaa611e7146ad9c9769b5bcf688949976b8372df7e787a40b933a148d892039")
+
+ depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
+ depends_on("perl-xml-libxml@1.70:", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Test::XPath; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out