From 6bb8608948484f37b6f963219d0e8371c506e01d Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Sat, 20 Feb 2021 18:41:33 +0100 Subject: pkgs/profpatsch/nman: unit test testable stuff This is parsing and rendering of stuff currently mostly, since our main logic is relatively interwoven with IO stuff (to avoid copying stuff a lot). This is fine however as the application logic is tested using the nixos vm test we also have! --- pkgs/profpatsch/nman/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/profpatsch/nman/default.nix') diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix index 31461999..f03c4502 100644 --- a/pkgs/profpatsch/nman/default.nix +++ b/pkgs/profpatsch/nman/default.nix @@ -1,9 +1,10 @@ { lib , writeRustSimpleBin +, testRustSimple , temp }: -writeRustSimpleBin "nman" { +testRustSimple (writeRustSimpleBin "nman" { meta = { license = lib.licenses.gpl3Only; description = "Open man page in a temporary nix-shell"; @@ -14,4 +15,4 @@ writeRustSimpleBin "nman" { postInstall = '' install -Dm644 ${./nman.1} "$out/share/man/man1/nman.1" ''; -} ./nman.rs +} ./nman.rs) -- cgit 1.4.1