@@ -12,12 +12,30 @@ REMAPEXE=${3:-../build/install/bin/spirv-remap}
12
12
HASERROR=0
13
13
mkdir -p $TARGETDIR
14
14
15
+ LIBPATH=" $( cd " $( dirname " $( dirname $EXE ) " ) " && pwd) /lib"
16
+ if [ -d " ${LIBPATH} " ]; then
17
+ export LD_LIBRARY_PATH=" ${LIBPATH} :${LD_LIBRARY_PATH} "
18
+ fi
19
+
20
+ function run {
21
+ $EXE $@
22
+ result=$?
23
+ case " $result " in
24
+ [0-6]) # Valid success and error codes
25
+ return
26
+ ;;
27
+ * )
28
+ echo " $EXE returned $result "
29
+ HASERROR=1
30
+ esac
31
+ }
32
+
15
33
if [ -a localtestlist ]
16
34
then
17
35
while read t; do
18
36
echo Running $t ...
19
37
b=` basename $t `
20
- $EXE -i -l $t > $TARGETDIR /$b .out
38
+ run -i -l $t > $TARGETDIR /$b .out
21
39
diff -b $BASEDIR /$b .out $TARGETDIR /$b .out || HASERROR=1
22
40
done < localtestlist
23
41
fi
@@ -28,40 +46,40 @@ rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv
28
46
# special tests
29
47
#
30
48
31
- $EXE badMacroArgs.frag > $TARGETDIR /badMacroArgs.frag.out
49
+ run badMacroArgs.frag > $TARGETDIR /badMacroArgs.frag.out
32
50
diff -b $BASEDIR /badMacroArgs.frag.out $TARGETDIR /badMacroArgs.frag.out || HASERROR=1
33
51
34
52
#
35
53
# reflection tests
36
54
#
37
55
echo Running reflection...
38
- $EXE -l -q -C reflection.vert > $TARGETDIR /reflection.vert.out
56
+ run -l -q -C reflection.vert > $TARGETDIR /reflection.vert.out
39
57
diff -b $BASEDIR /reflection.vert.out $TARGETDIR /reflection.vert.out || HASERROR=1
40
- $EXE -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.options.vert > $TARGETDIR /reflection.options.vert.out
58
+ run -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.options.vert > $TARGETDIR /reflection.options.vert.out
41
59
diff -b $BASEDIR /reflection.options.vert.out $TARGETDIR /reflection.options.vert.out || HASERROR=1
42
- $EXE -l -q -C reflection.frag > $TARGETDIR /reflection.frag.out
60
+ run -l -q -C reflection.frag > $TARGETDIR /reflection.frag.out
43
61
diff -b $BASEDIR /reflection.frag.out $TARGETDIR /reflection.frag.out || HASERROR=1
44
- $EXE -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.frag > $TARGETDIR /reflection.options.frag.out
62
+ run -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.frag > $TARGETDIR /reflection.options.frag.out
45
63
diff -b $BASEDIR /reflection.options.frag.out $TARGETDIR /reflection.options.frag.out || HASERROR=1
46
- $EXE -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.options.geom > $TARGETDIR /reflection.options.geom.out
64
+ run -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.options.geom > $TARGETDIR /reflection.options.geom.out
47
65
diff -b $BASEDIR /reflection.options.geom.out $TARGETDIR /reflection.options.geom.out || HASERROR=1
48
- $EXE -l -q -C reflection.linked.vert reflection.linked.frag > $TARGETDIR /reflection.linked.out
66
+ run -l -q -C reflection.linked.vert reflection.linked.frag > $TARGETDIR /reflection.linked.out
49
67
diff -b $BASEDIR /reflection.linked.out $TARGETDIR /reflection.linked.out || HASERROR=1
50
- $EXE -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.linked.vert reflection.linked.frag > $TARGETDIR /reflection.linked.options.out
68
+ run -l -q -C --reflect-strict-array-suffix --reflect-basic-array-suffix --reflect-intermediate-io --reflect-separate-buffers --reflect-all-block-variables --reflect-unwrap-io-blocks --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.linked.vert reflection.linked.frag > $TARGETDIR /reflection.linked.options.out
51
69
diff -b $BASEDIR /reflection.linked.options.out $TARGETDIR /reflection.linked.options.out || HASERROR=1
52
- $EXE -D -Od -e flizv -l -q -C -V -Od hlsl.reflection.vert > $TARGETDIR /hlsl.reflection.vert.out
70
+ run -D -Od -e flizv -l -q -C -V -Od hlsl.reflection.vert > $TARGETDIR /hlsl.reflection.vert.out
53
71
diff -b $BASEDIR /hlsl.reflection.vert.out $TARGETDIR /hlsl.reflection.vert.out || HASERROR=1
54
- $EXE -D -Od -e main -l -q -C -V -Od hlsl.reflection.binding.frag > $TARGETDIR /hlsl.reflection.binding.frag.out
72
+ run -D -Od -e main -l -q -C -V -Od hlsl.reflection.binding.frag > $TARGETDIR /hlsl.reflection.binding.frag.out
55
73
diff -b $BASEDIR /hlsl.reflection.binding.frag.out $TARGETDIR /hlsl.reflection.binding.frag.out || HASERROR=1
56
- $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
74
+ run -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
57
75
diff -b $BASEDIR /hlsl.automap.frag.out $TARGETDIR /hlsl.automap.frag.out || HASERROR=1
58
76
59
77
#
60
78
# multi-threaded test
61
79
#
62
80
echo Comparing single thread to multithread for all tests in current directory...
63
- $EXE -i -C * .vert * .geom * .frag * .tesc * .tese * .comp > $TARGETDIR /singleThread.out
64
- $EXE -i -C * .vert * .geom * .frag * .tesc * .tese * .comp -t > $TARGETDIR /multiThread.out
81
+ run -i -C * .vert * .geom * .frag * .tesc * .tese * .comp > $TARGETDIR /singleThread.out
82
+ run -i -C * .vert * .geom * .frag * .tesc * .tese * .comp -t > $TARGETDIR /multiThread.out
65
83
diff $TARGETDIR /singleThread.out $TARGETDIR /multiThread.out || HASERROR=1
66
84
if [ $HASERROR -eq 0 ]
67
85
then
73
91
# entry point renaming tests
74
92
#
75
93
echo Running entry-point renaming tests
76
- $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
94
+ run -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
77
95
diff -b $BASEDIR /hlsl.entry.rename.frag.out $TARGETDIR /hlsl.entry.rename.frag.out || HASERROR=1
78
96
79
97
#
80
98
# Testing ill-defined uncalled function
81
99
#
82
100
echo Running ill-defined uncalled function
83
- $EXE -D -Od -e main -H -Od hlsl.deadFunctionMissingBody.vert > $TARGETDIR /hlsl.deadFunctionMissingBody.vert.out
101
+ run -D -Od -e main -H -Od hlsl.deadFunctionMissingBody.vert > $TARGETDIR /hlsl.deadFunctionMissingBody.vert.out
84
102
diff -b $BASEDIR /hlsl.deadFunctionMissingBody.vert.out $TARGETDIR /hlsl.deadFunctionMissingBody.vert.out || HASERROR=1
85
103
86
104
if [ $HASERROR -eq 0 ]
@@ -94,116 +112,116 @@ fi
94
112
# Testing -S and compound suffixes
95
113
#
96
114
echo Running explicit stage test and compound suffix tests
97
- $EXE -Od -i -S vert nosuffix > $TARGETDIR /nosuffix.out
115
+ run -Od -i -S vert nosuffix > $TARGETDIR /nosuffix.out
98
116
diff -b $BASEDIR /nosuffix.out $TARGETDIR /nosuffix.out || HASERROR=1
99
- $EXE -Od -i compoundsuffix.vert.glsl > $TARGETDIR /compoundsuffix.vert.glsl
117
+ run -Od -i compoundsuffix.vert.glsl > $TARGETDIR /compoundsuffix.vert.glsl
100
118
diff -b $BASEDIR /compoundsuffix.vert.glsl $TARGETDIR /compoundsuffix.vert.glsl || HASERROR=1
101
- $EXE -Od -e main -H compoundsuffix.frag.hlsl > $TARGETDIR /compoundsuffix.frag.hlsl
119
+ run -Od -e main -H compoundsuffix.frag.hlsl > $TARGETDIR /compoundsuffix.frag.hlsl
102
120
diff -b $BASEDIR /compoundsuffix.frag.hlsl $TARGETDIR /compoundsuffix.frag.hlsl || HASERROR=1
103
121
104
122
#
105
123
# Testing --hlsl-offsets
106
124
#
107
125
echo Running hlsl offsets
108
- $EXE -i --hlsl-offsets -H spv.hlslOffsets.vert > $TARGETDIR /spv.hlslOffsets.vert.out
126
+ run -i --hlsl-offsets -H spv.hlslOffsets.vert > $TARGETDIR /spv.hlslOffsets.vert.out
109
127
diff -b $BASEDIR /spv.hlslOffsets.vert.out $TARGETDIR /spv.hlslOffsets.vert.out || HASERROR=1
110
128
111
129
echo Running hlsl offsets
112
- $EXE -i --hlsl-offsets -D -Od -e main -H -Od hlsl.hlslOffset.vert > $TARGETDIR /hlsl.hlslOffset.vert.out
130
+ run -i --hlsl-offsets -D -Od -e main -H -Od hlsl.hlslOffset.vert > $TARGETDIR /hlsl.hlslOffset.vert.out
113
131
diff -b $BASEDIR /hlsl.hlslOffset.vert.out $TARGETDIR /hlsl.hlslOffset.vert.out || HASERROR=1
114
132
115
133
#
116
134
# Testing --resource-set-binding
117
135
#
118
136
echo Configuring HLSL descriptor set and binding number manually
119
- $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
137
+ run -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
120
138
diff -b $BASEDIR /hlsl.multiDescriptorSet.frag.out $TARGETDIR /hlsl.multiDescriptorSet.frag.out || HASERROR=1
121
139
122
- $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
140
+ run -V -D -Od -e main -H -Od hlsl.explicitDescriptorSet.frag --hlsl-iomap --amb --ssb 10 --stb 20 --rsb 4 > $TARGETDIR /hlsl.explicitDescriptorSet.frag.out
123
141
diff -b $BASEDIR /hlsl.explicitDescriptorSet.frag.out $TARGETDIR /hlsl.explicitDescriptorSet.frag.out || HASERROR=1
124
142
125
- $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
143
+ run -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
126
144
diff -b $BASEDIR /hlsl.explicitDescriptorSet-2.frag.out $TARGETDIR /hlsl.explicitDescriptorSet-2.frag.out || HASERROR=1
127
145
128
146
#
129
147
# Testing per-descriptor-set IO map shift
130
148
#
131
149
echo ' Testing per-descriptor-set IO map shift'
132
- $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
150
+ run -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
133
151
diff -b $BASEDIR /hlsl.shift.per-set.frag.out $TARGETDIR /hlsl.shift.per-set.frag.out || HASERROR=1
134
152
135
153
#
136
154
# Testing location error
137
155
#
138
156
echo Testing SPV no location
139
- $EXE -V -C spv.noLocation.vert > $TARGETDIR /spv.noLocation.vert.out
157
+ run -V -C spv.noLocation.vert > $TARGETDIR /spv.noLocation.vert.out
140
158
diff -b $BASEDIR /spv.noLocation.vert.out $TARGETDIR /spv.noLocation.vert.out || HASERROR=1
141
- $EXE -G -H --aml spv.noBuiltInLoc.vert > $TARGETDIR /spv.noBuiltInLoc.vert.out
159
+ run -G -H --aml spv.noBuiltInLoc.vert > $TARGETDIR /spv.noBuiltInLoc.vert.out
142
160
diff -b $BASEDIR /spv.noBuiltInLoc.vert.out $TARGETDIR /spv.noBuiltInLoc.vert.out || HASERROR=1
143
- $EXE -G spv.looseUniformNoLoc.vert > $TARGETDIR /spv.looseUniformNoLoc.vert.out
161
+ run -G spv.looseUniformNoLoc.vert > $TARGETDIR /spv.looseUniformNoLoc.vert.out
144
162
diff -b $BASEDIR /spv.looseUniformNoLoc.vert.out $TARGETDIR /spv.looseUniformNoLoc.vert.out || HASERROR=1
145
163
146
164
#
147
165
# Testing debug information
148
166
#
149
167
echo Testing SPV Debug Information
150
- $EXE -g --relaxed-errors --suppress-warnings --aml --amb --hlsl-offsets --nsf --spirv-val \
168
+ run -g --relaxed-errors --suppress-warnings --aml --amb --hlsl-offsets --nsf --spirv-val \
151
169
-G -H spv.debugInfo.frag --rsb frag 3 > $TARGETDIR /spv.debugInfo.frag.out
152
170
diff -b $BASEDIR /spv.debugInfo.frag.out $TARGETDIR /spv.debugInfo.frag.out || HASERROR=1
153
- $EXE -g -Od --target-env vulkan1.1 --relaxed-errors --suppress-warnings --aml --amb --hlsl-offsets --nsf --spirv-val \
171
+ run -g -Od --target-env vulkan1.1 --relaxed-errors --suppress-warnings --aml --amb --hlsl-offsets --nsf --spirv-val \
154
172
-G -H spv.debugInfo.frag --rsb frag 3 > $TARGETDIR /spv.debugInfo.1.1.frag.out
155
173
diff -b $BASEDIR /spv.debugInfo.1.1.frag.out $TARGETDIR /spv.debugInfo.1.1.frag.out || HASERROR=1
156
- $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 \
174
+ run -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 \
157
175
--sep origMain -H -Od spv.hlslDebugInfo.vert --rsb vert t0 0 0 > $TARGETDIR /spv.hlslDebugInfo.frag.out
158
176
diff -b $BASEDIR /spv.hlslDebugInfo.frag.out $TARGETDIR /spv.hlslDebugInfo.frag.out || HASERROR=1
159
177
160
178
#
161
179
# Testing Includer
162
180
#
163
181
echo Testing Includer
164
- $EXE -D -Od -e main -H -Od ../Test/hlsl.include.vert > $TARGETDIR /hlsl.include.vert.out
182
+ run -D -Od -e main -H -Od ../Test/hlsl.include.vert > $TARGETDIR /hlsl.include.vert.out
165
183
diff -b $BASEDIR /hlsl.include.vert.out $TARGETDIR /hlsl.include.vert.out || HASERROR=1
166
- $EXE -D -Od -e main -H -Od hlsl.includeNegative.vert > $TARGETDIR /hlsl.includeNegative.vert.out
184
+ run -D -Od -e main -H -Od hlsl.includeNegative.vert > $TARGETDIR /hlsl.includeNegative.vert.out
167
185
diff -b $BASEDIR /hlsl.includeNegative.vert.out $TARGETDIR /hlsl.includeNegative.vert.out || HASERROR=1
168
- $EXE -l -i include.vert > $TARGETDIR /include.vert.out
186
+ run -l -i include.vert > $TARGETDIR /include.vert.out
169
187
diff -b $BASEDIR /include.vert.out $TARGETDIR /include.vert.out || HASERROR=1
170
- $EXE -D -Od -e main -H -Od -Iinc1/path1 -Iinc1/path2 hlsl.dashI.vert > $TARGETDIR /hlsl.dashI.vert.out
188
+ run -D -Od -e main -H -Od -Iinc1/path1 -Iinc1/path2 hlsl.dashI.vert > $TARGETDIR /hlsl.dashI.vert.out
171
189
diff -b $BASEDIR /hlsl.dashI.vert.out $TARGETDIR /hlsl.dashI.vert.out || HASERROR=1
172
- $EXE -D -Od -e MainPs -H -Od -g hlsl.pp.line3.frag > $TARGETDIR /hlsl.pp.line3.frag.out
190
+ run -D -Od -e MainPs -H -Od -g hlsl.pp.line3.frag > $TARGETDIR /hlsl.pp.line3.frag.out
173
191
diff -b $BASEDIR /hlsl.pp.line3.frag.out $TARGETDIR /hlsl.pp.line3.frag.out || HASERROR=1
174
192
175
193
#
176
194
# Testing -D and -U
177
195
#
178
196
echo " Testing -D and -U"
179
- $EXE -DUNDEFED -UIN_SHADER -DFOO=200 -i -l --U UNDEFED --define-macro MUL=FOO* 2 glsl.-D-U.frag > $TARGETDIR /glsl.-D-U.frag.out
197
+ run -DUNDEFED -UIN_SHADER -DFOO=200 -i -l --U UNDEFED --define-macro MUL=FOO* 2 glsl.-D-U.frag > $TARGETDIR /glsl.-D-U.frag.out
180
198
diff -b $BASEDIR /glsl.-D-U.frag.out $TARGETDIR /glsl.-D-U.frag.out || HASERROR=1
181
- $EXE -D -Od -e main -V -i -DUNDEFED -UIN_SHADER --D FOO=200 --undef-macro UNDEFED -Od hlsl.-D-U.frag > $TARGETDIR /hlsl.-D-U.frag.out
199
+ run -D -Od -e main -V -i -DUNDEFED -UIN_SHADER --D FOO=200 --undef-macro UNDEFED -Od hlsl.-D-U.frag > $TARGETDIR /hlsl.-D-U.frag.out
182
200
diff -b $BASEDIR /hlsl.-D-U.frag.out $TARGETDIR /hlsl.-D-U.frag.out || HASERROR=1
183
201
184
202
#
185
203
# Test --client and --target-env
186
204
#
187
205
echo " Testing --client and --target-env"
188
- $EXE --client vulkan100 spv.targetVulkan.vert || HASERROR=1
189
- $EXE --client opengl100 spv.targetOpenGL.vert || HASERROR=1
190
- $EXE --target-env vulkan1.0 spv.targetVulkan.vert || HASERROR=1
191
- $EXE --target-env vulkan1.1 spv.targetVulkan.vert || HASERROR=1
192
- $EXE --target-env vulkan1.2 spv.targetVulkan.vert || HASERROR=1
193
- $EXE --target-env opengl spv.targetOpenGL.vert || HASERROR=1
194
- $EXE -V100 spv.targetVulkan.vert || HASERROR=1
195
- $EXE -G100 spv.targetOpenGL.vert || HASERROR=1
196
- $EXE --target-env spirv1.2 -V spv.targetVulkan.vert || HASERROR=1
206
+ run --client vulkan100 spv.targetVulkan.vert || HASERROR=1
207
+ run --client opengl100 spv.targetOpenGL.vert || HASERROR=1
208
+ run --target-env vulkan1.0 spv.targetVulkan.vert || HASERROR=1
209
+ run --target-env vulkan1.1 spv.targetVulkan.vert || HASERROR=1
210
+ run --target-env vulkan1.2 spv.targetVulkan.vert || HASERROR=1
211
+ run --target-env opengl spv.targetOpenGL.vert || HASERROR=1
212
+ run -V100 spv.targetVulkan.vert || HASERROR=1
213
+ run -G100 spv.targetOpenGL.vert || HASERROR=1
214
+ run --target-env spirv1.2 -V spv.targetVulkan.vert || HASERROR=1
197
215
198
216
#
199
217
# Testing GLSL entry point rename
200
218
#
201
219
echo " Testing GLSL entry point rename"
202
- $EXE -H -e foo --source-entrypoint main glsl.entryPointRename.vert > $TARGETDIR /glsl.entryPointRename.vert.out
220
+ run -H -e foo --source-entrypoint main glsl.entryPointRename.vert > $TARGETDIR /glsl.entryPointRename.vert.out
203
221
diff -b $BASEDIR /glsl.entryPointRename.vert.out $TARGETDIR /glsl.entryPointRename.vert.out || HASERROR=1
204
- $EXE -H -e foo --source-entrypoint bar glsl.entryPointRename.vert > $TARGETDIR /glsl.entryPointRename.vert.bad.out
222
+ run -H -e foo --source-entrypoint bar glsl.entryPointRename.vert > $TARGETDIR /glsl.entryPointRename.vert.bad.out
205
223
diff -b $BASEDIR /glsl.entryPointRename.vert.bad.out $TARGETDIR /glsl.entryPointRename.vert.bad.out || HASERROR=1
206
- $EXE -H -e foo --source-entrypoint main glsl.entryPointRename2.vert > $TARGETDIR /glsl.entryPointRename2.vert.out
224
+ run -H -e foo --source-entrypoint main glsl.entryPointRename2.vert > $TARGETDIR /glsl.entryPointRename2.vert.out
207
225
diff -b $BASEDIR /glsl.entryPointRename2.vert.out $TARGETDIR /glsl.entryPointRename2.vert.out || HASERROR=1
208
226
209
227
#
@@ -219,37 +237,37 @@ diff -b $BASEDIR/remap.invalid-spirv-2.out $TARGETDIR/remap.invalid-spirv-2.out
219
237
# Testing position Y inversion
220
238
#
221
239
echo " Testing position Y inversion"
222
- $EXE -H -e main -V -D -Od -H -i --iy hlsl.y-negate-1.vert > $TARGETDIR /hlsl.y-negate-1.vert.out
240
+ run -H -e main -V -D -Od -H -i --iy hlsl.y-negate-1.vert > $TARGETDIR /hlsl.y-negate-1.vert.out
223
241
diff -b $BASEDIR /hlsl.y-negate-1.vert.out $TARGETDIR /hlsl.y-negate-1.vert.out || HASERROR=1
224
- $EXE -H -e main -V -D -Od -H -i --invert-y hlsl.y-negate-2.vert > $TARGETDIR /hlsl.y-negate-2.vert.out
242
+ run -H -e main -V -D -Od -H -i --invert-y hlsl.y-negate-2.vert > $TARGETDIR /hlsl.y-negate-2.vert.out
225
243
diff -b $BASEDIR /hlsl.y-negate-2.vert.out $TARGETDIR /hlsl.y-negate-2.vert.out || HASERROR=1
226
- $EXE -H -e main -V -D -Od -H -i --invert-y hlsl.y-negate-3.vert > $TARGETDIR /hlsl.y-negate-3.vert.out
244
+ run -H -e main -V -D -Od -H -i --invert-y hlsl.y-negate-3.vert > $TARGETDIR /hlsl.y-negate-3.vert.out
227
245
diff -b $BASEDIR /hlsl.y-negate-3.vert.out $TARGETDIR /hlsl.y-negate-3.vert.out || HASERROR=1
228
246
229
247
#
230
248
# Testing hlsl_functionality1
231
249
#
232
250
echo " Testing hlsl_functionality1"
233
- $EXE -H -e main -D -Od -fhlsl_functionality1 hlsl.structbuffer.incdec.frag > \
251
+ run -H -e main -D -Od -fhlsl_functionality1 hlsl.structbuffer.incdec.frag > \
234
252
$TARGETDIR /hlsl.structbuffer.incdec.frag.hlslfun1.out
235
253
diff -b $BASEDIR /hlsl.structbuffer.incdec.frag.hlslfun1.out $TARGETDIR /hlsl.structbuffer.incdec.frag.hlslfun1.out || HASERROR=1
236
- $EXE -H -e main -D -Od -fhlsl_functionality1 hlsl.noSemantic.functionality1.comp > \
254
+ run -H -e main -D -Od -fhlsl_functionality1 hlsl.noSemantic.functionality1.comp > \
237
255
$TARGETDIR /hlsl.noSemantic.functionality1.comp.out
238
256
diff -b $BASEDIR /hlsl.noSemantic.functionality1.comp.out $TARGETDIR /hlsl.noSemantic.functionality1.comp.out || HASERROR=1
239
257
240
258
#
241
259
# Testing HLSL-specific PP feature expansion
242
260
#
243
261
echo " Testing HLSL-specific PP feature expansion"
244
- $EXE -D -E hlsl.pp.expand.frag > $TARGETDIR /hlsl.pp.expand.frag.out 2> $TARGETDIR /hlsl.pp.expand.frag.err
262
+ run -D -E hlsl.pp.expand.frag > $TARGETDIR /hlsl.pp.expand.frag.out 2> $TARGETDIR /hlsl.pp.expand.frag.err
245
263
diff -b $BASEDIR /hlsl.pp.expand.frag.out $TARGETDIR /hlsl.pp.expand.frag.out || HASERROR=1
246
264
diff -b $BASEDIR /hlsl.pp.expand.frag.err $TARGETDIR /hlsl.pp.expand.frag.err || HASERROR=1
247
265
248
266
#
249
267
# Test --nan-clamp
250
268
#
251
269
echo " Testing nan-clamp"
252
- $EXE --nan-clamp -H --aml --amb spv.400.frag > $TARGETDIR /spv.400.frag.nanclamp.out
270
+ run --nan-clamp -H --aml --amb spv.400.frag > $TARGETDIR /spv.400.frag.nanclamp.out
253
271
diff -b $BASEDIR /spv.400.frag.nanclamp.out $TARGETDIR /spv.400.frag.nanclamp.out || HASERROR=1
254
272
255
273
#
0 commit comments