mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
tests/git: add git-lfs test
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
git-without-signing-key-id = ./git-without-signing-key-id.nix;
|
||||
git-without-signing = ./git-without-signing.nix;
|
||||
git-with-hooks = ./git-with-hooks.nix;
|
||||
git-with-lfs = ./git-with-lfs.nix;
|
||||
git-with-maintenance = ./git-with-maintenance.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}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user