1# Copyright 2018 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 'target', 9 'recipe_engine/platform', 10 'recipe_engine/properties', 11 'recipe_engine/step', 12] 13 14 15def RunSteps(api): 16 target = api.target('fuchsia-arm64') 17 assert not target.is_win 18 assert not target.is_linux 19 assert not target.is_mac 20 assert api.target.host.is_host 21 assert target != api.target.host 22 assert target != 'foo' 23 step_result = api.step('platform things', cmd=None) 24 step_result.presentation.logs['name'] = [target.os] 25 step_result.presentation.logs['arch'] = [target.arch] 26 step_result.presentation.logs['platform'] = [target.platform] 27 step_result.presentation.logs['triple'] = [target.triple] 28 step_result.presentation.logs['string'] = [str(target)] 29 30 31def GenTests(api): 32 for platform in ('linux', 'mac', 'win'): 33 yield api.test(platform) + api.platform.name(platform) 34