mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
36 lines
1.0 KiB
Bash
Executable File
36 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright 2013 The Flutter Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
APP="$1"
|
|
if [[ -z "$APP" ]]; then
|
|
echo "Application must be specified as the first argument to the script."
|
|
exit 255
|
|
fi
|
|
|
|
if [[ ! -f "$APP" ]]; then
|
|
echo "File '$APP' not found."
|
|
exit 255
|
|
fi
|
|
|
|
GIT_REVISION="${2:-$(git rev-parse HEAD)}"
|
|
BUILD_ID="${3:-$SWARMING_TASK_ID}"
|
|
|
|
# Run the test.
|
|
# game-loop tests are meant for OpenGL apps.
|
|
# This type of test will give the application a handle to a file, and
|
|
# we'll write the timeline JSON to that file.
|
|
# See https://firebase.google.com/docs/test-lab/android/game-loop
|
|
# Pixel 4. As of this commit, this is a highly available device in FTL.
|
|
gcloud --project flutter-infra firebase test android run \
|
|
--type game-loop \
|
|
--app "$APP" \
|
|
--timeout 2m \
|
|
--results-bucket=gs://flutter_firebase_testlab \
|
|
--results-dir="engine_scenario_test/$GIT_REVISION/$BUILD_ID" \
|
|
--device model=flame,version=29
|