2024-07-09 07:44:57 +00:00
|
|
|
{ pkgs, lib, self }:
|
|
|
|
|
|
|
|
lib.runTests {
|
|
|
|
testsUtilsGetBin = {
|
|
|
|
expr = self.utils.getBin [
|
2024-07-13 09:00:06 +00:00
|
|
|
../../lib
|
2024-07-09 07:44:57 +00:00
|
|
|
../../modules
|
|
|
|
];
|
|
|
|
expected = [
|
2024-07-13 09:00:06 +00:00
|
|
|
(lib.getBin ../../lib)
|
2024-07-09 07:44:57 +00:00
|
|
|
(lib.getBin ../../modules)
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
testsUtilsGetLibexec = {
|
|
|
|
expr = self.utils.getLibexec [
|
2024-07-13 09:00:06 +00:00
|
|
|
../../lib
|
2024-07-09 07:44:57 +00:00
|
|
|
../../modules
|
|
|
|
];
|
|
|
|
expected = [
|
2024-07-13 09:00:06 +00:00
|
|
|
"${../../lib}/libexec"
|
2024-07-09 07:44:57 +00:00
|
|
|
"${../../modules}/libexec"
|
|
|
|
];
|
|
|
|
};
|
2024-07-21 09:41:05 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
2024-07-09 07:44:57 +00:00
|
|
|
}
|