Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions | Variables
full Namespace Reference

Functions

 RunSteps (api)
 
 GenTests (api)
 
 test_exceptions (api)
 
 myfunc (api, i)
 

Variables

str PYTHON_VERSION_COMPATIBILITY = 'PY3'
 
list DEPS
 
list TEST_BUILDERS
 
dict defaultProps
 

Function Documentation

◆ GenTests()

full.GenTests (   api)

Definition at line 111 of file full.py.

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 )

◆ myfunc()

full.myfunc (   api,
  i 
)

Definition at line 18 of file full.py.

18def myfunc(api, i):
19 api.run(api.step, 'run %d' % i, cmd=['echo', str(i)])
20
21

◆ RunSteps()

full.RunSteps (   api)

Definition at line 18 of file full.py.

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

◆ test_exceptions()

full.test_exceptions (   api)

Definition at line 17 of file full.py.

17def test_exceptions(api):
18 try:
19 api.flavor.copy_directory_contents_to_device('src', 'dst')
20 except ValueError:
21 pass
22 try:
23 api.flavor.copy_directory_contents_to_host('src', 'dst')
24 except ValueError:
25 pass
26 try:
27 api.flavor.copy_file_to_device('src', 'dst')
28 except ValueError:
29 pass
30
31

Variable Documentation

◆ defaultProps

dict full.defaultProps
Initial value:
1= lambda buildername(
2 buildername=buildername,
3 repository='https://skia.googlesource.com/skia.git',
4 revision='abc123',
5 path_config='kitchen',
6 patch_set=2,
7 swarm_out_dir='[SWARM_OUT_DIR]'
8)

Definition at line 102 of file full.py.

◆ DEPS

list full.DEPS
Initial value:
1= [
2 'build',
3 'recipe_engine/path',
4 'recipe_engine/platform',
5 'recipe_engine/properties',
6 'recipe_engine/raw_io',
7 'run',
8 'vars',
9]

Definition at line 7 of file full.py.

◆ PYTHON_VERSION_COMPATIBILITY

str full.PYTHON_VERSION_COMPATIBILITY = 'PY3'

Definition at line 5 of file full.py.

◆ TEST_BUILDERS

list full.TEST_BUILDERS

Definition at line 29 of file full.py.