From 62520e543e8bf9799b51b285c0519aa8855a7d6a Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 9 Jul 2024 15:44:57 +0800 Subject: [PATCH] wrapper-manager-fds/tests: init utils subset --- .../wrapper-manager-fds/tests/lib/default.nix | 1 + .../wrapper-manager-fds/tests/lib/utils.nix | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 subprojects/wrapper-manager-fds/tests/lib/utils.nix diff --git a/subprojects/wrapper-manager-fds/tests/lib/default.nix b/subprojects/wrapper-manager-fds/tests/lib/default.nix index e775297c..1079b294 100644 --- a/subprojects/wrapper-manager-fds/tests/lib/default.nix +++ b/subprojects/wrapper-manager-fds/tests/lib/default.nix @@ -9,4 +9,5 @@ let in { env = callLib ./env; + utils = callLib ./utils.nix; } diff --git a/subprojects/wrapper-manager-fds/tests/lib/utils.nix b/subprojects/wrapper-manager-fds/tests/lib/utils.nix new file mode 100644 index 00000000..8f784940 --- /dev/null +++ b/subprojects/wrapper-manager-fds/tests/lib/utils.nix @@ -0,0 +1,25 @@ +{ pkgs, lib, self }: + +lib.runTests { + testsUtilsGetBin = { + expr = self.utils.getBin [ + ../modules + ../../modules + ]; + expected = [ + (lib.getBin ../modules) + (lib.getBin ../../modules) + ]; + }; + + testsUtilsGetLibexec = { + expr = self.utils.getLibexec [ + ../modules + ../../modules + ]; + expected = [ + "${../modules}/libexec" + "${../../modules}/libexec" + ]; + }; +}