| 
									
										
										
										
											2019-11-06 20:49:06 -05:00
										 |  |  | import ./make-test-python.nix ({ pkgs, ...} : { | 
					
						
							| 
									
										
										
										
											2015-05-27 18:13:18 +02:00
										 |  |  |   name = "lightdm"; | 
					
						
							| 
									
										
										
										
											2015-07-12 12:09:40 +02:00
										 |  |  |   meta = with pkgs.stdenv.lib.maintainers; { | 
					
						
							| 
									
										
										
										
											2019-08-06 18:34:19 -04:00
										 |  |  |     maintainers = [ aszlig worldofpeace ]; | 
					
						
							| 
									
										
										
										
											2015-07-12 12:09:40 +02:00
										 |  |  |   }; | 
					
						
							| 
									
										
										
										
											2015-05-27 18:13:18 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-20 20:56:59 +00:00
										 |  |  |   machine = { ... }: { | 
					
						
							| 
									
										
										
										
											2015-05-27 18:13:18 +02:00
										 |  |  |     imports = [ ./common/user-account.nix ]; | 
					
						
							|  |  |  |     services.xserver.enable = true; | 
					
						
							|  |  |  |     services.xserver.displayManager.lightdm.enable = true; | 
					
						
							| 
									
										
										
										
											2019-12-10 15:10:30 +01:00
										 |  |  |     services.xserver.displayManager.defaultSession = "none+icewm"; | 
					
						
							| 
									
										
										
										
											2015-05-27 18:13:18 +02:00
										 |  |  |     services.xserver.windowManager.icewm.enable = true; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   enableOCR = true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   testScript = { nodes, ... }: let | 
					
						
							| 
									
										
										
										
											2018-06-30 01:55:42 +02:00
										 |  |  |     user = nodes.machine.config.users.users.alice; | 
					
						
							| 
									
										
										
										
											2015-05-27 18:13:18 +02:00
										 |  |  |   in ''
 | 
					
						
							| 
									
										
										
										
											2019-11-06 20:49:06 -05:00
										 |  |  |     start_all() | 
					
						
							|  |  |  |     machine.wait_for_text("${user.description}") | 
					
						
							|  |  |  |     machine.screenshot("lightdm") | 
					
						
							|  |  |  |     machine.send_chars("${user.password}\n") | 
					
						
							|  |  |  |     machine.wait_for_file("${user.home}/.Xauthority") | 
					
						
							|  |  |  |     machine.succeed("xauth merge ${user.home}/.Xauthority") | 
					
						
							|  |  |  |     machine.wait_for_window("^IceWM ") | 
					
						
							| 
									
										
										
										
											2015-05-27 18:13:18 +02:00
										 |  |  |   '';
 | 
					
						
							| 
									
										
										
										
											2015-07-12 12:09:40 +02:00
										 |  |  | }) |