glslang tests: Fix error propagation. From David Neto <dneto@google.com>.
The problem is that putting the while loop at the end of a pipeline was hiding any errors being generated by those tests. The patch changes the script to use a case statement inside the while loop instead of "grep" on the outside. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31503 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
		
							parent
							
								
									9e41f362a6
								
							
						
					
					
						commit
						99a3c59fae
					
				@ -40,12 +40,19 @@ fi
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# SPIR-V code generation tests
 | 
					# SPIR-V code generation tests
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
grep -v "^#" test-spirv-list | while read t; do
 | 
					while read t; do
 | 
				
			||||||
    echo Running SPIR-V $t...
 | 
					  case $t in
 | 
				
			||||||
    b=`basename $t`
 | 
					    \#*)
 | 
				
			||||||
    $EXE -H $t > $TARGETDIR/$b.out
 | 
					      # Skip comment lines in the test list file.
 | 
				
			||||||
    diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1
 | 
					      ;;
 | 
				
			||||||
done
 | 
					    *)
 | 
				
			||||||
 | 
					      echo Running SPIR-V $t...
 | 
				
			||||||
 | 
					      b=`basename $t`
 | 
				
			||||||
 | 
					      $EXE -H $t > $TARGETDIR/$b.out
 | 
				
			||||||
 | 
					      diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1
 | 
				
			||||||
 | 
					      ;;
 | 
				
			||||||
 | 
					  esac
 | 
				
			||||||
 | 
					done < test-spirv-list
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# grouped shaders for bulk (faster) tests
 | 
					# grouped shaders for bulk (faster) tests
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user