[macOS] Bring up "complex_layout" devicelab, startup tests for x64 (#110100)
This commit is contained in:
committed by
GitHub
parent
0d47af08a1
commit
27bfc511ba
12
dev/devicelab/bin/tasks/complex_layout_macos__start_up.dart
Normal file
12
dev/devicelab/bin/tasks/complex_layout_macos__start_up.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2014 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.
|
||||
|
||||
import 'package:flutter_devicelab/framework/devices.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.macos;
|
||||
await task(createComplexLayoutStartupTest());
|
||||
}
|
||||
@@ -664,18 +664,19 @@ class StartupTest {
|
||||
]);
|
||||
applicationBinaryPath = '$testDirectory/build/app/outputs/flutter-apk/app-profile.apk';
|
||||
break;
|
||||
case DeviceOperatingSystem.fake:
|
||||
case DeviceOperatingSystem.fuchsia:
|
||||
break;
|
||||
case DeviceOperatingSystem.ios:
|
||||
case DeviceOperatingSystem.macos:
|
||||
await flutter('build', options: <String>[
|
||||
'ios',
|
||||
if (deviceOperatingSystem == DeviceOperatingSystem.ios) 'ios' else 'macos',
|
||||
'-v',
|
||||
'--profile',
|
||||
'--target=$target',
|
||||
]);
|
||||
applicationBinaryPath = _findDarwinAppInBuildDirectory('$testDirectory/build/ios/iphoneos');
|
||||
break;
|
||||
case DeviceOperatingSystem.fake:
|
||||
case DeviceOperatingSystem.fuchsia:
|
||||
case DeviceOperatingSystem.macos:
|
||||
final String buildRoot = path.join(testDirectory, 'build');
|
||||
applicationBinaryPath = _findDarwinAppInBuildDirectory(buildRoot);
|
||||
break;
|
||||
case DeviceOperatingSystem.windows:
|
||||
await flutter('build', options: <String>[
|
||||
|
||||
Reference in New Issue
Block a user