5 , makeHardcodeGsettingsPatch
15 schemaIdToVariableMapping,
19 patch = makeHardcodeGsettingsPatch ({
20 inherit src schemaIdToVariableMapping;
25 "makeHardcodeGsettingsPatch-tests-${name}"
35 cp -r --no-preserve=all "${src}" src
36 cp -r --no-preserve=all "${expected}" src-expected
39 for patch in ${lib.escapeShellArgs (builtins.map (p: "${p}") patches)}; do
45 find src -name '*.c' -print0 | while read -d $'\0' sourceFile; do
46 sourceFile=''${sourceFile#src/}
47 clang-format -style='{BasedOnStyle: InheritParentConfig, ColumnLimit: 240}' -i "src/$sourceFile" "src-expected/$sourceFile"
48 git diff --no-index "src/$sourceFile" "src-expected/$sourceFile" | cat
56 src = ./fixtures/example-project;
57 schemaIdToVariableMapping = {
58 "org.gnome.evolution-data-server.addressbook" = "EDS";
59 "org.gnome.evolution.calendar" = "EVO";
60 "org.gnome.seahorse.nautilus.window" = "SEANAUT";
62 expected = ./fixtures/example-project-patched;
67 src = ./fixtures/example-project-wrapped-settings-constructor;
69 # Avoid using wrapper function, which the generator cannot handle.
70 ./fixtures/example-project-wrapped-settings-constructor-resolve.patch
72 schemaIdToVariableMapping = {
73 "org.gnome.evolution-data-server.addressbook" = "EDS";
75 expected = ./fixtures/example-project-wrapped-settings-constructor-patched;