cf3f6e7a7d
GitOrigin-RevId: 24eb3f87fc610f18de7076aee7c5a84ac5591e3e
12 lines
447 B
Nix
12 lines
447 B
Nix
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')
|
|
assert "4 B /tmp/foo" in lsd.succeed('lsd --classic --blocks "size,name" /tmp/foo')
|
|
assert "lsd ${pkgs.lsd.version}" in lsd.succeed("lsd --version")
|
|
'';
|
|
})
|