aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-01-16 22:19:10 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-01-16 22:19:10 +0200
commit191300b597c948f40b7034213f68374fbcd73199 (patch)
tree400f83fc4a11e66184d5076c03489a94d9250b41 /testdata
parentProfilesCheck: check USE_EXPAND_VALUES_* in make.defaults (diff)
downloadpkgcheck-191300b597c948f40b7034213f68374fbcd73199.tar.gz
pkgcheck-191300b597c948f40b7034213f68374fbcd73199.tar.bz2
pkgcheck-191300b597c948f40b7034213f68374fbcd73199.zip
ProfilesCheck: check missing values for implicit in make.defaults
Related: https://github.com/pkgcore/pkgcheck/issues/524 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
-rw-r--r--testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/expected.json1
-rw-r--r--testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/fix.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/expected.json b/testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/expected.json
new file mode 100644
index 00000000..4ce574cb
--- /dev/null
+++ b/testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/expected.json
@@ -0,0 +1 @@
+{"__class__": "ProfileMissingImplicitExpandValues", "path": "unknown_use/make.defaults", "groups": ["ELIBC"]}
diff --git a/testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/fix.patch b/testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/fix.patch
new file mode 100644
index 00000000..8b2783d8
--- /dev/null
+++ b/testdata/data/repos/profiledir/ProfilesCheck/ProfileMissingImplicitExpandValues/fix.patch
@@ -0,0 +1,12 @@
+diff -Naur profiledir/profiles/unknown_use/make.defaults fixed/profiles/unknown_use/make.defaults
+diff --git a/testdata/repos/profiledir/profiles/unknown_use/make.defaults b/testdata/repos/profiledir/profiles/unknown_use/make.defaults
+--- profiledir/profiles/unknown_use/make.defaults
++++ fixed/profiles/unknown_use/make.defaults
+@@ -4,6 +4,7 @@
+ USE_EXPAND="PYTHON_TARGETS PYTHON_SINGLE_TARGET"
+ USE_EXPAND_UNPREFIXED="ARCH LUA_TARGETS PYTHON_TARGETS"
+ USE_EXPAND_VALUES_ARCH="amd64 x86"
++USE_EXPAND_VALUES_ELIBC="GNU"
+ USE_EXPAND_VALUES_LUA_TARGETS="lua5_1"
+ USE_EXPAND_VALUES_PYTHON_TARGETS="python3_9 python3_10"
+ PYTHON_TARGETS="python3_9 python3_10"