blob: ac1c57d63238bdc55da2dfad4e39619ca4740000 [file] [log] [blame]
#!/bin/bash
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#### CATEGORY=Run, inspect and debug
### run zircon core-tests
## usage: core-tests [-...`fx run-zbi-test` switches...] [gtest-filter]
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/../lib/vars.sh || exit $?
ARGS=()
for arg in "$@"; do
case "$arg" in
-*) ARGS+=("$arg") ;;
*) ARGS+=(--cmdline="--gtest_filter=$arg") ;;
esac
done
fx-command-exec contrib/run-zbi-test "${ARGS[@]}" core-tests