2020-11-30 08:33:03 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "lsd";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; { maintainers = [ nequissimus ]; };
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
nodes.lsd = { pkgs, ... }: { environment.systemPackages = [ pkgs.lsd ]; };
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
lsd.succeed('echo "abc" > /tmp/foo')
|
2020-12-25 13:55:36 +00:00
|
|
|
assert "4 B /tmp/foo" in lsd.succeed('lsd --classic --blocks "size,name" -l /tmp/foo')
|
2020-11-30 08:33:03 +00:00
|
|
|
assert "lsd ${pkgs.lsd.version}" in lsd.succeed("lsd --version")
|
|
|
|
'';
|
|
|
|
})
|