1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/nixos/tests/lsd.nix

13 lines
443 B
Nix
Raw Normal View History

2020-11-28 18:19:46 +00:00
import ./make-test-python.nix ({ pkgs, ... }: {
name = "lsd";
meta = with pkgs.lib.maintainers; { maintainers = [ nequissimus ]; };
2020-11-28 18:19:46 +00:00
nodes.lsd = { pkgs, ... }: { environment.systemPackages = [ pkgs.lsd ]; };
testScript = ''
lsd.succeed('echo "abc" > /tmp/foo')
assert "4 B /tmp/foo" in lsd.succeed('lsd --classic --blocks "size,name" -l /tmp/foo')
2020-11-28 18:19:46 +00:00
assert "lsd ${pkgs.lsd.version}" in lsd.succeed("lsd --version")
'';
})