mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	liberty: fix tests
This commit is contained in:
		
							parent
							
								
									a0d865c2bf
								
							
						
					
					
						commit
						9631f6ece5
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		|  | @ -1,20 +1,21 @@ | |||
| #!/usr/bin/env bash | ||||
| set -e | ||||
| set -eo pipefail | ||||
| 
 | ||||
| for x in *.lib; do | ||||
| 	echo "Testing on $x.." | ||||
| 	../../yosys -p "read_verilog small.v; synth -top small; dfflibmap -info -liberty ${x}" -ql ${x%.lib}.log | ||||
| 	../../yosys-filterlib - $x 2>/dev/null > $x.filtered | ||||
| 	../../yosys-filterlib -verilogsim $x > $x.verilogsim | ||||
| 	diff $x.filtered $x.filtered.ok && diff $x.verilogsim $x.verilogsim.ok | ||||
| 	diff $x.filtered $x.filtered.ok | ||||
| 	diff $x.verilogsim $x.verilogsim.ok | ||||
| 	if [[ -e ${x%.lib}.log.ok ]]; then | ||||
| 		../../yosys -p "dfflibmap -info -liberty ${x}" -TqqQl ${x%.lib}.log | ||||
| 		diff ${x%.lib}.log ${x%.lib}.log.ok | ||||
| 	fi | ||||
| done || exit 1 | ||||
| done | ||||
| 
 | ||||
| for x in *.ys; do | ||||
|   echo "Running $x.." | ||||
|   ../../yosys -q -s $x -l ${x%.ys}.log | ||||
| done || exit 1 | ||||
| done | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue