Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
full.py
Go to the documentation of this file.
1# Copyright 2017 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5PYTHON_VERSION_COMPATIBILITY = 'PY3'
6
7DEPS = [
8 'build',
9 'recipe_engine/path',
10 'recipe_engine/platform',
11 'recipe_engine/properties',
12 'recipe_engine/raw_io',
13 'run',
14 'vars',
15]
16
17
18def RunSteps(api):
19 api.vars.setup()
20 checkout_root = api.vars.cache_dir.join('work')
21 out_dir = checkout_root.join(
22 'skia', 'out', api.vars.builder_name, api.vars.configuration)
23 api.build(checkout_root=checkout_root, out_dir=out_dir)
24 dst = api.vars.swarming_out_dir.join('out', api.vars.configuration)
25 api.build.copy_build_products(out_dir=out_dir, dst=dst)
26 api.run.check_failure()
27
28
29TEST_BUILDERS = [
30 'Build-Debian10-Clang-arm-Release-Android_API26',
31 'Build-Debian10-Clang-arm-Release-Android_ASAN',
32 'Build-Debian10-Clang-arm-OptimizeForSize-Android_NoPatch',
33 'Build-Debian10-Clang-arm-Release-Chromebook_GLES',
34 'Build-Debian10-Clang-arm64-Debug-Android_FrameworkWorkarounds',
35 'Build-Debian10-Clang-arm64-Debug-Android_Graphite_Native_Vulkan',
36 'Build-Debian10-Clang-arm64-Debug-Android_HWASAN',
37 'Build-Debian10-Clang-arm64-Release-Android_Graphite_Dawn_Vulkan',
38 'Build-Debian10-Clang-arm64-Release-Android_Wuffs',
39 'Build-Debian10-Clang-x86_64-Debug-ASAN_Graphite_Native_Vulkan',
40 'Build-Debian10-Clang-x86_64-Debug-AVIF',
41 'Build-Debian10-Clang-x86_64-Debug-Chromebook_GLES',
42 'Build-Debian10-Clang-x86_64-Debug-Coverage',
43 'Build-Debian10-Clang-x86_64-Debug-Fontations',
44 'Build-Debian10-Clang-x86_64-Debug-FreeType',
45 'Build-Debian10-Clang-x86_64-Debug-MSAN',
46 'Build-Debian10-Clang-x86_64-Debug-SK_CPU_LIMIT_SSE41',
47 'Build-Debian10-Clang-x86_64-Debug-SafeStack',
48 'Build-Debian10-Clang-x86_64-Debug-SwiftShader_Graphite',
49 'Build-Debian10-Clang-x86_64-Debug-SwiftShader_MSAN',
50 'Build-Debian10-Clang-x86_64-Debug-TSAN',
51 'Build-Debian10-Clang-x86_64-Debug-Tidy',
52 'Build-Debian10-Clang-x86_64-Debug-Vulkan_TSAN',
53 'Build-Debian10-Clang-x86_64-Debug-Wuffs',
54 'Build-Debian10-Clang-x86_64-OptimizeForSize',
55 'Build-Debian10-Clang-x86_64-Release-ANGLE',
56 'Build-Debian10-Clang-x86_64-Release-ASAN',
57 'Build-Debian10-Clang-x86_64-Release-AVIF',
58 'Build-Debian10-Clang-x86_64-Release-CMake',
59 'Build-Debian10-Clang-x86_64-Release-Fast',
60 'Build-Debian10-Clang-x86_64-Release-NoDEPS',
61 'Build-Debian10-Clang-x86_64-Release-Static',
62 'Build-Debian10-Clang-x86_64-Release-SwiftShader',
63 'Build-Debian10-Clang-x86_64-Release-Vulkan',
64 'Build-Debian10-EMCC-asmjs-Debug-PathKit',
65 'Build-Debian10-EMCC-asmjs-Release-PathKit',
66 'Build-Debian10-EMCC-wasm-Debug-CanvasKit',
67 'Build-Debian10-EMCC-wasm-Debug-PathKit',
68 'Build-Debian10-EMCC-wasm-Release-CanvasKit_CPU',
69 'Build-Debian10-EMCC-wasm-Release-CanvasKit_WebGPU',
70 'Build-Debian10-EMCC-wasm-Release-PathKit',
71 'Build-Debian11-GCC-x86-Debug-Docker',
72 'Build-Debian11-GCC-x86_64-Debug-Docker',
73 'Build-Debian11-GCC-x86_64-Release-NoGPU_Docker',
74 'Build-Debian11-GCC-x86_64-Release-Shared_Docker',
75 'Build-Mac-Clang-arm64-Debug-Android_Vulkan',
76 'Build-Mac-Clang-arm64-Debug-iOS',
77 'Build-Mac-Clang-arm64-Debug-Graphite_Dawn_Metal',
78 'Build-Mac-Clang-arm64-Debug-Graphite_Dawn_Metal_NoGpu',
79 'Build-Mac-Clang-arm64-Debug-Graphite_Dawn_Metal_NoPrecompile',
80 'Build-Mac-Clang-arm64-Debug-Graphite_Native_Metal',
81 'Build-Mac-Clang-arm64-Debug-Graphite_Native_Metal_NoGpu',
82 'Build-Mac-Clang-arm64-Debug-Graphite_Native_Metal_NoPrecompile',
83 'Build-Mac-Clang-arm64-Release-Graphite_Native_Metal',
84 'Build-Mac-Clang-arm64-Release-Graphite_Native_Dawn_Metal',
85 'Build-Mac-Clang-x86_64-Release-Graphite_Native_Metal_Vello',
86 'Build-Mac-Xcode11.4.1-arm64-Debug-iOS',
87 'Build-Mac-Clang-x86_64-Debug-ASAN',
88 'Build-Mac-Clang-x86_64-Debug-Metal',
89 'Build-Win-Clang-arm64-Release-Android',
90 'Build-Win-Clang-x86-Debug-Exceptions',
91 'Build-Win-Clang-x86_64-Debug-ANGLE',
92 'Build-Win-Clang-x86_64-Release-Graphite_Native_Vulkan',
93 'Build-Win-Clang-x86_64-Release-Direct3D',
94 'Build-Win-Clang-x86_64-Release-Shared',
95 'Build-Win-Clang-x86_64-Release-Vulkan',
96 'Build-Win-MSVC-x86_64-Release-Graphite_Dawn_D3D11',
97 'Build-Win-MSVC-x86_64-Release-Graphite_Dawn_D3D12',
98 'Build-Debian10-Clang-x86_64-Release-SK_USE_PADDED_BLUR_UPSCALE',
99]
100
101# Default properties used for TEST_BUILDERS.
102defaultProps = lambda buildername: dict(
103 buildername=buildername,
104 repository='https://skia.googlesource.com/skia.git',
105 revision='abc123',
106 path_config='kitchen',
107 patch_set=2,
108 swarm_out_dir='[SWARM_OUT_DIR]'
109)
110
111def GenTests(api):
112 for buildername in TEST_BUILDERS:
113 test = (
114 api.test(buildername) +
115 api.properties(**defaultProps(buildername))
116 )
117 if 'Win' in buildername:
118 test += api.platform('win', 64)
119 yield test
120
121 yield (
122 api.test('unknown-docker-image') +
123 api.properties(**defaultProps('Build-Unix-GCC-x86_64-Release-Docker')) +
124 api.expect_exception('Exception')
125 )
RunSteps(api)
Definition full.py:18
GenTests(api)
Definition full.py:111
dict defaultProps
Definition full.py:102