mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-21 14:16:26 +00:00
8403f0a2db
This change adds functionality to the test runner script to search a directory tree for generated test metadata files, build up a graph of test groups, and run a user-specified list of groups with all of their dependencies. Tests are run through an external runner executable provided on the command line. The executable is called with the path to a unit test binary file. The old test runner functionality to run a single test directly from its binary path is maintained, but now uses a runner executable. This is configured in GN using the build variable "pw_automatic_test_runner", which replaces the functionality of "pw_unit_test_create_run_targets". Change-Id: Ic1ed959d87a71266408e1f26e0ae1bf906eebfb0
19 lines
708 B
Bash
Executable File
19 lines
708 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2019 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.
|
|
|
|
# Test runner for host Linux/macOS systems.
|
|
# Called with the path to a test binary and directly executes it.
|
|
$*
|