blob: c52df4d30079b2fa0ab8e5b3afcbc38e0f947afb [file] [log] [blame]
#!/bin/bash
#
# Copyright 2022 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.
#
# Runs local tests for all workflow scripts. Not runnable on CQ.
#
# Usage:
# $FUCHSIA_EMBEDDER_DIR/scripts/tests/run_all.sh
set -e # Fail on any error.
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/../lib/helpers.sh || exit $?
# Get all files in scripts/tests ending with *_test.sh.
tests=( "${FUCHSIA_EMBEDDER_DIR}"/scripts/tests/*_test.sh )
echo "${tests[@]}"
for test in "${tests[@]}"
do
echo-info "Running $test ..."
$test
done