mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	 8e25a61277
			
		
	
	
		8e25a61277
		
	
	
	
	
		
			
			Added "--strict" option to pngtest, to report FAIL when the failure is only because the resulting valid files are different.
		
			
				
	
	
		
			17 lines
		
	
	
		
			371 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			371 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| echo "Running tests.  For details see pngtest-log.txt"
 | |
| 
 | |
| echo "============ pngtest pngtest.png ==============" > pngtest-log.txt
 | |
| 
 | |
| echo "Running test-pngtest.sh"
 | |
| if ./pngtest --strict ${srcdir}/pngtest.png >> pngtest-log.txt 2>&1
 | |
| then
 | |
|   echo "  PASS: pngtest --strict pngtest.png"
 | |
|   err=0
 | |
| else
 | |
|   echo "  FAIL: pngtest --strict pngtest.png"
 | |
|   err=1
 | |
| fi
 | |
| exit $err
 |