mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add plumbing for hello world startup test in devicelab (#36410)
This is the first step in getting esoteric devices wired up to device lab to ensure that we can at least start Flutter apps in profile mode on such devices. https://github.com/flutter/flutter/issues/35838
This commit is contained in:
parent
5a34e7981e
commit
0f625196cc
14
dev/devicelab/bin/tasks/hello_world__start_up.dart
Normal file
14
dev/devicelab/bin/tasks/hello_world__start_up.dart
Normal file
@ -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<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.android;
|
||||
await task(createHelloWorldStartupTest());
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user