Move TARGETDIR as well
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
TARGETDIR=localResults
|
||||
TARGETDIR=${GLSLANG_TEST_RESULTS:-localResults}
|
||||
BASEDIR=baseResults
|
||||
EXE=${GLSLANG_PATH:-../build/install/bin/glslangValidator}
|
||||
REMAPEXE=${SPIRV_REMAP_PATH:-../build/install/bin/spirv-remap}
|
||||
HASERROR=0
|
||||
mkdir -p localResults
|
||||
mkdir -p $TARGETDIR
|
||||
|
||||
if [ -a localtestlist ]
|
||||
then
|
||||
@@ -55,13 +55,13 @@ diff -b $BASEDIR/hlsl.automap.frag.out $TARGETDIR/hlsl.automap.frag.out || HASER
|
||||
# multi-threaded test
|
||||
#
|
||||
echo Comparing single thread to multithread for all tests in current directory...
|
||||
$EXE -i -C *.vert *.geom *.frag *.tesc *.tese *.comp > singleThread.out
|
||||
$EXE -i -C *.vert *.geom *.frag *.tesc *.tese *.comp -t > multiThread.out
|
||||
diff singleThread.out multiThread.out || HASERROR=1
|
||||
$EXE -i -C *.vert *.geom *.frag *.tesc *.tese *.comp > $TARGETDIR/singleThread.out
|
||||
$EXE -i -C *.vert *.geom *.frag *.tesc *.tese *.comp -t > $TARGETDIR/multiThread.out
|
||||
diff $TARGETDIR/singleThread.out $TARGETDIR/multiThread.out || HASERROR=1
|
||||
if [ $HASERROR -eq 0 ]
|
||||
then
|
||||
rm singleThread.out
|
||||
rm multiThread.out
|
||||
rm $TARGETDIR/singleThread.out
|
||||
rm $TARGETDIR/multiThread.out
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user