nix-module-wrapper-manager-fds/tests/lib/utils.nix

52 lines
841 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"
];
};
}