2018-07-31 16:50:03 +00:00
|
|
|
# Copyright 2018 The Dawn Authors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2018-10-31 10:49:21 +00:00
|
|
|
import("//build_overrides/build.gni")
|
2019-02-13 18:42:38 +00:00
|
|
|
import("scripts/dawn_features.gni")
|
|
|
|
import("scripts/dawn_overrides_with_defaults.gni")
|
2018-12-08 10:35:53 +00:00
|
|
|
|
2020-04-10 08:20:10 +00:00
|
|
|
group("all") {
|
|
|
|
testonly = true
|
2020-01-15 13:14:12 +00:00
|
|
|
deps = [
|
2020-04-10 08:20:10 +00:00
|
|
|
"src/fuzzers:dawn_fuzzers",
|
|
|
|
"src/tests:dawn_tests",
|
2020-01-15 13:14:12 +00:00
|
|
|
]
|
2020-04-10 08:20:10 +00:00
|
|
|
if (dawn_standalone) {
|
|
|
|
deps += [ "examples:dawn_samples" ]
|
2020-01-15 13:14:12 +00:00
|
|
|
}
|
2019-08-13 21:45:44 +00:00
|
|
|
}
|
|
|
|
|
2018-08-03 13:57:43 +00:00
|
|
|
###############################################################################
|
2020-04-10 08:20:10 +00:00
|
|
|
# Temporary Dawn end2end test target
|
2018-08-03 13:57:43 +00:00
|
|
|
###############################################################################
|
|
|
|
|
2020-04-10 08:20:10 +00:00
|
|
|
# It is not possible to move a target around with a proxy group without
|
|
|
|
# breaking swarming tests. This is a temporary target that is a duplicate of
|
|
|
|
# //src/tests:dawn_end2end_tests that's used temporarily so that we can land
|
|
|
|
# the split of src/tests/BUILD.gn in a Chromium roll and switch which targets
|
|
|
|
# the swarmed tests use.
|
2019-08-10 03:17:52 +00:00
|
|
|
|
2020-04-10 08:20:10 +00:00
|
|
|
import("//testing/test.gni")
|
2019-08-10 03:17:52 +00:00
|
|
|
|
|
|
|
test("dawn_end2end_tests") {
|
2020-04-10 08:20:10 +00:00
|
|
|
configs += [ "src/common:dawn_internal" ]
|
2019-08-10 03:17:52 +00:00
|
|
|
|
|
|
|
deps = [
|
2020-04-10 08:20:10 +00:00
|
|
|
"src/common",
|
|
|
|
"src/dawn:dawncpp",
|
|
|
|
"src/dawn:libdawn_proc",
|
|
|
|
"src/dawn_native",
|
|
|
|
"src/dawn_wire",
|
|
|
|
"src/tests:dawn_end2end_tests_sources",
|
|
|
|
"src/tests:dawn_white_box_tests_sources",
|
|
|
|
"src/tests:gmock_and_gtest",
|
|
|
|
"src/utils:dawn_utils",
|
2019-08-10 03:17:52 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"src/tests/DawnTest.cpp",
|
|
|
|
"src/tests/DawnTest.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
libs = []
|
2019-03-01 12:01:18 +00:00
|
|
|
|
2018-12-08 10:35:53 +00:00
|
|
|
# When building inside Chromium, use their gtest main function because it is
|
|
|
|
# needed to run in swarming correctly.
|
|
|
|
if (build_with_chromium) {
|
|
|
|
sources += [ "//gpu/dawn_end2end_tests_main.cc" ]
|
|
|
|
} else {
|
|
|
|
sources += [ "src/tests/End2EndTestsMain.cpp" ]
|
|
|
|
}
|
2019-08-13 21:45:44 +00:00
|
|
|
|
|
|
|
if (dawn_enable_opengl) {
|
2020-04-10 08:20:10 +00:00
|
|
|
deps += [ "src/utils:dawn_glfw" ]
|
2019-08-13 21:45:44 +00:00
|
|
|
}
|
2020-02-20 19:19:13 +00:00
|
|
|
|
|
|
|
if (is_chromeos) {
|
|
|
|
libs += [ "gbm" ]
|
|
|
|
}
|
2018-07-31 16:50:03 +00:00
|
|
|
}
|
2018-08-13 06:23:27 +00:00
|
|
|
|
2020-04-07 07:29:45 +00:00
|
|
|
###############################################################################
|
|
|
|
# Temporary groups
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
# Temporary groups to make a 5-way patch to fix crbug.com/913171
|
|
|
|
group("dawn_unittests_temp_group") {
|
|
|
|
testonly = true
|
2020-04-07 16:16:37 +00:00
|
|
|
public_deps = [
|
2020-04-10 08:20:10 +00:00
|
|
|
"src/tests:dawn_unittests",
|
2020-04-07 07:29:45 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("dawn_end2end_tests_temp_group") {
|
|
|
|
testonly = true
|
2020-04-07 16:16:37 +00:00
|
|
|
public_deps = [
|
2020-04-07 07:29:45 +00:00
|
|
|
":dawn_end2end_tests",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("dawn_perf_tests_temp_group") {
|
|
|
|
testonly = true
|
2020-04-07 16:16:37 +00:00
|
|
|
public_deps = [
|
2020-04-10 08:20:10 +00:00
|
|
|
"src/tests:dawn_perf_tests",
|
2020-04-07 07:29:45 +00:00
|
|
|
]
|
|
|
|
data_deps = [
|
2020-04-10 08:20:10 +00:00
|
|
|
"src/tests:dawn_perf_tests",
|
2020-04-07 07:29:45 +00:00
|
|
|
]
|
|
|
|
}
|