blob: 0f0c9b56fd4f895fd419795d16b7a3d1877a126c [file] [log] [blame]
#!/bin/bash
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Fast fail the script on failures.
set -ex
source ./tool/ci/setup.sh
if [ "$PACKAGE" = "devtools_app_shared" ]; then
pushd $DEVTOOLS_DIR/packages/devtools_app_shared
echo `pwd`
flutter test test/
popd
elif [ "$PACKAGE" = "devtools_extensions" ]; then
pushd $DEVTOOLS_DIR/packages/devtools_extensions
echo `pwd`
flutter test test/*_test.dart
flutter test test/web --platform chrome
popd
elif [ "$PACKAGE" = "devtools_shared" ]; then
pushd $DEVTOOLS_DIR/packages/devtools_shared
echo `pwd`
flutter test test/
popd
fi