From d7293a979cb8f76854bdeed166458ce1d8c670aa Mon Sep 17 00:00:00 2001 From: godofredoc Date: Mon, 12 Jun 2023 20:08:17 -0700 Subject: [PATCH] Create v2 configuration for emulator tests. (flutter/engine#42652) Migrates emulator tests to engine v2. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/.ci.yaml | 10 ++++ .../standalone/linux_android_emulator.json | 46 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 engine/src/flutter/ci/builders/standalone/linux_android_emulator.json diff --git a/engine/src/flutter/.ci.yaml b/engine/src/flutter/.ci.yaml index c8cf5f1127..02f35d27b0 100644 --- a/engine/src/flutter/.ci.yaml +++ b/engine/src/flutter/.ci.yaml @@ -102,6 +102,16 @@ targets: android_sdk_preview_license: \n84831b9409646a918e30573bab4c9c91346d8abd timeout: 60 + - name: Linux linux_android_emulator_tests + bringup: true + enabled_branches: + - main + recipe: engine_v2/builder + presubmit: false + properties: + config_name: linux_android_emulator + timeout: 60 + - name: Linux Android Emulator Tests recipe: engine/scenarios enabled_branches: diff --git a/engine/src/flutter/ci/builders/standalone/linux_android_emulator.json b/engine/src/flutter/ci/builders/standalone/linux_android_emulator.json new file mode 100644 index 0000000000..e8c392e56a --- /dev/null +++ b/engine/src/flutter/ci/builders/standalone/linux_android_emulator.json @@ -0,0 +1,46 @@ +{ + "drone_dimensions": [ + "device_type=none", + "os=Linux" + ], + "gn": [ + "--android", + "--android-cpu=x64", + "--no-lto" + ], + "name": "android_debug_x64", + "ninja": { + "config": "android_debug_x64", + "targets": [ + "flutter/shell/platform/android:flutter_shell_native_unittests", + "flutter/testing/scenario_app" + ] + }, + "tests": [ + { + "language": "python3", + "name": "Android Unit Tests", + "contexts": [ + "android_virtual_device" + ], + "parameters": [ + "--android-variant", + "android_debug_x64", + "--type", + "android" + ], + "script": "flutter/testing/run_tests.py" + }, + { + "language": "bash", + "name": "Scenario App Integration Tests", + "contexts": [ + "android_virtual_device" + ], + "parameters": [ + "android_debug_x64" + ], + "script": "flutter/testing/scenario_app/run_android_tests.sh" + } + ] +}