diff --git a/dev/devicelab/bin/tasks/hello_world__start_up.dart b/dev/devicelab/bin/tasks/hello_world__start_up.dart new file mode 100644 index 0000000000..ab9f37ce95 --- /dev/null +++ b/dev/devicelab/bin/tasks/hello_world__start_up.dart @@ -0,0 +1,14 @@ +// Copyright 2016 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. + +import 'dart:async'; + +import 'package:flutter_devicelab/tasks/perf_tests.dart'; +import 'package:flutter_devicelab/framework/adb.dart'; +import 'package:flutter_devicelab/framework/framework.dart'; + +Future main() async { + deviceOperatingSystem = DeviceOperatingSystem.android; + await task(createHelloWorldStartupTest()); +} diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 86e4b5a59c..e5fc3205f3 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -74,6 +74,13 @@ TaskFunction createComplexLayoutStartupTest() { ).run; } +TaskFunction createHelloWorldStartupTest() { + return StartupTest( + '${flutterDirectory.path}/examples/hello_world', + reportMetrics: false, + ).run; +} + TaskFunction createFlutterGalleryCompileTest() { return CompileTest('${flutterDirectory.path}/examples/flutter_gallery').run; } diff --git a/dev/devicelab/manifest.yaml b/dev/devicelab/manifest.yaml index 5cafc98026..bb8ea8eb1c 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml @@ -277,6 +277,12 @@ tasks: stage: devicelab required_agent_capabilities: ["mac/android"] + # hello_world__start_up: + # description: > + # Verifies that Hello World can start on an array of devices. + # stage: devicelab + # required_agent_capabilities: ["linux/android_esoteric"] + microbenchmarks: description: > Runs benchmarks from dev/benchmarks/microbenchmarks.