blob: 6126f5194adb8aa4dc727d53f4fe0b03c95bea21 [file] [log] [blame]
Austin Eng1cdea902022-03-24 00:21:55 +00001# Copyright 2022 The Dawn Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Note: This file is intentionally not used by any other BUILD.gn in Dawn.
16# Instead, Chromium depends directly on this file to build the WebGPU CTS.
17# Scripts called from this file assume Dawn is checked out inside Chromium.
18
19# This needs to be copied to the output directory since the CTS tests also
20# serve resources that are copied into it.
21copy("webgpu_cts_resources") {
22 testonly = true
23 sources = [
24 "test_page.html",
25 "test_runner.js",
26 ]
27 outputs = [ "$target_gen_dir/{{source_file_part}}" ]
28}
29
30group("webgpu-cts") {
31 testonly = true
32 data_deps = [
33 ":webgpu_cts_resources",
34 "../third_party/gn/webgpu-cts",
35 ]
36 data = [
Brian Sheedyced4c0d2022-08-11 15:16:38 +000037 "scripts/",
38 "../third_party/webgpu-cts/src/",
Austin Eng1cdea902022-03-24 00:21:55 +000039 "//third_party/node/",
Brian Sheedyced4c0d2022-08-11 15:16:38 +000040
41 "expectations.txt",
Austin Eng1cdea902022-03-24 00:21:55 +000042 "../third_party/webgpu-cts/node.tsconfig.json",
43 "../third_party/webgpu-cts/tsconfig.json",
44 ]
45}