blob: 4a56dbb16f637cc908659e950a6f06d746b281cb [file] [log] [blame]
# Copyright 2023 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
"""Full test of environment module."""
import dataclasses
from typing import Optional
from PB.recipe_modules.pigweed.bazel.tests.full import InputProperties
from recipe_engine import config_types
DEPS = [
'pigweed/bazel',
'recipe_engine/path',
]
PROPERTIES = InputProperties
@dataclasses.dataclass
class _FakeCheckoutContext:
root: config_types.Path
def RunSteps(api, props): # pylint: disable=invalid-name
# pylint: disable=missing-function-docstring
runner = api.bazel.new_runner(
checkout=_FakeCheckoutContext(api.path['start_dir']),
options=props.bazel_options,
)
runner.run()
# Coverage only.
runner.ensure()
def GenTests(api): # pylint: disable=invalid-name
yield api.test('normal') + api.bazel.properties()