Enable the same tests in linux host for v2 and legacy recipes. (flutter/engine#39635)
* Enable the same test in linux host for v2 and legacy recipes. Dart tests were not being run in the engine v2 linux builds. Bug: https://github.com/flutter/flutter/issues/120701 * Generate path_ops. * Remove unopt build requirement. * Remove the check for host_debug_unopt. * Add shell_testing deps. * Add path_ops. * Build benchmarks in release. * Enable fml benchmarks. * Add UI benchmarks. * Add ui_list. * Add geometry benchmarks. * Add remaining benchmark targets.
This commit is contained in:
@@ -99,15 +99,31 @@
|
||||
"ninja": {
|
||||
"config": "host_debug",
|
||||
"targets": [
|
||||
"flutter:unittests",
|
||||
"flutter/build/archives:artifacts",
|
||||
"flutter/build/archives:dart_sdk_archive",
|
||||
"flutter/build/archives:embedder",
|
||||
"flutter/build/archives:flutter_patched_sdk",
|
||||
"flutter/build/archives:dart_sdk_archive",
|
||||
"flutter/tools/font-subset",
|
||||
"flutter/shell/platform/linux:flutter_gtk"
|
||||
"flutter/build/dart:copy_dart_sdk",
|
||||
"flutter/shell/platform/linux:flutter_gtk",
|
||||
"flutter/tools/font-subset"
|
||||
]
|
||||
},
|
||||
"tests": []
|
||||
"tests": [
|
||||
{
|
||||
"language": "python3",
|
||||
"name": "Host Tests for host_debug",
|
||||
"parameters": [
|
||||
"--variant",
|
||||
"host_debug",
|
||||
"--type",
|
||||
"dart",
|
||||
"--engine-capture-core-dump"
|
||||
],
|
||||
"script": "flutter/testing/run_tests.py",
|
||||
"type": "local"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"archives": [
|
||||
@@ -138,8 +154,11 @@
|
||||
"ninja": {
|
||||
"config": "host_profile",
|
||||
"targets": [
|
||||
"flutter:unittests",
|
||||
"flutter/shell/platform/linux:flutter_gtk"
|
||||
"flutter/build/dart:copy_dart_sdk",
|
||||
"flutter/shell/testing",
|
||||
"flutter/tools/path_ops",
|
||||
"flutter/shell/platform/linux:flutter_gtk",
|
||||
"flutter:unittests"
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
@@ -150,7 +169,7 @@
|
||||
"--variant",
|
||||
"host_profile",
|
||||
"--type",
|
||||
"engine",
|
||||
"dart,engine",
|
||||
"--engine-capture-core-dump"
|
||||
],
|
||||
"script": "flutter/testing/run_tests.py",
|
||||
@@ -187,9 +206,19 @@
|
||||
"ninja": {
|
||||
"config": "host_release",
|
||||
"targets": [
|
||||
"flutter:unittests",
|
||||
"flutter/build/dart:copy_dart_sdk",
|
||||
"flutter/display_list:display_list_benchmarks",
|
||||
"flutter/display_list:display_list_builder_benchmarks",
|
||||
"flutter/fml:fml_benchmarks",
|
||||
"flutter/impeller/geometry:geometry_benchmarks",
|
||||
"flutter/lib/ui:ui_benchmarks",
|
||||
"flutter/shell/common:shell_benchmarks",
|
||||
"flutter/shell/testing",
|
||||
"flutter/third_party/txt:txt_benchmarks",
|
||||
"flutter/tools/path_ops",
|
||||
"flutter/build/archives:flutter_patched_sdk",
|
||||
"flutter/shell/platform/linux:flutter_gtk"
|
||||
"flutter/shell/platform/linux:flutter_gtk",
|
||||
"flutter:unittests"
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
@@ -200,7 +229,7 @@
|
||||
"--variant",
|
||||
"host_release",
|
||||
"--type",
|
||||
"engine",
|
||||
"dart,engine,benchmarks",
|
||||
"--engine-capture-core-dump"
|
||||
],
|
||||
"script": "flutter/testing/run_tests.py",
|
||||
|
||||
@@ -570,17 +570,6 @@ def gather_dart_test(
|
||||
)
|
||||
|
||||
|
||||
def ensure_debug_unopt_sky_packages():
|
||||
variant_out_dir = os.path.join(OUT_DIR, 'host_debug_unopt')
|
||||
message = []
|
||||
message.append('gn --runtime-mode debug --unopt --no-lto')
|
||||
message.append('ninja -C %s flutter/sky/packages' % variant_out_dir)
|
||||
final_message = "%s doesn't exist. Please run the following commands: \n%s" % (
|
||||
variant_out_dir, '\n'.join(message)
|
||||
)
|
||||
assert os.path.exists(variant_out_dir), final_message
|
||||
|
||||
|
||||
def ensure_ios_tests_are_built(ios_out_dir):
|
||||
"""Builds the engine variant and the test dylib containing the XCTests"""
|
||||
tmp_out_dir = os.path.join(OUT_DIR, ios_out_dir)
|
||||
@@ -749,11 +738,6 @@ def gather_dart_tests(build_dir, test_filter):
|
||||
'dart',
|
||||
)
|
||||
|
||||
# This one is a bit messy. The pubspec.yaml at flutter/testing/dart/pubspec.yaml
|
||||
# has dependencies that are hardcoded to point to the sky packages at host_debug_unopt/
|
||||
# Before running Dart tests, make sure to run just that target (NOT the whole engine)
|
||||
ensure_debug_unopt_sky_packages()
|
||||
|
||||
# Now that we have the Sky packages at the hardcoded location, run `dart pub get`.
|
||||
run_engine_executable(
|
||||
build_dir,
|
||||
|
||||
Reference in New Issue
Block a user