mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Merge pull request #1774 from boqwxp/exec
Add `exec` command to allow running shell commands from inside Yosys scripts
This commit is contained in:
		
						commit
						e03f725ef2
					
				
					 3 changed files with 210 additions and 0 deletions
				
			
		
							
								
								
									
										6
									
								
								tests/various/exec.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								tests/various/exec.ys
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
exec -expect-return 0 -- exit 0
 | 
			
		||||
exec -expect-return 27 -- exit 27
 | 
			
		||||
exec -expect-stdout nana -expect-stdout api -not-expect-stdout giraffe -- echo "bananapie"
 | 
			
		||||
 | 
			
		||||
logger -expect error "stdout did have a line" 1
 | 
			
		||||
exec -not-expect-stdout giraffe -- echo "giraffe"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue