| #!/bin/bash |
| # Copyright 2018 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. |
| |
| ### build a test package and run on target. |
| ### PKG_TARGET is fully qualified or under fuchsia-pkg://fuchsia.com/ |
| |
| ## Deprecated, please use fx run-test |
| ## |
| ## usage: fx run-test-component [-t|--test <test_name>] [-d|--device <device>] PKG_TARGET |
| ## Builds the specified test package (e.g., appmgr_integration_tests), copies it to the |
| ## target, and executes it. |
| ## |
| ## If using this command, please run 'fx build' again before paving your device |
| ## because 'fx build updates' used by this script does not build images so it |
| ## can leave paver in weird state. |
| ## Arguments: |
| ## -t|--test Test to run. If not specified, it will run all tests in PKG_TARGET. |
| ## -d|--device Target device. |
| |
| set -e |
| |
| source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/lib/vars.sh || exit $? |
| fx-config-read |
| |
| function usage { |
| fx-command-help run-test-component |
| } |
| |
| echo $'This is deprecated. Please use fx run-test.\n' |
| fx-command-run run-test "$@" |