summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-01-15 16:38:03 +0000
committerGitHub <noreply@github.com>2024-01-15 09:38:03 -0700
commitcf3f275716460ad5cc27bc20f9c7666e2c23cb00 (patch)
treee905f09304dd3b3ba6b691fab9e0bc9f01afa0f5 /var
parentd95bcd8d85a37ee8c09e85a051564d571c68a4c7 (diff)
downloadspack-cf3f275716460ad5cc27bc20f9c7666e2c23cb00.tar.gz
spack-cf3f275716460ad5cc27bc20f9c7666e2c23cb00.tar.bz2
spack-cf3f275716460ad5cc27bc20f9c7666e2c23cb00.tar.xz
spack-cf3f275716460ad5cc27bc20f9c7666e2c23cb00.zip
perl-test-yaml: New package (#42044)
Adds Test::YAML
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-test-yaml/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-test-yaml/package.py b/var/spack/repos/builtin/packages/perl-test-yaml/package.py
new file mode 100644
index 0000000000..64ad596d1b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-test-yaml/package.py
@@ -0,0 +1,29 @@
+# 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 PerlTestYaml(PerlPackage):
+ """Testing Module for YAML Implementations"""
+
+ homepage = "https://metacpan.org/pod/Test::YAML"
+ url = "https://cpan.metacpan.org/authors/id/T/TI/TINITA/Test-YAML-1.07.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("1.07", sha256="1f300d034f46298cb92960912cc04bac33fb27f05b8852d8f051e110b9cd995f")
+
+ depends_on("perl-test-base@0.89:", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Test::YAML; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out