aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-01-16 20:42:59 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2024-01-17 08:37:35 +0200
commitc3407ae2317199c301863b5ac25c456845bdcb18 (patch)
tree5224787bbbeaa727b2cbbe6df66baf7763550d24 /testdata
parentDockerfile: purge some more caches (diff)
downloadpkgcheck-c3407ae2317199c301863b5ac25c456845bdcb18.tar.gz
pkgcheck-c3407ae2317199c301863b5ac25c456845bdcb18.tar.bz2
pkgcheck-c3407ae2317199c301863b5ac25c456845bdcb18.zip
OldPackageName: new check for package named after old package name
Resolves: https://github.com/pkgcore/pkgcheck/issues/650 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
-rw-r--r--testdata/data/repos/visibility/VisibilityCheck/OldPackageName/expected.json1
-rw-r--r--testdata/repos/visibility/VisibilityCheck/OldPackageName/OldPackageName-0.ebuild6
-rw-r--r--testdata/repos/visibility/profiles/updates/1Q-20241
3 files changed, 8 insertions, 0 deletions
diff --git a/testdata/data/repos/visibility/VisibilityCheck/OldPackageName/expected.json b/testdata/data/repos/visibility/VisibilityCheck/OldPackageName/expected.json
new file mode 100644
index 00000000..fcc053e4
--- /dev/null
+++ b/testdata/data/repos/visibility/VisibilityCheck/OldPackageName/expected.json
@@ -0,0 +1 @@
+{"__class__": "OldPackageName", "category": "VisibilityCheck", "package": "OldPackageName", "new_name": "stub/random-pkgname"}
diff --git a/testdata/repos/visibility/VisibilityCheck/OldPackageName/OldPackageName-0.ebuild b/testdata/repos/visibility/VisibilityCheck/OldPackageName/OldPackageName-0.ebuild
new file mode 100644
index 00000000..842db9dd
--- /dev/null
+++ b/testdata/repos/visibility/VisibilityCheck/OldPackageName/OldPackageName-0.ebuild
@@ -0,0 +1,6 @@
+EAPI=7
+DESCRIPTION="Ebuild with pkgmoved name"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64"
diff --git a/testdata/repos/visibility/profiles/updates/1Q-2024 b/testdata/repos/visibility/profiles/updates/1Q-2024
index 518e4bf5..dfb9b553 100644
--- a/testdata/repos/visibility/profiles/updates/1Q-2024
+++ b/testdata/repos/visibility/profiles/updates/1Q-2024
@@ -1 +1,2 @@
move stub/old-name stub/stable
+move VisibilityCheck/OldPackageName stub/random-pkgname