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