nixos-config/tests/modules/wrapper-manager/default.nix
Gabriel Arazas 6b4422c8cd
wrapper-manager/dconf: add test and fix module
More proof that I don't do testing in this project. :)
2024-08-29 20:07:28 +08:00

26 lines
800 B
Nix

{ pkgs ? import <nixpkgs> { }, utils ? import ../../utils.nix { inherit pkgs; } }:
let
inherit (pkgs) lib;
wrapperManager = import ../../../subprojects/wrapper-manager-fds { };
wrapperManagerEval = module: args: wrapperManager.lib.build (args // {
pkgs = args.pkgs or pkgs;
modules = args.extraModules or [ ] ++ [
module
../../../modules/wrapper-manager
../../../modules/wrapper-manager/_private
];
});
runTests = path: args:
lib.mapAttrs (_: v: wrapperManagerEval v args) (import path);
in
{
neovim = runTests ./programs/neovim { };
bubblewrap = runTests ./sandboxing/bubblewrap { };
boxxy = runTests ./sandboxing/boxxy { };
zellij = runTests ./programs/zellij { };
jujutsu = runTests ./programs/jujutsu { };
dconf = runTests ./dconf { };
}