| 
				
			 | 
			
			
				@@ -5,9 +5,6 @@ set -o errexit 
			 | 
		
	
		
			
			| 
				5
			 | 
			
				5
			 | 
			
			
				 SELF_DIR=$(cd $(dirname $0) && pwd) || exit 1 
			 | 
		
	
		
			
			| 
				6
			 | 
			
				6
			 | 
			
			
				 CDIFF=$SELF_DIR/../cdiff.py 
			 | 
		
	
		
			
			| 
				7
			 | 
			
				7
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				8
			 | 
			
				
			 | 
			
			
				-# Override this to test with python3 
			 | 
		
	
		
			
			| 
				9
			 | 
			
				
			 | 
			
			
				-PYTHON=${PYTHON:-python} 
			 | 
		
	
		
			
			| 
				10
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				11
			 | 
			
				8
			 | 
			
			
				 function pass() 
			 | 
		
	
		
			
			| 
				12
			 | 
			
				9
			 | 
			
			
				 { 
			 | 
		
	
		
			
			| 
				13
			 | 
			
				10
			 | 
			
			
				     if [[ -t 1 ]]; then 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -33,8 +30,7 @@ function cmpOutput() 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				30
			 | 
			
			
				     local cdiff_opt=${3:-""} 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				31
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				35
			 | 
			
				32
			 | 
			
			
				     echo -n "Test option '$cdiff_opt' with input '$input' ... " 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				
			 | 
			
			
				-    if $PYTHON $CDIFF $cdiff_opt $input | diff -ub $expected_out - >& /dev/null 
			 | 
		
	
		
			
			| 
				37
			 | 
			
				
			 | 
			
			
				-    then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				33
			 | 
			
			
				+    if $CDIFF $cdiff_opt $input | diff -ubq $expected_out - >& /dev/null; then 
			 | 
		
	
		
			
			| 
				38
			 | 
			
				34
			 | 
			
			
				         pass 
			 | 
		
	
		
			
			| 
				39
			 | 
			
				35
			 | 
			
			
				         return 0 
			 | 
		
	
		
			
			| 
				40
			 | 
			
				36
			 | 
			
			
				     else 
			 |