| 
									
										
										
										
											2018-04-25 18:35:33 +02:00
										 |  |  | # run installed tests | 
					
						
							|  |  |  | import ./make-test.nix ({ pkgs, ... }: { | 
					
						
							|  |  |  |   name = "gdk-pixbuf"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   meta = { | 
					
						
							|  |  |  |     maintainers = pkgs.gdk_pixbuf.meta.maintainers; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   machine = { pkgs, ... }: { | 
					
						
							|  |  |  |     environment.systemPackages = with pkgs; [ gnome-desktop-testing ]; | 
					
						
							|  |  |  |     environment.variables.XDG_DATA_DIRS = [ "${pkgs.gdk_pixbuf.installedTests}/share" ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-20 21:29:37 +02:00
										 |  |  |     # Tests allocate a lot of memory trying to exploit a CVE | 
					
						
							|  |  |  |     # but qemu-system-i386 has a 2047M memory limit | 
					
						
							|  |  |  |     virtualisation.memorySize = if pkgs.stdenv.isi686 then 2047 else 4096; | 
					
						
							| 
									
										
										
										
											2018-04-25 18:35:33 +02:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   testScript = ''
 | 
					
						
							| 
									
										
										
										
											2018-09-20 21:29:37 +02:00
										 |  |  |     $machine->succeed("gnome-desktop-testing-runner -t 1800"); # increase timeout to 1800s | 
					
						
							| 
									
										
										
										
											2018-04-25 18:35:33 +02:00
										 |  |  |   '';
 | 
					
						
							|  |  |  | }) |