uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
nixos/tests/zsh-history.nix
Normal file
35
nixos/tests/zsh-history.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||
name = "zsh-history";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ ];
|
||||
};
|
||||
|
||||
nodes.default = { ... }: {
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
};
|
||||
environment.systemPackages = [ pkgs.zsh-history ];
|
||||
programs.zsh.interactiveShellInit = ''
|
||||
source ${pkgs.zsh-history.out}/share/zsh/init.zsh
|
||||
'';
|
||||
users.users.root.shell = "${pkgs.zsh}/bin/zsh";
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
default.wait_for_unit("multi-user.target")
|
||||
default.wait_until_succeeds("pgrep -f 'agetty.*tty1'")
|
||||
|
||||
# Login
|
||||
default.wait_until_tty_matches("1", "login: ")
|
||||
default.send_chars("root\n")
|
||||
default.wait_until_tty_matches("1", r"\nroot@default\b")
|
||||
|
||||
# Generate some history
|
||||
default.send_chars("echo foobar\n")
|
||||
default.wait_until_tty_matches("1", "foobar")
|
||||
|
||||
# Ensure that command was recorded in history
|
||||
default.succeed("/run/current-system/sw/bin/history list | grep -q foobar")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue