cf3f6e7a7d
GitOrigin-RevId: 24eb3f87fc610f18de7076aee7c5a84ac5591e3e
12 lines
422 B
Nix
12 lines
422 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "bat";
|
|
meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ nequissimus ]; };
|
|
|
|
machine = { pkgs, ... }: { environment.systemPackages = [ pkgs.bat ]; };
|
|
|
|
testScript = ''
|
|
machine.succeed("echo 'Foobar\n\n\n42' > /tmp/foo")
|
|
assert "Foobar" in machine.succeed("bat -p /tmp/foo")
|
|
assert "42" in machine.succeed("bat -p /tmp/foo -r 4:4")
|
|
'';
|
|
})
|