aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-03-02 22:20:50 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-03-03 07:49:43 +0200
commitd1e4aef5532f1d407169e7f53d6816ca7ba2da82 (patch)
tree6c7b8b6d47aa9c6ef4a361eba6001672fd512d75 /testdata
parentnetwork: add kde-invent remote-id (diff)
downloadpkgcheck-d1e4aef5532f1d407169e7f53d6816ca7ba2da82.tar.gz
pkgcheck-d1e4aef5532f1d407169e7f53d6816ca7ba2da82.tar.bz2
pkgcheck-d1e4aef5532f1d407169e7f53d6816ca7ba2da82.zip
EbuildReservedCheck: check for semi-reserved names
Resolves: https://github.com/pkgcore/pkgcheck/issues/536 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
-rw-r--r--testdata/data/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/expected.json5
-rw-r--r--testdata/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/EbuildSemiReservedName-0.ebuild13
2 files changed, 18 insertions, 0 deletions
diff --git a/testdata/data/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/expected.json b/testdata/data/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/expected.json
new file mode 100644
index 00000000..c5916b53
--- /dev/null
+++ b/testdata/data/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/expected.json
@@ -0,0 +1,5 @@
+{"__class__": "EbuildSemiReservedName", "category": "DependencyCheck", "package": "MisplacedWeakBlocker", "version": "6", "line": "BDEPEND", "lineno": 8, "used_type": "variable"}
+{"__class__": "EbuildSemiReservedName", "category": "DependencyCheck", "package": "MisplacedWeakBlocker", "version": "6", "line": "IDEPEND", "lineno": 12, "used_type": "variable"}
+{"__class__": "EbuildSemiReservedName", "category": "DependencyCheck", "package": "MisplacedWeakBlocker", "version": "7", "line": "IDEPEND", "lineno": 12, "used_type": "variable"}
+{"__class__": "EbuildSemiReservedName", "category": "EbuildReservedCheck", "package": "EbuildSemiReservedName", "version": "0", "line": "B", "lineno": 9, "used_type": "variable"}
+{"__class__": "EbuildSemiReservedName", "category": "EbuildReservedCheck", "package": "EbuildSemiReservedName", "version": "0", "line": "TDEPEND", "lineno": 13, "used_type": "variable"}
diff --git a/testdata/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/EbuildSemiReservedName-0.ebuild b/testdata/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/EbuildSemiReservedName-0.ebuild
new file mode 100644
index 00000000..846fbb03
--- /dev/null
+++ b/testdata/repos/standalone/EbuildReservedCheck/EbuildSemiReservedName/EbuildSemiReservedName-0.ebuild
@@ -0,0 +1,13 @@
+EAPI=8
+
+DESCRIPTION="Ebuild with semi-reserved names"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="0"
+LICENSE="BSD"
+
+S=${WORKDIR} # ok
+B=${WORKDIR} # fail
+BDEPEND="app-arch/unzip" # ok
+CDEPEND="app-arch/unzip" # ok
+RDEPEND="${CDEPEND}" # ok
+TDEPEND="app-arch/unzip" # fail