nixos-config/subprojects/wrapper-manager-fds/tests/lib/utils.nix

48 lines
834 B
Nix

{ pkgs, lib, self }:
lib.runTests {
testsUtilsGetBin = {
expr = self.utils.getBin [
../../lib
../../modules
];
expected = [
(lib.getBin ../../lib)
(lib.getBin ../../modules)
];
};
testsUtilsGetLibexec = {
expr = self.utils.getLibexec [
../../lib
../../modules
];
expected = [
"${../../lib}/libexec"
"${../../modules}/libexec"
];
};
testsUtilsGetXdgConfigDirs = {
expr = self.utils.getXdgConfigDirs [
../../lib
../../modules
];
expected = [
"${../../lib}/etc/xdg"
"${../../modules}/etc/xdg"
];
};
testsUtilsGetXdgDataDirs = {
expr = self.utils.getXdgDataDirs [
../../lib
../../modules
];
expected = [
"${../../lib}/share"
"${../../modules}/share"
];
};
}