4 , makeHardcodeGsettingsPatch
13 schemaIdToVariableMapping,
17 patch = makeHardcodeGsettingsPatch {
18 inherit src schemaIdToVariableMapping;
22 "makeHardcodeGsettingsPatch-tests-${name}"
32 cp -r --no-preserve=all "${src}" src
33 cp -r --no-preserve=all "${expected}" src-expected
39 find src -name '*.c' -print0 | while read -d $'\0' sourceFile; do
40 sourceFile=''${sourceFile#src/}
41 clang-format -style='{BasedOnStyle: InheritParentConfig, ColumnLimit: 240}' -i "src/$sourceFile" "src-expected/$sourceFile"
42 git diff --no-index "src/$sourceFile" "src-expected/$sourceFile" | cat
50 src = ./fixtures/example-project;
51 schemaIdToVariableMapping = {
52 "org.gnome.evolution-data-server.addressbook" = "EDS";
53 "org.gnome.evolution.calendar" = "EVO";
54 "org.gnome.seahorse.nautilus.window" = "SEANAUT";
56 expected = ./fixtures/example-project-patched;