mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
tests/git: add git-lfs test
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
2e527427b1
commit
4fef8e73a6
3 changed files with 33 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
git-without-signing-key-id = ./git-without-signing-key-id.nix;
|
git-without-signing-key-id = ./git-without-signing-key-id.nix;
|
||||||
git-without-signing = ./git-without-signing.nix;
|
git-without-signing = ./git-without-signing.nix;
|
||||||
git-with-hooks = ./git-with-hooks.nix;
|
git-with-hooks = ./git-with-hooks.nix;
|
||||||
|
git-with-lfs = ./git-with-lfs.nix;
|
||||||
git-with-maintenance = ./git-with-maintenance.nix;
|
git-with-maintenance = ./git-with-maintenance.nix;
|
||||||
git-patdiff = ./git-patdiff.nix;
|
git-patdiff = ./git-patdiff.nix;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
tests/modules/programs/git/git-with-lfs-expected.conf
Normal file
15
tests/modules/programs/git/git-with-lfs-expected.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
[filter "lfs"]
|
||||||
|
clean = "git-lfs clean -- %f"
|
||||||
|
process = "git-lfs filter-process --skip"
|
||||||
|
required = true
|
||||||
|
smudge = "git-lfs smudge --skip -- %f"
|
||||||
|
|
||||||
|
[gpg]
|
||||||
|
format = "openpgp"
|
||||||
|
|
||||||
|
[gpg "openpgp"]
|
||||||
|
program = "@gnupg@/bin/gpg"
|
||||||
|
|
||||||
|
[user]
|
||||||
|
email = "user@example.org"
|
||||||
|
name = "John Doe"
|
||||||
17
tests/modules/programs/git/git-with-lfs.nix
Normal file
17
tests/modules/programs/git/git-with-lfs.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "John Doe";
|
||||||
|
userEmail = "user@example.org";
|
||||||
|
|
||||||
|
lfs = {
|
||||||
|
enable = true;
|
||||||
|
skipSmudge = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nmt.script = ''
|
||||||
|
assertFileExists home-files/.config/git/config
|
||||||
|
assertFileContent home-files/.config/git/config ${./git-with-lfs-expected.conf}
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue