blob: 44d3dc351e35a739ec9a740db7d64cdf1e0cab03 [file] [log] [blame]
John Kessenichaab25142013-02-12 18:26:15 +00001#!/usr/bin/env bash
2
John Kessenich4586dbd2013-08-05 15:52:03 +00003TARGETDIR=localResults
4BASEDIR=baseResults
John Kessenichd18e2d82014-03-11 02:10:26 +00005EXE=../build/install/bin/glslangValidator
LoopDawg8004d362017-09-17 10:38:52 -06006REMAPEXE=../build/install/bin/spirv-remap
John Kessenichb38c9692015-05-15 19:01:17 +00007HASERROR=0
John Kessenich08d18242013-12-20 18:36:27 +00008mkdir -p localResults
John Kessenich69f4b512013-09-04 21:19:27 +00009
John Kessenichcf0206c2014-04-14 15:46:40 +000010if [ -a localtestlist ]
11 then
12 while read t; do
13 echo Running $t...
14 b=`basename $t`
15 $EXE -i -l $t > $TARGETDIR/$b.out
John Kessenichb38c9692015-05-15 19:01:17 +000016 diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1
John Kessenichcf0206c2014-04-14 15:46:40 +000017 done < localtestlist
18fi
19
johnkslang02ad18a2015-06-26 00:12:31 -060020rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv
John Kessenich593a3f72015-05-15 18:44:16 +000021
22#
John Kessenich31a51be2016-07-19 14:32:52 -060023# special tests
24#
25
26$EXE badMacroArgs.frag > $TARGETDIR/badMacroArgs.frag.out
27diff -b $BASEDIR/badMacroArgs.frag.out $TARGETDIR/badMacroArgs.frag.out || HASERROR=1
28
29#
John Kessenich11f9fc72013-11-07 01:06:34 +000030# reflection tests
31#
32echo Running reflection...
John Kessenicha86836e2016-07-09 14:50:57 -060033$EXE -l -q -C reflection.vert > $TARGETDIR/reflection.vert.out
John Kessenichb38c9692015-05-15 19:01:17 +000034diff -b $BASEDIR/reflection.vert.out $TARGETDIR/reflection.vert.out || HASERROR=1
baldurk0af5e3e2019-01-29 16:04:44 +000035$EXE -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io reflection.options.vert > $TARGETDIR/reflection.options.vert.out
baldurk15c37f72019-01-29 12:12:59 +000036diff -b $BASEDIR/reflection.options.vert.out $TARGETDIR/reflection.options.vert.out || HASERROR=1
baldurk0af5e3e2019-01-29 16:04:44 +000037$EXE -l -q -C reflection.frag > $TARGETDIR/reflection.frag.out
38diff -b $BASEDIR/reflection.frag.out $TARGETDIR/reflection.frag.out || HASERROR=1
39$EXE -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io reflection.frag > $TARGETDIR/reflection.options.frag.out
40diff -b $BASEDIR/reflection.options.frag.out $TARGETDIR/reflection.options.frag.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -070041$EXE -D -Od -e flizv -l -q -C -V -Od hlsl.reflection.vert > $TARGETDIR/hlsl.reflection.vert.out
John Kessenich2572b192016-09-19 23:12:48 -060042diff -b $BASEDIR/hlsl.reflection.vert.out $TARGETDIR/hlsl.reflection.vert.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -070043$EXE -D -Od -e main -l -q -C -V -Od hlsl.reflection.binding.frag > $TARGETDIR/hlsl.reflection.binding.frag.out
steve-lunarg8ffc36a2016-09-21 14:19:40 -060044diff -b $BASEDIR/hlsl.reflection.binding.frag.out $TARGETDIR/hlsl.reflection.binding.frag.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -070045$EXE -D -Od -e main -l -q --hlsl-iomap --auto-map-bindings --stb 10 --sbb 20 --ssb 30 --suavb 40 --scb 50 -D -V -e main -Od hlsl.automap.frag > $TARGETDIR/hlsl.automap.frag.out
steve-lunargbe283552017-04-18 12:18:01 -060046diff -b $BASEDIR/hlsl.automap.frag.out $TARGETDIR/hlsl.automap.frag.out || HASERROR=1
John Kessenich11f9fc72013-11-07 01:06:34 +000047
48#
John Kessenich38f3b892013-09-06 19:52:57 +000049# multi-threaded test
50#
John Kessenich38f3b892013-09-06 19:52:57 +000051echo Comparing single thread to multithread for all tests in current directory...
John Kessenicha86836e2016-07-09 14:50:57 -060052$EXE -i -C *.vert *.geom *.frag *.tes* *.comp > singleThread.out
53$EXE -i -C *.vert *.geom *.frag *.tes* *.comp -t > multiThread.out
John Kessenichb38c9692015-05-15 19:01:17 +000054diff singleThread.out multiThread.out || HASERROR=1
John Kessenich4b1a8902017-07-06 11:58:12 -060055if [ $HASERROR -eq 0 ]
56then
57 rm singleThread.out
58 rm multiThread.out
59fi
John Kessenichb38c9692015-05-15 19:01:17 +000060
steve-lunargf1e0c872016-10-31 15:13:43 -060061#
62# entry point renaming tests
63#
John Kessenich906cc212016-12-09 19:22:20 -070064echo Running entry-point renaming tests
John Kessenich640bd092018-08-09 14:15:00 -060065$EXE -i -H -V -D -Od --entry-point main_in_spv --ku --source-entrypoint main -Od hlsl.entry.rename.frag > $TARGETDIR/hlsl.entry.rename.frag.out
steve-lunargf1e0c872016-10-31 15:13:43 -060066diff -b $BASEDIR/hlsl.entry.rename.frag.out $TARGETDIR/hlsl.entry.rename.frag.out || HASERROR=1
67
John Kessenich906cc212016-12-09 19:22:20 -070068#
69# Testing ill-defined uncalled function
70#
71echo Running ill-defined uncalled function
John Kessenichb3cff2f2017-12-21 12:17:25 -070072$EXE -D -Od -e main -H -Od hlsl.deadFunctionMissingBody.vert > $TARGETDIR/hlsl.deadFunctionMissingBody.vert.out
John Kessenich906cc212016-12-09 19:22:20 -070073diff -b $BASEDIR/hlsl.deadFunctionMissingBody.vert.out $TARGETDIR/hlsl.deadFunctionMissingBody.vert.out || HASERROR=1
74
John Kessenich84ea15f2015-05-15 21:54:24 +000075if [ $HASERROR -eq 0 ]
76then
77 echo Tests Succeeded.
78else
79 echo Tests Failed.
80fi
81
John Kesseniche751bca2017-03-16 11:20:38 -060082#
John Kessenich2ead40f2018-04-17 17:44:11 -060083# Testing -S and compound suffixes
John Kesseniche751bca2017-03-16 11:20:38 -060084#
John Kessenich2ead40f2018-04-17 17:44:11 -060085echo Running explicit stage test and compound suffix tests
John Kessenichecbd0562018-05-10 10:22:13 -060086$EXE -Od -i -S vert nosuffix > $TARGETDIR/nosuffix.out
John Kesseniche751bca2017-03-16 11:20:38 -060087diff -b $BASEDIR/nosuffix.out $TARGETDIR/nosuffix.out || HASERROR=1
John Kessenichecbd0562018-05-10 10:22:13 -060088$EXE -Od -i compoundsuffix.vert.glsl > $TARGETDIR/compoundsuffix.vert.glsl
John Kessenich2ead40f2018-04-17 17:44:11 -060089diff -b $BASEDIR/compoundsuffix.vert.glsl $TARGETDIR/compoundsuffix.vert.glsl || HASERROR=1
John Kessenichecbd0562018-05-10 10:22:13 -060090$EXE -Od -e main -H compoundsuffix.frag.hlsl > $TARGETDIR/compoundsuffix.frag.hlsl
John Kessenich2ead40f2018-04-17 17:44:11 -060091diff -b $BASEDIR/compoundsuffix.frag.hlsl $TARGETDIR/compoundsuffix.frag.hlsl || HASERROR=1
John Kesseniche751bca2017-03-16 11:20:38 -060092
John Kessenich4f1403e2017-04-05 17:38:20 -060093#
94# Testing --hlsl-offsets
95#
96echo Running hlsl offsets
97$EXE -i --hlsl-offsets -H spv.hlslOffsets.vert > $TARGETDIR/spv.hlslOffsets.vert.out
98diff -b $BASEDIR/spv.hlslOffsets.vert.out $TARGETDIR/spv.hlslOffsets.vert.out || HASERROR=1
99
100echo Running hlsl offsets
John Kessenichb3cff2f2017-12-21 12:17:25 -0700101$EXE -i --hlsl-offsets -D -Od -e main -H -Od hlsl.hlslOffset.vert > $TARGETDIR/hlsl.hlslOffset.vert.out
John Kessenich4f1403e2017-04-05 17:38:20 -0600102diff -b $BASEDIR/hlsl.hlslOffset.vert.out $TARGETDIR/hlsl.hlslOffset.vert.out || HASERROR=1
103
104#
John Kessenich71facdf2017-05-17 18:28:19 -0600105# Testing --resource-set-binding
Hyangran Park36dc8292017-05-02 16:27:29 +0900106#
107echo Configuring HLSL descriptor set and binding number manually
John Kessenichb3cff2f2017-12-21 12:17:25 -0700108$EXE -V -D -Od -e main -H -Od hlsl.multiDescriptorSet.frag --rsb frag t0 0 0 t1 1 0 s0 0 1 s1 1 1 b0 2 0 b1 2 1 b2 2 2 > $TARGETDIR/hlsl.multiDescriptorSet.frag.out
John Kessenich121853f2017-05-31 17:11:16 -0600109diff -b $BASEDIR/hlsl.multiDescriptorSet.frag.out $TARGETDIR/hlsl.multiDescriptorSet.frag.out || HASERROR=1
Hyangran Park36dc8292017-05-02 16:27:29 +0900110
John Kessenichb3cff2f2017-12-21 12:17:25 -0700111$EXE -V -D -Od -e main -H -Od hlsl.explicitDescriptorSet.frag --hlsl-iomap --amb --ssb 10 --stb 20 --rsb 4 > $TARGETDIR/hlsl.explicitDescriptorSet.frag.out
LoopDawg52017192017-07-14 15:15:47 -0600112diff -b $BASEDIR/hlsl.explicitDescriptorSet.frag.out $TARGETDIR/hlsl.explicitDescriptorSet.frag.out || HASERROR=1
113
John Kessenichb3cff2f2017-12-21 12:17:25 -0700114$EXE -V -D -Od -e main -H -Od hlsl.explicitDescriptorSet.frag --hlsl-iomap --amb --ssb 10 --stb 20 --rsb frag 3 > $TARGETDIR/hlsl.explicitDescriptorSet-2.frag.out
LoopDawg52017192017-07-14 15:15:47 -0600115diff -b $BASEDIR/hlsl.explicitDescriptorSet-2.frag.out $TARGETDIR/hlsl.explicitDescriptorSet-2.frag.out || HASERROR=1
116
Hyangran Park36dc8292017-05-02 16:27:29 +0900117#
LoopDawg08a14422017-10-17 19:27:14 -0600118# Testing per-descriptor-set IO map shift
119#
120echo 'Testing per-descriptor-set IO map shift'
John Kessenich251901a2018-08-12 22:05:59 -0600121$EXE -e main --hlsl-iomap --ssb 10 1 15 2 --stb 20 --stb 25 2 --stb 70 6 --suavb 30 --suavb 40 2 --sub 50 6 -i -q -D -Od -V hlsl.shift.per-set.frag > $TARGETDIR/hlsl.shift.per-set.frag.out || HASERROR=1
LoopDawg08a14422017-10-17 19:27:14 -0600122diff -b $BASEDIR/hlsl.shift.per-set.frag.out $TARGETDIR/hlsl.shift.per-set.frag.out || HASERROR=1
123
124#
John Kessenich71facdf2017-05-17 18:28:19 -0600125# Testing location error
126#
127echo Testing SPV no location
128$EXE -V -C spv.noLocation.vert > $TARGETDIR/spv.noLocation.vert.out
John Kessenich121853f2017-05-31 17:11:16 -0600129diff -b $BASEDIR/spv.noLocation.vert.out $TARGETDIR/spv.noLocation.vert.out || HASERROR=1
John Kessenich82e95a32017-08-26 15:47:25 -0600130$EXE -G -H --aml spv.noBuiltInLoc.vert > $TARGETDIR/spv.noBuiltInLoc.vert.out
John Kessenich91e69c02017-07-14 05:52:31 -0600131diff -b $BASEDIR/spv.noBuiltInLoc.vert.out $TARGETDIR/spv.noBuiltInLoc.vert.out || HASERROR=1
John Kessenich82e95a32017-08-26 15:47:25 -0600132$EXE -G spv.looseUniformNoLoc.vert > $TARGETDIR/spv.looseUniformNoLoc.vert.out
133diff -b $BASEDIR/spv.looseUniformNoLoc.vert.out $TARGETDIR/spv.looseUniformNoLoc.vert.out || HASERROR=1
John Kessenich121853f2017-05-31 17:11:16 -0600134
135#
136# Testing debug information
137#
138echo Testing SPV Debug Information
John Kessenichc3404252018-08-23 15:29:08 -0600139$EXE -g --relaxed-errors --suppress-warnings --aml --amb --hlsl-offsets --nsf --spirv-val \
John Kessenich2a271162017-07-20 20:00:36 -0600140 -G -H spv.debugInfo.frag --rsb frag 3 > $TARGETDIR/spv.debugInfo.frag.out
John Kessenich121853f2017-05-31 17:11:16 -0600141diff -b $BASEDIR/spv.debugInfo.frag.out $TARGETDIR/spv.debugInfo.frag.out || HASERROR=1
John Kessenichc3404252018-08-23 15:29:08 -0600142$EXE -g -Od --target-env vulkan1.1 --relaxed-errors --suppress-warnings --aml --hlsl-offsets --nsf --spirv-val \
John Kessenich66011cb2018-03-06 16:12:04 -0700143 -G -H spv.debugInfo.frag --rsb frag 3 > $TARGETDIR/spv.debugInfo.1.1.frag.out
144diff -b $BASEDIR/spv.debugInfo.1.1.frag.out $TARGETDIR/spv.debugInfo.1.1.frag.out || HASERROR=1
John Kessenichc3404252018-08-23 15:29:08 -0600145$EXE -g -D -Od -e newMain -g --amb --aml --fua --hlsl-iomap --nsf --spirv-val --sib 1 --ssb 2 --sbb 3 --stb 4 --suavb 5 --sub 6 \
GregFcd1f1692017-09-21 18:40:22 -0600146 --sep origMain -H -Od spv.hlslDebugInfo.vert --rsb vert t0 0 0 > $TARGETDIR/spv.hlslDebugInfo.frag.out
John Kessenich2a271162017-07-20 20:00:36 -0600147diff -b $BASEDIR/spv.hlslDebugInfo.frag.out $TARGETDIR/spv.hlslDebugInfo.frag.out || HASERROR=1
John Kessenich71facdf2017-05-17 18:28:19 -0600148
149#
John Kessenich3494b4d2017-05-22 15:00:42 -0600150# Testing Includer
151#
152echo Testing Includer
John Kessenichb3cff2f2017-12-21 12:17:25 -0700153$EXE -D -Od -e main -H -Od ../Test/hlsl.include.vert > $TARGETDIR/hlsl.include.vert.out
John Kessenich3494b4d2017-05-22 15:00:42 -0600154diff -b $BASEDIR/hlsl.include.vert.out $TARGETDIR/hlsl.include.vert.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -0700155$EXE -D -Od -e main -H -Od hlsl.includeNegative.vert > $TARGETDIR/hlsl.includeNegative.vert.out
John Kessenich3494b4d2017-05-22 15:00:42 -0600156diff -b $BASEDIR/hlsl.includeNegative.vert.out $TARGETDIR/hlsl.includeNegative.vert.out || HASERROR=1
157$EXE -l -i include.vert > $TARGETDIR/include.vert.out
158diff -b $BASEDIR/include.vert.out $TARGETDIR/include.vert.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -0700159$EXE -D -Od -e main -H -Od -Iinc1/path1 -Iinc1/path2 hlsl.dashI.vert > $TARGETDIR/hlsl.dashI.vert.out
John Kessenich971a0a82017-06-07 15:06:58 -0600160diff -b $BASEDIR/hlsl.dashI.vert.out $TARGETDIR/hlsl.dashI.vert.out || HASERROR=1
greg-lunarg5d43c4a2018-12-07 17:36:33 -0700161$EXE -D -Od -e MainPs -H -Od -g hlsl.pp.line3.frag > $TARGETDIR/hlsl.pp.line3.frag.out
162diff -b $BASEDIR/hlsl.pp.line3.frag.out $TARGETDIR/hlsl.pp.line3.frag.out || HASERROR=1
John Kessenich3494b4d2017-05-22 15:00:42 -0600163
164#
John Kessenicha9313662017-06-15 10:40:49 -0600165# Testing -D and -U
166#
LoopDawg8004d362017-09-17 10:38:52 -0600167echo "Testing -D and -U"
John Kessenicha9313662017-06-15 10:40:49 -0600168$EXE -DUNDEFED -UIN_SHADER -DFOO=200 -i -l -UUNDEFED -DMUL=FOO*2 glsl.-D-U.frag > $TARGETDIR/glsl.-D-U.frag.out
169diff -b $BASEDIR/glsl.-D-U.frag.out $TARGETDIR/glsl.-D-U.frag.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -0700170$EXE -D -Od -e main -V -i -DUNDEFED -UIN_SHADER -DFOO=200 -UUNDEFED -Od hlsl.-D-U.frag > $TARGETDIR/hlsl.-D-U.frag.out
John Kessenicha9313662017-06-15 10:40:49 -0600171diff -b $BASEDIR/hlsl.-D-U.frag.out $TARGETDIR/hlsl.-D-U.frag.out || HASERROR=1
172
173#
John Kessenich6353d552017-06-23 11:11:09 -0600174# Test --client and --target-env
175#
LoopDawg8004d362017-09-17 10:38:52 -0600176echo "Testing --client and --target-env"
John Kessenich8717a5d2018-10-26 10:12:32 -0600177$EXE --client vulkan100 spv.targetVulkan.vert || HASERROR=1
178$EXE --client opengl100 spv.targetOpenGL.vert || HASERROR=1
179$EXE --target-env vulkan1.0 spv.targetVulkan.vert || HASERROR=1
180$EXE --target-env vulkan1.1 spv.targetVulkan.vert || HASERROR=1
181$EXE --target-env opengl spv.targetOpenGL.vert || HASERROR=1
182$EXE -V100 spv.targetVulkan.vert || HASERROR=1
183$EXE -G100 spv.targetOpenGL.vert || HASERROR=1
184$EXE --target-env spirv1.2 -V spv.targetVulkan.vert || HASERROR=1
John Kessenich6353d552017-06-23 11:11:09 -0600185
186#
John Kessenich9855bda2017-09-11 21:48:19 -0600187# Testing GLSL entry point rename
188#
LoopDawg8004d362017-09-17 10:38:52 -0600189echo "Testing GLSL entry point rename"
John Kessenich9855bda2017-09-11 21:48:19 -0600190$EXE -H -e foo --source-entrypoint main glsl.entryPointRename.vert > $TARGETDIR/glsl.entryPointRename.vert.out
191diff -b $BASEDIR/glsl.entryPointRename.vert.out $TARGETDIR/glsl.entryPointRename.vert.out || HASERROR=1
192$EXE -H -e foo --source-entrypoint bar glsl.entryPointRename.vert > $TARGETDIR/glsl.entryPointRename.vert.bad.out
193diff -b $BASEDIR/glsl.entryPointRename.vert.bad.out $TARGETDIR/glsl.entryPointRename.vert.bad.out || HASERROR=1
194$EXE -H -e foo --source-entrypoint main glsl.entryPointRename2.vert > $TARGETDIR/glsl.entryPointRename2.vert.out
195diff -b $BASEDIR/glsl.entryPointRename2.vert.out $TARGETDIR/glsl.entryPointRename2.vert.out || HASERROR=1
196
197#
LoopDawg8004d362017-09-17 10:38:52 -0600198# Testing remapper error handling
199#
200echo "Testing remapper error handling"
201$REMAPEXE --do-everything -i remap.invalid-spirv-1.spv -o $TARGETDIR > $TARGETDIR/remap.invalid-spirv-1.out && HASERROR=1
202diff -b $BASEDIR/remap.invalid-spirv-1.out $TARGETDIR/remap.invalid-spirv-1.out || HASERROR=1
203$REMAPEXE --do-everything -i remap.invalid-spirv-2.spv -o $TARGETDIR > $TARGETDIR/remap.invalid-spirv-2.out && HASERROR=1
204diff -b $BASEDIR/remap.invalid-spirv-2.out $TARGETDIR/remap.invalid-spirv-2.out || HASERROR=1
205
206#
LoopDawgb22c0692017-12-06 16:52:03 -0700207# Testing position Y inversion
208#
209echo "Testing position Y inversion"
John Kessenichb3cff2f2017-12-21 12:17:25 -0700210$EXE -H -e main -V -D -Od -H -i --iy hlsl.y-negate-1.vert > $TARGETDIR/hlsl.y-negate-1.vert.out
LoopDawgb22c0692017-12-06 16:52:03 -0700211diff -b $BASEDIR/hlsl.y-negate-1.vert.out $TARGETDIR/hlsl.y-negate-1.vert.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -0700212$EXE -H -e main -V -D -Od -H -i --invert-y hlsl.y-negate-2.vert > $TARGETDIR/hlsl.y-negate-2.vert.out
LoopDawgb22c0692017-12-06 16:52:03 -0700213diff -b $BASEDIR/hlsl.y-negate-2.vert.out $TARGETDIR/hlsl.y-negate-2.vert.out || HASERROR=1
John Kessenichb3cff2f2017-12-21 12:17:25 -0700214$EXE -H -e main -V -D -Od -H -i --invert-y hlsl.y-negate-3.vert > $TARGETDIR/hlsl.y-negate-3.vert.out
LoopDawgb22c0692017-12-06 16:52:03 -0700215diff -b $BASEDIR/hlsl.y-negate-3.vert.out $TARGETDIR/hlsl.y-negate-3.vert.out || HASERROR=1
216
217#
John Kessenich5d610ee2018-03-07 18:05:55 -0700218# Testing hlsl_functionality1
219#
John Kessenich086febc2018-10-25 12:43:02 -0600220echo "Testing hlsl_functionality1"
John Kessenich5d610ee2018-03-07 18:05:55 -0700221$EXE -H -e main -D -Od -fhlsl_functionality1 hlsl.structbuffer.incdec.frag > \
222 $TARGETDIR/hlsl.structbuffer.incdec.frag.hlslfun1.out
223diff -b $BASEDIR/hlsl.structbuffer.incdec.frag.hlslfun1.out $TARGETDIR/hlsl.structbuffer.incdec.frag.hlslfun1.out || HASERROR=1
John Kessenichf52b6382018-04-05 19:35:38 -0600224$EXE -H -e main -D -Od -fhlsl_functionality1 hlsl.noSemantic.functionality1.comp > \
225 $TARGETDIR/hlsl.noSemantic.functionality1.comp.out
226diff -b $BASEDIR/hlsl.noSemantic.functionality1.comp.out $TARGETDIR/hlsl.noSemantic.functionality1.comp.out || HASERROR=1
John Kessenich5d610ee2018-03-07 18:05:55 -0700227
228#
John Kessenich9cc81de2018-07-02 10:40:32 -0600229# Testing HLSL-specific PP feature expansion
230#
John Kessenich086febc2018-10-25 12:43:02 -0600231echo "Testing HLSL-specific PP feature expansion"
John Kessenich9cc81de2018-07-02 10:40:32 -0600232$EXE -D -E hlsl.pp.expand.frag > $TARGETDIR/hlsl.pp.expand.frag.out 2> $TARGETDIR/hlsl.pp.expand.frag.err
233diff -b $BASEDIR/hlsl.pp.expand.frag.out $TARGETDIR/hlsl.pp.expand.frag.out || HASERROR=1
234diff -b $BASEDIR/hlsl.pp.expand.frag.err $TARGETDIR/hlsl.pp.expand.frag.err || HASERROR=1
235
236#
John Kessenich4f1403e2017-04-05 17:38:20 -0600237# Final checking
238#
John Kesseniche751bca2017-03-16 11:20:38 -0600239if [ $HASERROR -eq 0 ]
240then
241 echo Tests Succeeded.
242else
243 echo Tests Failed.
244fi
245
John Kessenich4b1a8902017-07-06 11:58:12 -0600246rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv
247
John Kessenichb38c9692015-05-15 19:01:17 +0000248exit $HASERROR