Add link validation infrastructure for multiple compilation units per stage. Includes a new, straightforward, C++ interface to the front end.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22927 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -2,10 +2,28 @@
|
||||
|
||||
TARGETDIR=localResults
|
||||
BASEDIR=baseResults
|
||||
EXE=./glslangValidator.exe
|
||||
|
||||
#
|
||||
# isolated compilation tests
|
||||
#
|
||||
|
||||
while read t; do
|
||||
echo Running $t...
|
||||
b=`basename $t`
|
||||
./glslangValidator.exe -i $t > $TARGETDIR/$b.out
|
||||
b=`basename $t`
|
||||
$EXE -i $t > $TARGETDIR/$b.out
|
||||
diff -b $BASEDIR/$b.out $TARGETDIR/$b.out
|
||||
done < testlist
|
||||
|
||||
#
|
||||
# grouped shaders for link tests
|
||||
#
|
||||
|
||||
function runLinkTest {
|
||||
echo Running $*...
|
||||
$EXE -i -l $* > $TARGETDIR/$1.out
|
||||
diff -b $BASEDIR/$1.out $TARGETDIR/$1.out
|
||||
}
|
||||
|
||||
runLinkTest mains1.frag mains2.frag noMain1.geom noMain2.geom
|
||||
runLinkTest noMain.vert mains.frag
|
||||
|
||||
Reference in New Issue
Block a user