blob: fa7fe367fd6c15c8e17f160a17509d4e5df546d9 [file] [log] [blame]
John Stilesd836f842020-09-14 10:21:44 -04001# Copyright 2020 Google LLC
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Things are easiest for everyone if these source paths are absolute.
7_tests = get_path_info("../tests", "abspath")
8
John Stiles0ed9f312020-09-16 17:46:37 -04009# Tests in sksl_fp_tests_sources will be compiled with --settings on.
John Stilesea9e7ca2020-09-14 16:46:40 -040010sksl_fp_tests_sources = [
John Stiles6dc52652020-09-16 18:40:38 -040011 "$_tests/sksl/errors/GrBadIn.fp",
John Stilesea9e7ca2020-09-14 16:46:40 -040012 "$_tests/sksl/errors/GrBothExplicitReturnAndSkOutColor.fp",
John Stiles6dc52652020-09-16 18:40:38 -040013 "$_tests/sksl/errors/GrCannotReturnWithSkOutColor.fp",
14 "$_tests/sksl/errors/GrNoFragmentProcessorConstruction.fp",
15 "$_tests/sksl/errors/GrNoFragmentProcessorExpressions.fp",
16 "$_tests/sksl/errors/GrNoFragmentProcessorLocals.fp",
17 "$_tests/sksl/errors/GrNoFragmentProcessorParams.fp",
18 "$_tests/sksl/errors/GrNoFragmentProcessorReturn.fp",
19 "$_tests/sksl/fp/GrConditionalInUniform.fp",
20 "$_tests/sksl/fp/GrFunction.fp",
John Stilesea9e7ca2020-09-14 16:46:40 -040021 "$_tests/sksl/fp/GrHelloWorld.fp",
John Stiles6dc52652020-09-16 18:40:38 -040022 "$_tests/sksl/fp/GrInUniform.fp",
23 "$_tests/sksl/fp/GrInUniformCType.fp",
24 "$_tests/sksl/fp/GrInlinedFunction.fp",
25 "$_tests/sksl/fp/GrKeyIn.fp",
26 "$_tests/sksl/fp/GrNestedChildProcessors.fp",
27 "$_tests/sksl/fp/GrNonInlinedInUniform.fp",
28 "$_tests/sksl/fp/GrNullableChildProcessor.fp",
29 "$_tests/sksl/fp/GrSectionClass.fp",
30 "$_tests/sksl/fp/GrSectionConstructor.fp",
31 "$_tests/sksl/fp/GrSectionConstructorParams.fp",
32 "$_tests/sksl/fp/GrSectionCpp.fp",
33 "$_tests/sksl/fp/GrSectionDumpInfo.fp",
34 "$_tests/sksl/fp/GrSectionEmitCode.fp",
35 "$_tests/sksl/fp/GrSectionFields.fp",
36 "$_tests/sksl/fp/GrSectionHeader.fp",
37 "$_tests/sksl/fp/GrSectionInitializers.fp",
38 "$_tests/sksl/fp/GrSectionMake.fp",
39 "$_tests/sksl/fp/GrSectionSetData.fp",
40 "$_tests/sksl/fp/GrSectionTest.fp",
41 "$_tests/sksl/fp/GrTrackedInUniform.fp",
42 "$_tests/sksl/fp/GrUniform.fp",
43 "$_tests/sksl/fp/GrUseExplicitReturn.fp",
John Stilesea9e7ca2020-09-14 16:46:40 -040044]
John Stilesd836f842020-09-14 10:21:44 -040045
John Stiles0ed9f312020-09-16 17:46:37 -040046# Tests in sksl_glsl_tests_sources will be compiled with --settings on.
John Stilesea9e7ca2020-09-14 16:46:40 -040047sksl_glsl_tests_sources = [
John Stiles6798e5d2020-09-17 18:20:26 -040048 "$_tests/sksl/errors/ArgumentCountMismatch.sksl",
49 "$_tests/sksl/errors/ArgumentMismatch.sksl",
50 "$_tests/sksl/errors/ArgumentModifiers.sksl",
51 "$_tests/sksl/errors/AssignmentTypeMismatch.sksl",
52 "$_tests/sksl/errors/BadCaps.sksl",
53 "$_tests/sksl/errors/BadIndex.sksl",
54 "$_tests/sksl/errors/BadModifiers.sksl",
55 "$_tests/sksl/errors/BinaryTypeCoercion.sksl",
56 "$_tests/sksl/errors/BinaryTypeMismatch.sksl",
Brian Osmanbf2163f2020-09-16 16:21:40 -040057 "$_tests/sksl/errors/BitShiftFloat.sksl",
58 "$_tests/sksl/errors/BitShiftFloatMatrix.sksl",
59 "$_tests/sksl/errors/BitShiftFloatVector.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -040060 "$_tests/sksl/errors/BreakOutsideLoop.sksl",
61 "$_tests/sksl/errors/CallNonFunction.sksl",
62 "$_tests/sksl/errors/CanExitWithoutReturningValue.sksl",
63 "$_tests/sksl/errors/ConstructorArgumentCount.sksl",
64 "$_tests/sksl/errors/ConstructorTypeMismatch.sksl",
65 "$_tests/sksl/errors/ContinueOutsideLoop.sksl",
66 "$_tests/sksl/errors/DivideByZero.sksl",
67 "$_tests/sksl/errors/DoTypeMismatch.sksl",
68 "$_tests/sksl/errors/DuplicateFunction.sksl",
69 "$_tests/sksl/errors/DuplicateOutput.sksl",
70 "$_tests/sksl/errors/DuplicateSymbol.sksl",
71 "$_tests/sksl/errors/EnumValueMustBeConstInt.sksl",
72 "$_tests/sksl/errors/ErrorsInDeadCode.sksl",
73 "$_tests/sksl/errors/FieldAfterRuntimeArray.sksl",
74 "$_tests/sksl/errors/ForTypeMismatch.sksl",
75 "$_tests/sksl/errors/GenericArgumentMismatch.sksl",
76 "$_tests/sksl/errors/IfTypeMismatch.sksl",
77 "$_tests/sksl/errors/InterfaceBlockScope.sksl",
78 "$_tests/sksl/errors/InterfaceBlockStorageModifiers.sksl",
79 "$_tests/sksl/errors/InvalidAssignment.sksl",
80 "$_tests/sksl/errors/InvalidUnary.sksl",
John Stilesea9e7ca2020-09-14 16:46:40 -040081 "$_tests/sksl/errors/OpenArray.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -040082 "$_tests/sksl/errors/ReturnDifferentType.sksl",
83 "$_tests/sksl/errors/ReturnFromVoid.sksl",
84 "$_tests/sksl/errors/ReturnMissingValue.sksl",
85 "$_tests/sksl/errors/ReturnTypeMismatch.sksl",
86 "$_tests/sksl/errors/SpuriousFloat.sksl",
87 "$_tests/sksl/errors/StaticIfTest.sksl",
88 "$_tests/sksl/errors/StaticSwitchConditionalBreak.sksl",
89 "$_tests/sksl/errors/StaticSwitchTest.sksl",
90 "$_tests/sksl/errors/SwitchDuplicateCase.sksl",
91 "$_tests/sksl/errors/SwitchTypes.sksl",
92 "$_tests/sksl/errors/SwizzleConstantOutput.sksl",
93 "$_tests/sksl/errors/SwizzleDuplicateOutput.sksl",
94 "$_tests/sksl/errors/SwizzleMatrix.sksl",
95 "$_tests/sksl/errors/SwizzleOnlyLiterals.sksl",
96 "$_tests/sksl/errors/SwizzleOutOfBounds.sksl",
97 "$_tests/sksl/errors/SwizzleTooManyComponents.sksl",
98 "$_tests/sksl/errors/TernaryMismatch.sksl",
99 "$_tests/sksl/errors/UndefinedFunction.sksl",
John Stilesea9e7ca2020-09-14 16:46:40 -0400100 "$_tests/sksl/errors/UndefinedSymbol.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400101 "$_tests/sksl/errors/Unreachable.sksl",
102 "$_tests/sksl/errors/UnsupportedGLSLIdentifiers.sksl",
103 "$_tests/sksl/errors/UseWithoutInitializeArrayIndex.sksl",
104 "$_tests/sksl/errors/UseWithoutInitializeBinaryExpr.sksl",
105 "$_tests/sksl/errors/UseWithoutInitializeDeadIf.sksl",
106 "$_tests/sksl/errors/UseWithoutInitializeDeadSwitch.sksl",
107 "$_tests/sksl/errors/UseWithoutInitializeReturnValue.sksl",
108 "$_tests/sksl/errors/UseWithoutInitializeVarDecl.sksl",
109 "$_tests/sksl/errors/UsingInvalidValue.sksl",
110 "$_tests/sksl/errors/WhileTypeMismatch.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400111 "$_tests/sksl/glsl/ArrayConstructors.sksl",
112 "$_tests/sksl/glsl/ArrayIndexTypes.sksl",
113 "$_tests/sksl/glsl/ArrayTypes.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400114 "$_tests/sksl/glsl/AssignmentTypeMatch.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400115 "$_tests/sksl/glsl/BoolFolding.sksl",
John Stiles90805402020-09-16 15:32:21 -0400116 "$_tests/sksl/glsl/Caps.sksl",
117 "$_tests/sksl/glsl/CastsRoundTowardZero.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400118 "$_tests/sksl/glsl/ClipDistanceFragment.sksl",
119 "$_tests/sksl/glsl/ClipDistanceVertex.vert",
120 "$_tests/sksl/glsl/Clockwise.sksl",
121 "$_tests/sksl/glsl/ComplexDelete.sksl",
122 "$_tests/sksl/glsl/ConstArray.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400123 "$_tests/sksl/glsl/ConstVariableComparison.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400124 "$_tests/sksl/glsl/ConstantIf.sksl",
125 "$_tests/sksl/glsl/Control.sksl",
John Stiles64fc15a2020-09-18 16:16:14 -0400126 "$_tests/sksl/glsl/DeadDoWhileLoop.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400127 "$_tests/sksl/glsl/DeadLoopVariable.sksl",
128 "$_tests/sksl/glsl/DependentInitializers.sksl",
John Stilesc8846312020-09-18 12:03:42 -0400129 "$_tests/sksl/glsl/DerivativesUnused.sksl",
John Stiles90805402020-09-16 15:32:21 -0400130 "$_tests/sksl/glsl/Discard.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400131 "$_tests/sksl/glsl/FloatFolding.sksl",
John Stiles72664be2020-09-16 17:43:11 -0400132 "$_tests/sksl/glsl/ForceHighPrecision.sksl",
John Stiles90805402020-09-16 15:32:21 -0400133 "$_tests/sksl/glsl/FrExp.sksl",
John Stilesbe0a9ca2020-09-18 14:42:58 -0400134 "$_tests/sksl/glsl/FragCoordsFlipY.sksl",
135 "$_tests/sksl/glsl/FragCoordsNew.sksl",
136 "$_tests/sksl/glsl/FragCoordsOld.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400137 "$_tests/sksl/glsl/FunctionArgumentMatch.sksl",
138 "$_tests/sksl/glsl/FunctionPrototype.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400139 "$_tests/sksl/glsl/Functions.sksl",
John Stiles87e6ccd2020-09-18 12:04:04 -0400140 "$_tests/sksl/glsl/Geometry.geom",
141 "$_tests/sksl/glsl/GeometryExtension.geom",
142 "$_tests/sksl/glsl/GeometryGSInvocations.geom",
143 "$_tests/sksl/glsl/GeometryNoGSInvocations.geom",
John Stiles90805402020-09-16 15:32:21 -0400144 "$_tests/sksl/glsl/Height.sksl",
John Stilesea9e7ca2020-09-14 16:46:40 -0400145 "$_tests/sksl/glsl/HelloWorld.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400146 "$_tests/sksl/glsl/Hex.sksl",
John Stilesbe0a9ca2020-09-18 14:42:58 -0400147 "$_tests/sksl/glsl/IncompleteShortIntPrecision.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400148 "$_tests/sksl/glsl/InstanceID.vert",
149 "$_tests/sksl/glsl/IntFolding.sksl",
150 "$_tests/sksl/glsl/InterfaceBlockAnonymous.sksl",
151 "$_tests/sksl/glsl/InterfaceBlockArray.sksl",
152 "$_tests/sksl/glsl/InterfaceBlockNamed.sksl",
153 "$_tests/sksl/glsl/Matrices.sksl",
154 "$_tests/sksl/glsl/MatrixFolding.sksl",
John Stiles90805402020-09-16 15:32:21 -0400155 "$_tests/sksl/glsl/ModifiersDeclaration.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400156 "$_tests/sksl/glsl/MultipleAssignments.sksl",
John Stiles90805402020-09-16 15:32:21 -0400157 "$_tests/sksl/glsl/NegatedVectorLiteral.sksl",
John Stilesbe0a9ca2020-09-18 14:42:58 -0400158 "$_tests/sksl/glsl/NoFragCoordsPos.vert",
159 "$_tests/sksl/glsl/NoFragCoordsPosRT.vert",
John Stiles87e6ccd2020-09-18 12:04:04 -0400160 "$_tests/sksl/glsl/NormalizationGeo.geom",
161 "$_tests/sksl/glsl/NormalizationVert.vert",
John Stiles90805402020-09-16 15:32:21 -0400162 "$_tests/sksl/glsl/NumberConversions.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400163 "$_tests/sksl/glsl/Offset.sksl",
164 "$_tests/sksl/glsl/Operators.sksl",
John Stiles90805402020-09-16 15:32:21 -0400165 "$_tests/sksl/glsl/RectangleTexture.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400166 "$_tests/sksl/glsl/ResizeMatrix.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400167 "$_tests/sksl/glsl/SampleMask.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400168 "$_tests/sksl/glsl/ScopedSymbol.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400169 "$_tests/sksl/glsl/ShortCircuitBoolFolding.sksl",
John Stilesbe0a9ca2020-09-18 14:42:58 -0400170 "$_tests/sksl/glsl/ShortIntPrecision.sksl",
John Stiles90805402020-09-16 15:32:21 -0400171 "$_tests/sksl/glsl/StackingVectorCasts.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400172 "$_tests/sksl/glsl/StaticIf.sksl",
173 "$_tests/sksl/glsl/StaticSwitch.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400174 "$_tests/sksl/glsl/StaticSwitchWithBreak.sksl",
175 "$_tests/sksl/glsl/StaticSwitchWithBreakInsideBlock.sksl",
176 "$_tests/sksl/glsl/StaticSwitchWithConditionalBreak.sksl",
177 "$_tests/sksl/glsl/StaticSwitchWithConditionalBreakInsideBlock.sksl",
178 "$_tests/sksl/glsl/StaticSwitchWithFallthroughA.sksl",
179 "$_tests/sksl/glsl/StaticSwitchWithFallthroughB.sksl",
180 "$_tests/sksl/glsl/StaticSwitchWithStaticConditionalBreak.sksl",
181 "$_tests/sksl/glsl/StaticSwitchWithStaticConditionalBreakInsideBlock.sksl",
182 "$_tests/sksl/glsl/Structs.sksl",
183 "$_tests/sksl/glsl/Switch.sksl",
184 "$_tests/sksl/glsl/SwitchContainingDeadCode.sksl",
185 "$_tests/sksl/glsl/SwitchWithFallthrough.sksl",
John Stiles7f6378f2020-09-16 13:40:35 -0400186 "$_tests/sksl/glsl/SwizzleConstants.sksl",
John Stiles90805402020-09-16 15:32:21 -0400187 "$_tests/sksl/glsl/SwizzleLTRB.sksl",
John Stiles7f6378f2020-09-16 13:40:35 -0400188 "$_tests/sksl/glsl/SwizzleOpt.sksl",
189 "$_tests/sksl/glsl/SwizzleScalar.sksl",
John Stiles90805402020-09-16 15:32:21 -0400190 "$_tests/sksl/glsl/TernaryAsLValueEntirelyFoldable.sksl",
191 "$_tests/sksl/glsl/TernaryAsLValueFoldableTest.sksl",
192 "$_tests/sksl/glsl/TernaryAsLValueUnfoldable.sksl",
John Stiles72664be2020-09-16 17:43:11 -0400193 "$_tests/sksl/glsl/Texture.sksl",
194 "$_tests/sksl/glsl/TextureSharpen.sksl",
195 "$_tests/sksl/glsl/TextureSharpenVersion110.sksl",
196 "$_tests/sksl/glsl/TextureVersion110.sksl",
John Stiles6798e5d2020-09-17 18:20:26 -0400197 "$_tests/sksl/glsl/UnaryPositiveNegative.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400198 "$_tests/sksl/glsl/UnusedVariables.sksl",
John Stiles72664be2020-09-16 17:43:11 -0400199 "$_tests/sksl/glsl/UsesPrecisionModifiers.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400200 "$_tests/sksl/glsl/VectorConstructors.sksl",
201 "$_tests/sksl/glsl/VectorFolding.sksl",
John Stiles72664be2020-09-16 17:43:11 -0400202 "$_tests/sksl/glsl/Version110.sksl",
203 "$_tests/sksl/glsl/Version450Core.sksl",
John Stilesb0245492020-09-14 17:30:13 -0400204 "$_tests/sksl/glsl/VertexID.vert",
John Stiles90805402020-09-16 15:32:21 -0400205 "$_tests/sksl/glsl/Width.sksl",
John Stilesf2cdf592020-09-15 10:10:43 -0400206 "$_tests/sksl/inliner/DoWhileBodyMustBeInlinedIntoAScope.sksl",
207 "$_tests/sksl/inliner/DoWhileTestCannotBeInlined.sksl",
208 "$_tests/sksl/inliner/ForBodyMustBeInlinedIntoAScope.sksl",
209 "$_tests/sksl/inliner/ForInitializerExpressionsCanBeInlined.sksl",
210 "$_tests/sksl/inliner/ForWithReturnInsideCannotBeInlined.sksl",
211 "$_tests/sksl/inliner/ForWithoutReturnInsideCanBeInlined.sksl",
212 "$_tests/sksl/inliner/IfBodyMustBeInlinedIntoAScope.sksl",
213 "$_tests/sksl/inliner/IfElseBodyMustBeInlinedIntoAScope.sksl",
214 "$_tests/sksl/inliner/IfElseChainWithReturnsCanBeInlined.sksl",
215 "$_tests/sksl/inliner/IfTestCanBeInlined.sksl",
216 "$_tests/sksl/inliner/IfWithReturnsCanBeInlined.sksl",
217 "$_tests/sksl/inliner/InlineKeywordOverridesThreshold.sksl",
218 "$_tests/sksl/inliner/InlineThreshold.sksl",
219 "$_tests/sksl/inliner/InlineWithInoutArgument.sksl",
220 "$_tests/sksl/inliner/InlineWithModifiedArgument.sksl",
221 "$_tests/sksl/inliner/InlineWithNestedBigCalls.sksl",
222 "$_tests/sksl/inliner/InlineWithNestedCalls.sksl",
223 "$_tests/sksl/inliner/InlineWithUnmodifiedArgument.sksl",
224 "$_tests/sksl/inliner/InlineWithUnnecessaryBlocks.sksl",
John Stiles8f026252020-09-14 18:23:54 -0400225 "$_tests/sksl/inliner/InlinerAvoidsVariableNameOverlap.sksl",
John Stilesf2cdf592020-09-15 10:10:43 -0400226 "$_tests/sksl/inliner/InlinerManglesNames.sksl",
John Stilesf2cdf592020-09-15 10:10:43 -0400227 "$_tests/sksl/inliner/ShortCircuitEvaluationsCannotInlineRightHandSide.sksl",
228 "$_tests/sksl/inliner/SwitchWithCastCanBeInlined.sksl",
229 "$_tests/sksl/inliner/SwitchWithReturnInsideCannotBeInlined.sksl",
230 "$_tests/sksl/inliner/SwitchWithoutReturnInsideCanBeInlined.sksl",
231 "$_tests/sksl/inliner/TernaryResultsCannotBeInlined.sksl",
232 "$_tests/sksl/inliner/TernaryTestCanBeInlined.sksl",
233 "$_tests/sksl/inliner/WhileBodyMustBeInlinedIntoAScope.sksl",
234 "$_tests/sksl/inliner/WhileTestCannotBeInlined.sksl",
John Stilesea9e7ca2020-09-14 16:46:40 -0400235]
John Stiles0ed9f312020-09-16 17:46:37 -0400236
237# Tests in sksl_glsl_settings_tests_sources will be compiled twice, once with --settings and once
238# using --nosettings. In the latter mode, DefaultSettings is appended to the output filename.
239sksl_glsl_settings_tests_sources = [
John Stilesc8846312020-09-18 12:03:42 -0400240 "$_tests/sksl/glsl/Derivatives.sksl",
241 "$_tests/sksl/glsl/DerivativesFlipY.sksl",
John Stiles0ed9f312020-09-16 17:46:37 -0400242 "$_tests/sksl/glsl/TypePrecision.sksl",
John Stiles910845f2020-09-18 15:41:07 -0400243 "$_tests/sksl/inliner/InlinerCanBeDisabled.sksl",
John Stilesca4d0742020-09-18 15:41:31 -0400244 "$_tests/sksl/inliner/InlinerWrapsEarlyReturnsWithDoWhileBlock.sksl",
John Stiles0ed9f312020-09-16 17:46:37 -0400245 "$_tests/sksl/workarounds/AbsInt.sksl",
246 "$_tests/sksl/workarounds/FractNegative.sksl",
John Stilesbe0a9ca2020-09-18 14:42:58 -0400247 "$_tests/sksl/workarounds/FragCoords.sksl",
John Stiles0ed9f312020-09-16 17:46:37 -0400248 "$_tests/sksl/workarounds/LoopCondition.sksl",
249 "$_tests/sksl/workarounds/MinAndAbsTogether.sksl",
250 "$_tests/sksl/workarounds/NegatedAtan.sksl",
251 "$_tests/sksl/workarounds/PowWithConstantExponent.sksl",
John Stilesbe0a9ca2020-09-18 14:42:58 -0400252 "$_tests/sksl/workarounds/RewriteDoWhileLoops.sksl",
John Stiles0ed9f312020-09-16 17:46:37 -0400253 "$_tests/sksl/workarounds/TernaryShortCircuit.sksl",
254]