aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@binghamton.edu>2016-05-01 21:08:47 -0400
committerBrian Dolbec <dolsen@gentoo.org>2016-05-02 10:33:44 -0700
commitda26b7539b05d8d956dc9553afcdac2ebc1c47c5 (patch)
treeeb93d3f198477e94789cca5cc03023cfd26b5201
parentxml-test/missing: test for a package with missing metadata.xml (diff)
downloadgen-b0rk-da26b7539b05d8d956dc9553afcdac2ebc1c47c5.tar.gz
gen-b0rk-da26b7539b05d8d956dc9553afcdac2ebc1c47c5.tar.bz2
gen-b0rk-da26b7539b05d8d956dc9553afcdac2ebc1c47c5.zip
xml-test/missing-attributes: missing mandatory attributes for various tags
Check for: - type attribute in <maintainer/> - name attribute in <slots/> - name attribute in <flag/> - type attribute for <remote-id/> Signed-off-by: Göktürk Yüksek <gokturk@binghamton.edu>
-rw-r--r--xml-test/missing-attributes/metadata.xml23
-rw-r--r--xml-test/missing-attributes/missing-attributes-0.1.ebuild13
2 files changed, 36 insertions, 0 deletions
diff --git a/xml-test/missing-attributes/metadata.xml b/xml-test/missing-attributes/metadata.xml
new file mode 100644
index 0000000..cf51afd
--- /dev/null
+++ b/xml-test/missing-attributes/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- Missing attribute "type" -->
+ <maintainer>
+ <email>foodev@gentoo.org</email>
+ </maintainer>
+ <slots>
+ <!-- Missing attribute "name" -->
+ <slot>Bar slot</slot>
+ </slots>
+ <use>
+ <!-- Missing attribute "name" -->
+ <flag>Baz flag</flag>
+ </use>
+ <upstream>
+ <!-- Missing attribute "type" -->
+ <remote-id>gentoo/gen-b0rk</remote-id>
+ </upstream>
+ <longdescription>
+ Tests for mandatory attributes for various tags
+ </longdescription>
+</pkgmetadata>
diff --git a/xml-test/missing-attributes/missing-attributes-0.1.ebuild b/xml-test/missing-attributes/missing-attributes-0.1.ebuild
new file mode 100644
index 0000000..5733009
--- /dev/null
+++ b/xml-test/missing-attributes/missing-attributes-0.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Missing various mandatory attributes in the metadata"
+HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68"
+SRC_URI=""
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~amd64"