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