Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/uniqueness/
Date: Sun, 08 May 2016 05:43:19
Message-Id: 1462673197.230fe43ff6691ed3c092b6284ae2a8609cef0860.dolsen@gentoo
1 commit: 230fe43ff6691ed3c092b6284ae2a8609cef0860
2 Author: Göktürk Yüksek <gokturk <AT> binghamton <DOT> edu>
3 AuthorDate: Sat May 7 21:22:40 2016 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Sun May 8 02:06:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=230fe43f
7
8 xml-test/uniqueness: tests for unique (element,attribute,value) combinations
9
10 Signed-off-by: Göktürk Yüksek <gokturk <AT> binghamton.edu>
11
12 xml-test/uniqueness/metadata.xml | 33 +++++++++++++++++++++++++++++++
13 xml-test/uniqueness/uniqueness-0.1.ebuild | 12 +++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/xml-test/uniqueness/metadata.xml b/xml-test/uniqueness/metadata.xml
17 new file mode 100644
18 index 0000000..84b3a1b
19 --- /dev/null
20 +++ b/xml-test/uniqueness/metadata.xml
21 @@ -0,0 +1,33 @@
22 +<?xml version="1.0" encoding="UTF-8"?>
23 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
24 +<pkgmetadata>
25 + <longdescription>
26 + Tests for the uniqueness of elements.
27 +
28 + Uniqueness focuses on element, attribute, value combinations
29 + which must not repeat.
30 +
31 + The tests are conservative: i.e. if we check the
32 + (longdescription, lang, restrict) combination, we do not check
33 + (slots,lang, restrict).
34 + </longdescription>
35 + <!-- non-unique (longdescription, lang, restrict) combination -->
36 + <longdescription lang='en'>uniqueness violation</longdescription>
37 + <maintainer type='person'>
38 + <email>gen-b0rk@g.o</email>
39 + </maintainer>
40 + <maintainer type='project'>
41 + <!-- non-unique (maintainer, email, restrict) combination -->
42 + <email>gen-b0rk@g.o</email>
43 + </maintainer>
44 + <slots>
45 + <slot name="0">Match the SONAME of libuniqueness.so</slot>
46 + <!-- non-unique (slot, name, restrict) combination -->
47 + <slot name="0">uniqueness violation</slot>
48 + </slots>
49 + <use>
50 + <flag name="foo">Enable feature foo</flag>
51 + <!-- non-unique (flag, name, restrict) combination -->
52 + <flag name="foo">uniqueness violation</flag>
53 + </use>
54 +</pkgmetadata>
55
56 diff --git a/xml-test/uniqueness/uniqueness-0.1.ebuild b/xml-test/uniqueness/uniqueness-0.1.ebuild
57 new file mode 100644
58 index 0000000..03c3fa7
59 --- /dev/null
60 +++ b/xml-test/uniqueness/uniqueness-0.1.ebuild
61 @@ -0,0 +1,12 @@
62 +# Copyright 1999-2016 Gentoo Foundation
63 +# Distributed under the terms of the GNU General Public License v2
64 +# $Id$
65 +
66 +EAPI=6
67 +
68 +DESCRIPTION="Tests for (element, attribute, value) uniqueness"
69 +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68"
70 +LICENSE="HPND"
71 +SLOT="0"
72 +KEYWORDS="~amd64"
73 +IUSE="foo"