aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-05-10 22:53:53 -0400
committerMike Gilbert <floppym@gentoo.org>2016-05-10 23:22:46 -0400
commitd08f4511e09920d90486db4ba54b044071452cfe (patch)
tree6d2e7c0b396178d2a87bade2ea083ad8b86de16d
parentxml-test/uniqueness: tests for unique (element,attribute,value) combinations (diff)
downloadgen-b0rk-d08f4511e09920d90486db4ba54b044071452cfe.tar.gz
gen-b0rk-d08f4511e09920d90486db4ba54b044071452cfe.tar.bz2
gen-b0rk-d08f4511e09920d90486db4ba54b044071452cfe.zip
ebuild-test/badheader: test for bad header in ebuilds
-rw-r--r--ebuild-test/badheader/badheader-0.ebuild12
-rw-r--r--ebuild-test/badheader/metadata.xml26
2 files changed, 38 insertions, 0 deletions
diff --git a/ebuild-test/badheader/badheader-0.ebuild b/ebuild-test/badheader/badheader-0.ebuild
new file mode 100644
index 0000000..5ab0d07
--- /dev/null
+++ b/ebuild-test/badheader/badheader-0.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2000 Larry the Cow
+# Distributed under the terms of the GNU General Public License v3
+# $Id is for dummies$
+
+EAPI=6
+
+DESCRIPTION="Invalid header"
+HOMEPAGE="http://example.com/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
diff --git a/ebuild-test/badheader/metadata.xml b/ebuild-test/badheader/metadata.xml
new file mode 100644
index 0000000..da7c4a8
--- /dev/null
+++ b/ebuild-test/badheader/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!--
+# $Id$
+
+This is the example metadata file.
+The root element of this file is <pkgmetadata>. Within this element a
+number of subelements are allowed, the most common being maintainer.
+
+For a full description look at:
+https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/
+
+Before committing, please remove the comments from this file. They are
+not relevant for general metadata.xml files.
+-->
+<pkgmetadata>
+<maintainer type="person">
+ <email>exampledev@gentoo.org</email>
+ <description>Primary maintainer</description>
+</maintainer>
+<maintainer type="project">
+ <email>exampleproject@gentoo.org</email>
+ <name>Gentoo Example Project</name>
+</maintainer>
+<longdescription>Test for ???</longdescription>
+</pkgmetadata>