blob: 600e80cae90f39d5f42db4c3d6c5b2b2b5029733 [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=Test
### run zircon core-tests
## usage: core-tests [-...`fx run-boot-test` switches...] [--gtest_filter=<FILTER>]
## [--gtest_repeat=<REPEAT>]
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/../lib/vars.sh || exit $?
ARGS=()
for arg in "$@"; do
case "$arg" in
--gtest_*) ARGS+=(--cmdline="$arg") ;;
-*) ARGS+=("$arg") ;;
esac
done
fx-command-exec run-boot-test "${ARGS[@]}" core-tests