aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@binghamton.edu>2016-05-07 17:22:39 -0400
committerBrian Dolbec <dolsen@gentoo.org>2016-05-07 19:06:37 -0700
commitba2bac69dd3dc586a4972ba82617ec632ec0e6ca (patch)
tree27d61e701be7c83de1e621a59b394136a0d7dd66
parentxml-text/valid: add a second description to downstream maintainer (diff)
downloadgen-b0rk-ba2bac69dd3dc586a4972ba82617ec632ec0e6ca.tar.gz
gen-b0rk-ba2bac69dd3dc586a4972ba82617ec632ec0e6ca.tar.bz2
gen-b0rk-ba2bac69dd3dc586a4972ba82617ec632ec0e6ca.zip
xml-test/singularity: tests for at-most-one element violations
Signed-off-by: Göktürk Yüksek <gokturk@binghamton.edu>
-rw-r--r--xml-test/singularity/metadata.xml43
-rw-r--r--xml-test/singularity/singularity-0.1.ebuild11
2 files changed, 54 insertions, 0 deletions
diff --git a/xml-test/singularity/metadata.xml b/xml-test/singularity/metadata.xml
new file mode 100644
index 0000000..640acf6
--- /dev/null
+++ b/xml-test/singularity/metadata.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ Tests for elements with at most one occurrence.
+
+ Singularity doesn't check for uniqueness. We are only interested
+ in elements that can't appear more than once.
+
+ The tests are conservative: if we check &lt;email&gt; element
+ singularity in downstream maintainer, we do not check it again
+ in upstream maintainer.
+ </longdescription>
+ <maintainer type='person'>
+ <email>gen-b0rk@gentoo.org</email>
+ <!-- multiple <email> elements are not allowed -->
+ <email>at-most-one-violation@gentoo.org</email>
+ </maintainer>
+ <slots>
+ <subslots>Match SONAME of libsingularity.so</subslots>
+ <!-- multiple <subslots> elements are not allowed -->
+ <subslots>at-most-one violation</subslots>
+ </slots>
+ <upstream>
+ <maintainer>
+ <name>Gen B0rk</name>
+ <!-- multiple <name> elements are not allowed -->
+ <name>at-most-one violation</name>
+ </maintainer>
+ <changelog>https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/</changelog>
+ <!-- multiple <changelog> elements are not allowed -->
+ <changelog>https://gentoo.org/at-most-one-violation.html</changelog>
+ <bugs-to>http://www.example.com/issues.html</bugs-to>
+ <!-- multiple <bugs-to> elements are not allowed -->
+ <bugs-to>https://gentoo.org/at-most-one-violation</bugs-to>
+ </upstream>
+ <!-- multiple <upstream> elements are not allowed -->
+ <upstream>
+ <maintainer>
+ <name>Gen B0rk</name>
+ </maintainer>
+ </upstream>
+</pkgmetadata>
diff --git a/xml-test/singularity/singularity-0.1.ebuild b/xml-test/singularity/singularity-0.1.ebuild
new file mode 100644
index 0000000..6683aad
--- /dev/null
+++ b/xml-test/singularity/singularity-0.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Tests for element singularity"
+HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68"
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~amd64"