mirrored from https://chromium.googlesource.com/infra/luci/recipes-py
-
Notifications
You must be signed in to change notification settings - Fork 17
/
full.py
31 lines (27 loc) · 1.12 KB
/
full.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
DEPS = [
'platform',
'step',
]
def RunSteps(api):
step_result = api.step('platform things', cmd=None)
step_result.presentation.logs['name'] = [api.platform.name]
step_result.presentation.logs['bits'] = [str(api.platform.bits)]
step_result.presentation.logs['arch'] = [api.platform.arch]
step_result.presentation.logs['cpu_count'] = [str(api.platform.cpu_count)]
step_result.presentation.logs['memory'] = [str(api.platform.total_memory)]
if api.platform.name == 'win':
assert api.platform.is_win
assert not api.platform.is_mac
assert not api.platform.is_linux
elif api.platform.name == 'linux':
assert not api.platform.is_win
assert not api.platform.is_mac
assert api.platform.is_linux
def GenTests(api):
yield api.test('linux64') + api.platform('linux', 64)
yield api.test('mac64') + api.platform('mac', 64)
yield api.test('win32') + api.platform('win', 32)
yield api.test('arm64') + api.platform('linux', 64, 'arm')