| 
									
										
										
										
											2019-11-09 19:40:32 +01:00
										 |  |  | import ./make-test-python.nix ({ pkgs, ... }: { | 
					
						
							| 
									
										
										
										
											2018-12-17 20:12:09 +01:00
										 |  |  |   name = "fish"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   machine = | 
					
						
							|  |  |  |     { pkgs, ... }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       programs.fish.enable = true; | 
					
						
							|  |  |  |       environment.systemPackages = with pkgs; [ | 
					
						
							|  |  |  |         coreutils | 
					
						
							|  |  |  |         procps # kill collides with coreutils' to test https://github.com/NixOS/nixpkgs/issues/56432 | 
					
						
							|  |  |  |       ]; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   testScript = | 
					
						
							|  |  |  |     ''
 | 
					
						
							| 
									
										
										
										
											2019-11-09 19:40:32 +01:00
										 |  |  |       start_all() | 
					
						
							|  |  |  |       machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish") | 
					
						
							|  |  |  |       machine.wait_for_file("/etc/fish/generated_completions/kill.fish") | 
					
						
							|  |  |  |       machine.succeed( | 
					
						
							|  |  |  |           "fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.local/share/fish/generated_completions$'" | 
					
						
							|  |  |  |       ) | 
					
						
							| 
									
										
										
										
											2018-12-17 20:12:09 +01:00
										 |  |  |     '';
 | 
					
						
							|  |  |  | }) |