From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 01420138222 for ; Thu, 5 May 2016 23:25:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E2C021C028; Thu, 5 May 2016 23:24:59 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E99B521C028 for ; Thu, 5 May 2016 23:24:58 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3EA9D20AE4 for ; Thu, 5 May 2016 19:24:58 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Thu, 05 May 2016 19:24:58 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=ZN1dEZqGCiOg4JaXsa6LImL+eak=; b=UZHcu m6ygBRMTkQTkx8YbDBntO/RFom/n/Nw0NWfQ8jg9eO3D9z0UzByMbPPYqgn75K65 8WZ+xQ4gdWjPFw1cgL8lKXcfXUIuUhIJGvwY7zxG30ipn+H+xuGQiGdfh65nuoeu 4WHXw9rG1w6vhiAWNlnEyF+/1cjPGHurUebhSo= X-Sasl-enc: a1VBNgUNFcCRn758ILl5lu8QpYCJD/XocpSNjwTTFb5E 1462490697 Received: from localhost.localdomain (nat.cs.binghamton.edu [128.226.119.250]) by mail.messagingengine.com (Postfix) with ESMTPA id DEACEC00018 for ; Thu, 5 May 2016 19:24:57 -0400 (EDT) From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [PATCH] xml-test/invalid-attributes: test for invalid and disallowed attributes Date: Thu, 5 May 2016 19:24:46 -0400 Message-Id: <1462490687-3157-1-git-send-email-gokturk@binghamton.edu> X-Mailer: git-send-email 2.7.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 9c78c367-3067-489e-a9fd-cfbc64a3ff23 X-Archives-Hash: 70c85960fa6805332548a5698a58da5a Signed-off-by: Göktürk Yüksek --- .../invalid-attributes-0.1.ebuild | 11 +++++++ xml-test/invalid-attributes/metadata.xml | 38 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 xml-test/invalid-attributes/invalid-attributes-0.1.ebuild create mode 100644 xml-test/invalid-attributes/metadata.xml diff --git a/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild b/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild new file mode 100644 index 0000000..3076b2a --- /dev/null +++ b/xml-test/invalid-attributes/invalid-attributes-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="Metadata example with invalid attribute values and locations" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68" +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64" diff --git a/xml-test/invalid-attributes/metadata.xml b/xml-test/invalid-attributes/metadata.xml new file mode 100644 index 0000000..66902dc --- /dev/null +++ b/xml-test/invalid-attributes/metadata.xml @@ -0,0 +1,38 @@ + + + + + Tests for invalid attribute values and attributes appearing + in elements that they're not supposed to. + + There's a multitude of invalid attribute values and combinations. + We only consider a few sane cases that are likely to happen: + - type attribute in upstream maintainer (allowed only in downstream) + - status attribute in downstream maintainer (allowed only in upstream) + - invalid values for enumerated attributes: type, status, lang + + We also introduce multiple violations in a single element to test + repoman's ability to display errors. + + + + larry@gentoo.org + + Moo + + + + + Gen B0rk + + + gentoo/gen-b0rk + + -- 2.7.3