mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 04:06:46 +00:00 
			
		
		
		
	 bf92118fa9
			
		
	
	
		bf92118fa9
		
	
	
	
	
		
			
			This adds one test that supposed to succeed to test deep nesting of pattern groups which is rarely exercised by targets using decode tree. The remaining tests exercise various fail conditions. Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Message-Id: <20190227120217.20794-1-kbastian@mail.uni-paderborn.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
		
			
				
	
	
		
			25 lines
		
	
	
		
			527 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			527 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| # This work is licensed under the terms of the GNU LGPL, version 2 or later.
 | |
| # See the COPYING.LIB file in the top-level directory.
 | |
| 
 | |
| PYTHON=$1
 | |
| DECODETREE=$2
 | |
| E=0
 | |
| 
 | |
| # All of these tests should produce errors
 | |
| for i in err_*.decode; do
 | |
|     if $PYTHON $DECODETREE $i > /dev/null 2> /dev/null; then
 | |
|         # Pass, aka failed to fail.
 | |
|         echo FAIL: $i 1>&2
 | |
|         E=1
 | |
|     fi
 | |
| done
 | |
| 
 | |
| for i in succ_*.decode; do
 | |
|     if ! $PYTHON $DECODETREE $i > /dev/null 2> /dev/null; then
 | |
|         echo FAIL:$i 1>&2
 | |
|     fi
 | |
| done
 | |
| 
 | |
| exit $E
 |