add first NixOS python tests
This commit is contained in:
parent
836f3ddb9b
commit
b3d869e847
32
seafile-nixos-tests.nix
Normal file
32
seafile-nixos-tests.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
import (<nixos-unstable> + /nixos/tests/make-test-python.nix) {
|
||||
|
||||
nodes =
|
||||
{
|
||||
server =
|
||||
{ config, pkgs, ...}:
|
||||
{
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(import /home/spiollinux/nixconfigs/home/ov/seafile-overlay)
|
||||
];
|
||||
|
||||
i18n.consoleKeyMap = "de";
|
||||
users.mutableUsers = false;
|
||||
users.users.asdtest = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
#hashedPassword = "$6$SZCzE/xB$Hr9sfsJ7xAcBCoptG39cxxQk8RZfldDjjGpSngOvn9Ufex5dHBEbdncXRZnfrGATsGcYPvLi7m4wIu.f8tY9B.";
|
||||
password = "";
|
||||
home = "/srv/test";
|
||||
createHome = false;
|
||||
};
|
||||
};
|
||||
client = {};
|
||||
};
|
||||
testScript =
|
||||
''
|
||||
print("foo")
|
||||
server.start()
|
||||
server.wait_for_unit("seafile.service")
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue