aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-05-14 20:51:32 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-05-14 21:46:44 +0300
commit141e7fbab84b2e39bfa61311b25d6b05f7908c1f (patch)
tree3cedd1cc6f7c96dd77efe7a83c547b199b449dc8 /testdata
parentProfilesCheck: fix handling of profiles with neg_action package (diff)
downloadpkgcheck-141e7fbab84b2e39bfa61311b25d6b05f7908c1f.tar.gz
pkgcheck-141e7fbab84b2e39bfa61311b25d6b05f7908c1f.tar.bz2
pkgcheck-141e7fbab84b2e39bfa61311b25d6b05f7908c1f.zip
StaleLiveCheck: new check for stale live eapi
Resolves: https://github.com/pkgcore/pkgcheck/issues/578 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
-rw-r--r--testdata/data/repos/standalone/StaleLiveCheck/StaleLiveEAPI/expected.json3
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-0.ebuild6
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.9999.ebuild7
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.ebuild6
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.1.ebuild6
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.9999.ebuild7
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.ebuild6
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.1.ebuild6
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.9999.ebuild7
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.ebuild6
-rw-r--r--testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-4.9999.ebuild7
11 files changed, 67 insertions, 0 deletions
diff --git a/testdata/data/repos/standalone/StaleLiveCheck/StaleLiveEAPI/expected.json b/testdata/data/repos/standalone/StaleLiveCheck/StaleLiveEAPI/expected.json
new file mode 100644
index 00000000..0f9a204e
--- /dev/null
+++ b/testdata/data/repos/standalone/StaleLiveCheck/StaleLiveEAPI/expected.json
@@ -0,0 +1,3 @@
+{"__class__": "StaleLiveEAPI", "category": "StaleLiveCheck", "package": "StaleLiveEAPI", "version": "2.9999", "old_eapi": 7, "new_eapi": 8}
+{"__class__": "StaleLiveEAPI", "category": "StaleLiveCheck", "package": "StaleLiveEAPI", "version": "3.9999", "old_eapi": 7, "new_eapi": 8}
+{"__class__": "StaleLiveEAPI", "category": "EclassUsageCheck", "package": "DuplicateEclassInherit", "version": "0", "old_eapi": 0, "new_eapi": 7}
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-0.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-0.ebuild
new file mode 100644
index 00000000..dd44344e
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-0.ebuild
@@ -0,0 +1,6 @@
+EAPI=7
+
+DESCRIPTION="SLOT 0 is release only"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="0"
+LICENSE="BSD"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.9999.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.9999.ebuild
new file mode 100644
index 00000000..4badbd0d
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.9999.ebuild
@@ -0,0 +1,7 @@
+EAPI=8
+
+DESCRIPTION="SLOT 1 is fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="1"
+LICENSE="BSD"
+PROPERTIES="live"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.ebuild
new file mode 100644
index 00000000..5b79a320
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.ebuild
@@ -0,0 +1,6 @@
+EAPI=8
+
+DESCRIPTION="SLOT 1 is fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="1"
+LICENSE="BSD"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.1.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.1.ebuild
new file mode 100644
index 00000000..34aba958
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.1.ebuild
@@ -0,0 +1,6 @@
+EAPI=8
+
+DESCRIPTION="SLOT 2 is not fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="2"
+LICENSE="BSD"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.9999.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.9999.ebuild
new file mode 100644
index 00000000..55570296
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.9999.ebuild
@@ -0,0 +1,7 @@
+EAPI=7
+
+DESCRIPTION="SLOT 2 is not fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="2"
+LICENSE="BSD"
+PROPERTIES="live"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.ebuild
new file mode 100644
index 00000000..1f1fe229
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.ebuild
@@ -0,0 +1,6 @@
+EAPI=7
+
+DESCRIPTION="SLOT 2 is not fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="2"
+LICENSE="BSD"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.1.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.1.ebuild
new file mode 100644
index 00000000..ddb5f28e
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.1.ebuild
@@ -0,0 +1,6 @@
+EAPI=7
+
+DESCRIPTION="SLOT 3 is not fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="3"
+LICENSE="BSD"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.9999.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.9999.ebuild
new file mode 100644
index 00000000..d4a646ba
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.9999.ebuild
@@ -0,0 +1,7 @@
+EAPI=7
+
+DESCRIPTION="SLOT 3 is not fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="3"
+LICENSE="BSD"
+PROPERTIES="live"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.ebuild
new file mode 100644
index 00000000..a9add003
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.ebuild
@@ -0,0 +1,6 @@
+EAPI=8
+
+DESCRIPTION="SLOT 3 is not fine"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="3"
+LICENSE="BSD"
diff --git a/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-4.9999.ebuild b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-4.9999.ebuild
new file mode 100644
index 00000000..8c102d1a
--- /dev/null
+++ b/testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-4.9999.ebuild
@@ -0,0 +1,7 @@
+EAPI=8
+
+DESCRIPTION="SLOT 4 is live only"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="4"
+LICENSE="BSD"
+PROPERTIES="live"