Test nix-store -q --roots
This commit is contained in:
		
							parent
							
								
									84143c4bd8
								
							
						
					
					
						commit
						fac6f8aac0
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -7,6 +7,8 @@ outPath=$(nix-store -rvv "$drvPath")
 | 
				
			||||||
rm -f "$NIX_STATE_DIR"/gcroots/foo
 | 
					rm -f "$NIX_STATE_DIR"/gcroots/foo
 | 
				
			||||||
ln -sf $outPath "$NIX_STATE_DIR"/gcroots/foo
 | 
					ln -sf $outPath "$NIX_STATE_DIR"/gcroots/foo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ "$(nix-store -q --roots $outPath)" = "$NIX_STATE_DIR"/gcroots/foo ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
nix-store --gc --print-roots | grep $outPath
 | 
					nix-store --gc --print-roots | grep $outPath
 | 
				
			||||||
nix-store --gc --print-live | grep $outPath
 | 
					nix-store --gc --print-live | grep $outPath
 | 
				
			||||||
nix-store --gc --print-dead | grep $drvPath
 | 
					nix-store --gc --print-dead | grep $drvPath
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue