From 141e7fbab84b2e39bfa61311b25d6b05f7908c1f Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sun, 14 May 2023 20:51:32 +0300 Subject: StaleLiveCheck: new check for stale live eapi Resolves: https://github.com/pkgcore/pkgcheck/issues/578 Signed-off-by: Arthur Zamarin --- .../repos/standalone/StaleLiveCheck/StaleLiveEAPI/expected.json | 3 +++ .../standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-0.ebuild | 6 ++++++ .../StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.9999.ebuild | 7 +++++++ .../standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.ebuild | 6 ++++++ .../StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.1.ebuild | 6 ++++++ .../StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.9999.ebuild | 7 +++++++ .../standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.ebuild | 6 ++++++ .../StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.1.ebuild | 6 ++++++ .../StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.9999.ebuild | 7 +++++++ .../standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.ebuild | 6 ++++++ .../StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-4.9999.ebuild | 7 +++++++ 11 files changed, 67 insertions(+) create mode 100644 testdata/data/repos/standalone/StaleLiveCheck/StaleLiveEAPI/expected.json create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-0.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.9999.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-1.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.1.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.9999.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-2.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.1.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.9999.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-3.ebuild create mode 100644 testdata/repos/standalone/StaleLiveCheck/StaleLiveEAPI/StaleLiveEAPI-4.9999.ebuild (limited to 'testdata') 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" -- cgit v1.2.3-65-gdbad