blob: 2412c6e2977b1b49ea487217bf18a7a1527c91bf [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import post_process
DEPS = [
'gn',
]
_INPUT_ARGS = (
'# some comments\n'
'goma_dir = "/b/build/slave/cache/goma_client"\n'
'target_cpu = "x86"\n'
'use_goma = true\n')
_EXPECTED_RESULT = {
'goma_dir': '"/b/build/slave/cache/goma_client"',
'target_cpu': '"x86"',
'use_goma': 'true',
}
def RunSteps(api):
actual_result = api.gn.parse_gn_args(_INPUT_ARGS)
assert actual_result == _EXPECTED_RESULT
def GenTests(api):
yield api.test(
'basic',
api.post_process(post_process.DropExpectation),
)