aboutsummaryrefslogtreecommitdiff
path: root/bazel/exporter_tool
diff options
context:
space:
mode:
authorJohn Stiles <johnstiles@google.com>2023-09-22 12:48:24 -0400
committerSkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com>2023-09-22 17:30:14 +0000
commitf9c6cad24edee0118e8fff18bc753df706b79333 (patch)
treef2f246b31d3929bbadf9847c9449a2ec8161d319 /bazel/exporter_tool
parent8a1e6e5844d75a7776c6575d2cd85607b548384d (diff)
downloadskia-f9c6cad24edee0118e8fff18bc753df706b79333.tar.gz
Create error tests to verify existing mesh-program behavior.
The existing tests in MeshTest were fairly binary, only testing that the program does or does not compile. These tests let us verify that the compiler is actually rejecting the programs in the way that we expect. The tests chosen here are based on the sections of code that I could find in SkSL which specifically checked for ProgramKinds of kMesh(Fragment|Vertex). Bug: b/40045302 Change-Id: I6565d9f7f24ccd0fef0909965d807fa5e636167d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/758599 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
Diffstat (limited to 'bazel/exporter_tool')
-rw-r--r--bazel/exporter_tool/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bazel/exporter_tool/main.go b/bazel/exporter_tool/main.go
index 705c9025a5..92347b3191 100644
--- a/bazel/exporter_tool/main.go
+++ b/bazel/exporter_tool/main.go
@@ -206,6 +206,7 @@ var gniExportDescs = []exporter.GNIExportDesc{
{Var: "sksl_error_tests", Rules: []string{"//resources/sksl:sksl_error_tests"}},
{Var: "sksl_glsl_tests", Rules: []string{"//resources/sksl:sksl_glsl_tests"}},
{Var: "sksl_mesh_tests", Rules: []string{"//resources/sksl:sksl_mesh_tests"}},
+ {Var: "sksl_mesh_error_tests", Rules: []string{"//resources/sksl:sksl_mesh_error_tests"}},
{Var: "sksl_metal_tests", Rules: []string{"//resources/sksl:sksl_metal_tests"}},
{Var: "sksl_spirv_tests", Rules: []string{"//resources/sksl:sksl_spirv_tests"}},
{Var: "sksl_wgsl_tests", Rules: []string{"//resources/sksl:sksl_wgsl_tests"}},