diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-06-21 09:28:48 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-06-21 21:38:40 +0300 |
commit | a4d84c864d68c7bfb2ff24c7a8f00c0eb3877818 (patch) | |
tree | 823f8180d15c94b8ca72d65e168764539c3f77ea /testdata | |
parent | docs/config: explain when repo config is used (diff) | |
download | pkgcheck-a4d84c864d68c7bfb2ff24c7a8f00c0eb3877818.tar.gz pkgcheck-a4d84c864d68c7bfb2ff24c7a8f00c0eb3877818.tar.bz2 pkgcheck-a4d84c864d68c7bfb2ff24c7a8f00c0eb3877818.zip |
RustCheck: check for suboptimal - CRATES separator
Resolves: https://github.com/pkgcore/pkgcheck/issues/586
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
4 files changed, 28 insertions, 0 deletions
diff --git a/testdata/data/repos/standalone/RustCheck/SuboptimalCratesSeparator/expected.json b/testdata/data/repos/standalone/RustCheck/SuboptimalCratesSeparator/expected.json new file mode 100644 index 00000000..8e579657 --- /dev/null +++ b/testdata/data/repos/standalone/RustCheck/SuboptimalCratesSeparator/expected.json @@ -0,0 +1 @@ +{"__class__": "SuboptimalCratesSeparator", "category": "RustCheck", "package": "SuboptimalCratesSeparator", "version": "0", "line": "snakeoil-0.10.0", "lineno": 2} diff --git a/testdata/data/repos/standalone/RustCheck/SuboptimalCratesSeparator/fix.patch b/testdata/data/repos/standalone/RustCheck/SuboptimalCratesSeparator/fix.patch new file mode 100644 index 00000000..e400178c --- /dev/null +++ b/testdata/data/repos/standalone/RustCheck/SuboptimalCratesSeparator/fix.patch @@ -0,0 +1,14 @@ +diff -Naur standalone/RustCheck/SuboptimalCratesSeparator/SuboptimalCratesSeparator-0.ebuild fixed/RustCheck/SuboptimalCratesSeparator/SuboptimalCratesSeparator-0.ebuild +--- standalone/RustCheck/SuboptimalCratesSeparator/SuboptimalCratesSeparator-0.ebuild ++++ fixed/RustCheck/SuboptimalCratesSeparator/SuboptimalCratesSeparator-0.ebuild +@@ -1,7 +1,7 @@ + CRATES=" +- random@0.10.0 snakeoil-0.10.0 +- pkgcore-0.10.0 +- pkgcheck-0.10.0 ++ random@0.10.0 snakeoil@0.10.0 ++ pkgcore@0.10.0 ++ pkgcheck@0.10.0 + " + + inherit cargo diff --git a/testdata/repos/standalone/RustCheck/SuboptimalCratesSeparator/SuboptimalCratesSeparator-0.ebuild b/testdata/repos/standalone/RustCheck/SuboptimalCratesSeparator/SuboptimalCratesSeparator-0.ebuild new file mode 100644 index 00000000..d1da3ecc --- /dev/null +++ b/testdata/repos/standalone/RustCheck/SuboptimalCratesSeparator/SuboptimalCratesSeparator-0.ebuild @@ -0,0 +1,12 @@ +CRATES=" + random@0.10.0 snakeoil-0.10.0 + pkgcore-0.10.0 + pkgcheck-0.10.0 +" + +inherit cargo + +DESCRIPTION="Ebuild with suboptimal CRATES separator" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" diff --git a/testdata/repos/standalone/eclass/cargo.eclass b/testdata/repos/standalone/eclass/cargo.eclass new file mode 100644 index 00000000..f83c98d3 --- /dev/null +++ b/testdata/repos/standalone/eclass/cargo.eclass @@ -0,0 +1 @@ +# cargo eclass |