mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	bugpoint: Add -greperr option
`-greperr <string>` redirects stderr to 'bugpoint-case.err', and then searches that file for `<string>`. Move `-runner` option up with the other options to reduce ambiguity (i.e. so it doesn't look like it's another design parts constraint). Also some shuffling of `err.ys`.
This commit is contained in:
		
							parent
							
								
									8d5dbae06e
								
							
						
					
					
						commit
						fb92eabdcd
					
				
					 3 changed files with 45 additions and 30 deletions
				
			
		
							
								
								
									
										3
									
								
								tests/bugpoint/.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								tests/bugpoint/.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,2 +1,3 @@
 | 
			
		|||
*.il
 | 
			
		||||
*.log
 | 
			
		||||
*.log
 | 
			
		||||
*.err
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,33 +20,24 @@ bugpoint -yosys ../../yosys -command raise_error -expect-return 7
 | 
			
		|||
select -assert-mod-count 1 =*
 | 
			
		||||
select -assert-mod-count 1 top
 | 
			
		||||
 | 
			
		||||
# raise_error with string prints message
 | 
			
		||||
# raise_error with string prints message and exits with 1
 | 
			
		||||
design -load read
 | 
			
		||||
rename top abc
 | 
			
		||||
bugpoint -yosys ../../yosys -command raise_error -grep "help me"
 | 
			
		||||
bugpoint -yosys ../../yosys -command raise_error -grep "help me" -expect-return 1
 | 
			
		||||
select -assert-mod-count 1 =*
 | 
			
		||||
select -assert-mod-count 1 other
 | 
			
		||||
 | 
			
		||||
# raise_error with no value exits with 1
 | 
			
		||||
design -load read
 | 
			
		||||
rename def zzy
 | 
			
		||||
delete other
 | 
			
		||||
bugpoint -yosys ../../yosys -command raise_error -expect-return 1
 | 
			
		||||
select -assert-mod-count 1 =*
 | 
			
		||||
select -assert-mod-count 1 zzy
 | 
			
		||||
 | 
			
		||||
# raise_error -stderr exits with 1
 | 
			
		||||
# raise_error -stderr prints to stderr and exits with 1
 | 
			
		||||
design -load read
 | 
			
		||||
rename top abc
 | 
			
		||||
delete def
 | 
			
		||||
bugpoint -yosys ../../yosys -command "raise_error -stderr" -expect-return 1
 | 
			
		||||
bugpoint -yosys ../../yosys -command "raise_error -stderr" -greperr "help me" -expect-return 1
 | 
			
		||||
select -assert-mod-count 1 =*
 | 
			
		||||
select -assert-mod-count 1 other
 | 
			
		||||
 | 
			
		||||
#TODO
 | 
			
		||||
# raise_error -stderr prints to stderr
 | 
			
		||||
design -load read
 | 
			
		||||
rename top abc
 | 
			
		||||
delete def
 | 
			
		||||
# bugpoint -yosys ../../yosys -command "raise_error -stderr" -grep "help me"
 | 
			
		||||
# select -assert-mod-count 1 =*
 | 
			
		||||
# select -assert-mod-count 1 other
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue