Add optional configuration file for specifying (existing) limits. Details explained by usage statement. More limits to be added in the future.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23105 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -4,10 +4,18 @@ TARGETDIR=localResults
|
||||
BASEDIR=baseResults
|
||||
EXE=./glslangValidator.exe
|
||||
|
||||
#
|
||||
# configuration file test
|
||||
#
|
||||
echo running configuration file test
|
||||
$EXE -c > $TARGETDIR/test.conf
|
||||
diff -b $BASEDIR/test.conf $TARGETDIR/test.conf
|
||||
$EXE -i $TARGETDIR/test.conf specExamples.vert > $TARGETDIR/specExamples.vert.out
|
||||
diff -b $BASEDIR/specExamples.vert.out $TARGETDIR
|
||||
|
||||
#
|
||||
# isolated compilation tests
|
||||
#
|
||||
|
||||
while read t; do
|
||||
echo Running $t...
|
||||
b=`basename $t`
|
||||
@@ -18,7 +26,6 @@ done < testlist
|
||||
#
|
||||
# grouped shaders for link tests
|
||||
#
|
||||
|
||||
function runLinkTest {
|
||||
echo Running $*...
|
||||
$EXE -i -l $* > $TARGETDIR/$1.out
|
||||
@@ -31,8 +38,8 @@ runLinkTest noMain.vert mains.frag
|
||||
#
|
||||
# multi-threaded test
|
||||
#
|
||||
|
||||
echo Comparing single thread to multithread for all tests in current directory...
|
||||
$EXE -i *.vert *.geom *.frag *.tes* *.comp > singleThread.out
|
||||
$EXE -i *.vert *.geom *.frag *.tes* *.comp -t > multiThread.out
|
||||
diff singleThread.out multiThread.out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user