sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
431 stars 44 forks source link

UI integration tests not run on a remote device #89

Closed GuillaumeMorinQc closed 1 year ago

GuillaumeMorinQc commented 2 years ago

I'm trying to use flutter integration tests on a remote arm64 device. When I launched the following command the application is deployed and launched, but when it time to run tests nothing happens for 12 minutes. The application is the default app with counter and button to increment it.

flutter-arm test integration_test/app_test.dart  -vv --disable-service-auth-codes -d imx8mm
[  +48 ms] executing: uname -m
[  +21 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +9 ms] executing: [/home/dev/sdk/flutter-elinux/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +5 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 097d3313d8e2c7f901932d63e537c1acefb87800
[        ] executing: [/home/dev/sdk/flutter-elinux/flutter/] git tag --points-at 097d3313d8e2c7f901932d63e537c1acefb87800
[  +12 ms] Exit code 0 from: git tag --points-at 097d3313d8e2c7f901932d63e537c1acefb87800
[        ] 2.10.2
[  +35 ms] executing: [/home/dev/sdk/flutter-elinux/flutter/] git rev-parse --abbrev-ref HEAD
[   +2 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] HEAD
[        ] executing: [/home/dev/sdk/flutter-elinux/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +3 ms] Exit code 128 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] fatal: HEAD does not point to a branch
[  +20 ms] Unable to locate an Android SDK.
[ +129 ms] Found plugin integration_test at /home/dev/sdk/flutter-elinux/flutter/packages/integration_test/
[  +44 ms] Found plugin integration_test at /home/dev/sdk/flutter-elinux/flutter/packages/integration_test/
[  +28 ms] Found plugin integration_test at /home/dev/sdk/flutter-elinux/flutter/packages/integration_test/
[  +57 ms] Found plugin integration_test at /home/dev/sdk/flutter-elinux/flutter/packages/integration_test/
[   +6 ms] Found 1 files which will be executed as Integration Tests.
[   +4 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +14 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update.
[  +19 ms] executing: ping -w 500 -c 1 192.168.2.227
[  +28 ms] PING 192.168.2.227 (192.168.2.227) 56(84) bytes of data.
           64 bytes from 192.168.2.227: icmp_seq=1 ttl=62 time=0.997 ms

           --- 192.168.2.227 ping statistics ---
           1 packets transmitted, 1 received, 0% packet loss, time 0ms
           rtt min/avg/max/mdev = 0.997/0.997/0.997/0.000 ms
[   +4 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +9 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update.
[  +73 ms] Skipping pub get: version match.
[  +30 ms] Found plugin integration_test at /home/dev/sdk/flutter-elinux/flutter/packages/integration_test/
[  +74 ms] Found plugin integration_test at /home/dev/sdk/flutter-elinux/flutter/packages/integration_test/
[  +21 ms] Generating /workspaces/flutter-elinux-imx8mm-devcontainer/hello_world/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +147 ms] running test package with arguments: [-r, compact, --timeout, 30s, --concurrency=1, --chain-stack-traces, --, /workspaces/flutter-elinux-imx8mm-devcontainer/hello_world/integration_test/app_test.dart]
00:00 +0: loading /workspaces/flutter-elinux-imx8mm-devcontainer/hello_world/integration_test/app_test.dart                                                                                                                [ +146 ms] test 0: starting test /workspaces/flutter-elinux-imx8mm-devcontainer/hello_world/integration_test/app_test.dart
[   +8 ms] Stopping scan for flutter_test_config.dart; found project root at /workspaces/flutter-elinux-imx8mm-devcontainer/hello_world
[        ] test 0: starting test device
[   +2 ms] test 0: awaiting connection to test device
[  +17 ms] Uninstall hello_world from imx8mm.
[        ] executing: true
[   +3 ms] Uninstallation Success
[   +1 ms] Install hello_world (build/elinux/arm64/debug/bundle) to imx8mm
[        ] executing: rsync --archive --delete build/elinux/arm64/debug/bundle/ root@192.168.2.227:/home/root/hello_world/
[ +183 ms] Installation Success
[        ] Launch hello_world.name on imx8mm
[ +559 ms] Observatory URL on device: http://127.0.0.1:43085/9cWL_Sot1GM=/
[   +1 ms] executing: ssh -o ExitOnForwardFailure=yes -L 127.0.0.1:43085:127.0.0.1:43085 root@192.168.2.227 echo connected;bash
[ +128 ms] Forwarded host port 43085 to device port 43085 for Observatory
[   +2 ms] test 0: Connecting to vm service
[  +11 ms] test 0: Observatory uri is available at http://127.0.0.1:43085/9cWL_Sot1GM=/
00:01 +0: loading /workspaces/flutter-elinux-imx8mm-devcontainer/hello_world/integration_test/app_test.dart                                                                                                                [ +484 ms] test 0: Finding the correct isolate with the integration test service extension
12:00 +0 -1: loading /workspaces/flutter-elinux-imx8mm-devcontainer/hello_world/integration_test/app_test.dart [E]                                                                                                         
  TimeoutException after 0:12:00.000000: Test timed out after 12 minutes.
  package:test_api/src/backend/invoker.dart 333:28  Invoker._handleError.<fn>
  dart:async/zone.dart 1418:47                      _rootRun
  dart:async/zone.dart 1328:19                      _CustomZone.run
  package:test_api/src/backend/invoker.dart 331:10  Invoker._handleError
  package:test_api/src/backend/invoker.dart 287:9   Invoker.heartbeat.<fn>.<fn>
  dart:async/zone.dart 1426:13                      _rootRun
  dart:async/zone.dart 1328:19                      _CustomZone.run
  package:test_api/src/backend/invoker.dart 286:38  Invoker.heartbeat.<fn>
  dart:async-patch/timer_patch.dart 18:15           Timer._createTimer.<fn>
  dart:isolate-patch/timer_impl.dart 395:19         _Timer._runTimers
  dart:isolate-patch/timer_impl.dart 426:5          _Timer._handleMessage
  dart:isolate-patch/isolate_patch.dart 192:12      _RawReceivePortImpl._handleMessage

12:00 +0 -1: Some tests failed.                                                                                                                                                                                            
[+718637 ms] test package returned with exit code 1
[   +9 ms] "flutter test" took 720,875ms.
[   +5 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      TestCommand.runCommand (package:flutter_tools/src/commands/test.dart:472:7)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_elinux/executable.dart:83:3)
           <asynchronous suspension>

[   +4 ms] ensureAnalyticsSent: 0ms
[        ] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

There is the result of my flutter-arm doctor :

[✓] Flutter (Channel unknown, 2.10.2, on Debian GNU/Linux 11 (bullseye) 5.10.102.1-microsoft-standard-WSL2, locale en_US.UTF-8)
    • Flutter version 2.10.2 at /home/dev/sdk/flutter-elinux/flutter
    • Upstream repository unknown
    • Framework revision 097d3313d8 (7 weeks ago), 2022-02-18 19:33:08 -0600
    • Engine revision a83ed0e5e3
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] eLinux toolchain - develop for embedded Linux devices
    • clang version 9.0.1 (https://github.com/llvm/llvm-project c1a0a213378a458fbea1a5c77b315c7dce08fd05)
    • cmake version 3.15.3
    • pkg-config version 0.29.2

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (3 available)
    • eLinux (desktop) • elinux-wayland • flutter-tester • Debian GNU/Linux 11 (bullseye) 5.10.102.1-microsoft-standard-WSL2
    • eLinux (desktop) • elinux-x11     • flutter-tester • Debian GNU/Linux 11 (bullseye) 5.10.102.1-microsoft-standard-WSL2
    • eLinux (mobile)  • imx8mm         • flutter-tester • i.MX8 (Hydrogen-Tritium) 2.10.2 - 0.0.0.22052.2

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 3 categories.
fredrmag commented 2 years ago

First of all, thanks for the great work in making flutter work on embedded!

I have a similar issue as above when running integration tests on target device. The tests timeouts after 12 minutes.

I am following the flutter integration test example for testing out integration testing using flutter-elinux on a target device.

flutter-elinux test integration_test/counter_test.dart -vv -d imx8mm
``` flutter-elinux test integration_test/counter_test.dart -vv -d imx8mm [ +59 ms] executing: uname -m [ +34 ms] Exit code 0 from: uname -m [ ] x86_64 [ +19 ms] executing: [/opt/flutter-elinux/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +11 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 7e9793dee1b85a243edd0e06cb1658e98b077561 [ +1 ms] executing: [/opt/flutter-elinux/flutter/] git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561 [ +18 ms] Exit code 0 from: git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561 [ ] 2.10.3 [ +37 ms] executing: [/opt/flutter-elinux/flutter/] git rev-parse --abbrev-ref HEAD [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] HEAD [ ] executing: [/opt/flutter-elinux/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +12 ms] Exit code 128 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] fatal: HEAD does not point to a branch [ +168 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +68 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +40 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +56 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +3 ms] Found 1 files which will be executed as Integration Tests. [ +4 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +36 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update. [ +23 ms] executing: /home/fm/Android/Sdk/platform-tools/adb devices -l [ +38 ms] executing: ping -w 500 -c 1 192.168.12.154 [ +55 ms] List of devices attached [ +2 ms] PING 192.168.12.154 (192.168.12.154) 56(84) bytes of data. 64 bytes from 192.168.12.154: icmp_seq=1 ttl=63 time=2.35 ms --- 192.168.12.154 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2.345/2.345/2.345/0.000 ms [ +4 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +13 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update. [ +57 ms] Skipping pub get: version match. [ +27 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +64 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +5 ms] Generating /home/fm/projects/flutter_gui_components/sample/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +130 ms] running test package with arguments: [-r, compact, --timeout, 30s, --concurrency=1, --chain-stack-traces, --, /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart] 00:00 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +205 ms] test 0: starting test /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +4 ms] Stopping scan for flutter_test_config.dart; found project root at /home/fm/projects/flutter_gui_components/sample [ +1 ms] test 0: starting test device [ +3 ms] test 0: awaiting connection to test device [ +18 ms] Uninstall sample from imx8mm. [ ] executing: ssh root@192.168.12.154 rm -rf "/tmp/sample" [ +120 ms] Uninstallation Success [ +1 ms] Install sample (build/elinux/arm64/debug/bundle) to imx8mm [ ] executing: scp -r build/elinux/arm64/debug/bundle root@192.168.12.154:/tmp/sample 00:13 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [+13673 ms] Installation Success [ +1 ms] Launch sample.name on imx8mm 00:14 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +603 ms] Observatory URL on device: http://127.0.0.1:41345/2xZJ6Kj8D5Q=/ [ +2 ms] executing: ssh -o ExitOnForwardFailure=yes -L 127.0.0.1:41345:127.0.0.1:41345 root@192.168.12.154 [ +15 ms] Forwarded host port 41345 to device port 41345 for Observatory [ +3 ms] test 0: Connecting to vm service [ +21 ms] test 0: Observatory uri is available at http://127.0.0.1:41345/2xZJ6Kj8D5Q=/ [ +31 ms] Exception attempting to connect to the VM Service: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 127.0.0.1, port = 40884 [ +1 ms] This was attempt #1. Will retry in 0:00:00.100000. 00:15 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +608 ms] test 0: Finding the correct isolate with the integration test service extension 12:00 +0 -1: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [E] TimeoutException after 0:12:00.000000: Test timed out after 12 minutes. package:test_api/src/backend/invoker.dart 333:28 Invoker._handleError. dart:async/zone.dart 1418:47 _rootRun dart:async/zone.dart 1328:19 _CustomZone.run package:test_api/src/backend/invoker.dart 331:10 Invoker._handleError package:test_api/src/backend/invoker.dart 287:9 Invoker.heartbeat.. dart:async/zone.dart 1426:13 _rootRun dart:async/zone.dart 1328:19 _CustomZone.run package:test_api/src/backend/invoker.dart 286:38 Invoker.heartbeat. dart:async-patch/timer_patch.dart 18:15 Timer._createTimer. dart:isolate-patch/timer_impl.dart 395:19 _Timer._runTimers dart:isolate-patch/timer_impl.dart 426:5 _Timer._handleMessage dart:isolate-patch/isolate_patch.dart 192:12 _RawReceivePortImpl._handleMessage 12:00 +0 -1: Some tests failed. [+704957 ms] test package returned with exit code 1 [ +43 ms] "flutter test" took 721,029ms. [ +10 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 TestCommand.runCommand (package:flutter_tools/src/commands/test.dart:472:7) #2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1161:27) #3 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #4 CommandRunner.runCommand (package:args/command_runner.dart:209:13) #5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9) #6 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5) #8 run.. (package:flutter_tools/runner.dart:62:9) #9 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #10 main (package:flutter_elinux/executable.dart:83:3) [ +15 ms] ensureAnalyticsSent: 1ms [ +2 ms] Running shutdown hooks [ +1 ms] Shutdown hooks complete [ +1 ms] exiting with code 1 ```
flutter-elinux doctor -v
``` flutter-elinux doctor -v [✓] Flutter (Channel unknown, 2.10.3, on Ubuntu 20.04.4 LTS 5.13.0-40-generic, locale en_US.UTF-8) • Flutter version 2.10.3 at /opt/flutter-elinux/flutter • Upstream repository unknown • Framework revision 7e9793dee1 (8 weeks ago), 2022-03-02 11:23:12 -0600 • Engine revision bd539267b4 • Dart version 2.16.1 • DevTools version 2.9.2 [✓] eLinux toolchain - develop for embedded Linux devices • clang version 10.0.1 (https://github.com/llvm/llvm-project ef32c611aa214dea855364efd7ba451ec5ec3f74) • cmake version 3.16.5 • pkg-config version 0.29.2 [✗] Android toolchain - develop for Android devices • Android SDK at /home/fm/Android/Sdk ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. [✓] Chrome - develop for the web • Chrome at google-chrome [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] VS Code • VS Code at /snap/code/current • Flutter extension version 3.38.1 [✓] Connected device (4 available) • Chrome (web) • chrome • web-javascript • Google Chrome 100.0.4896.127 • eLinux (desktop) • elinux-wayland • flutter-tester • Ubuntu 20.04.4 LTS 5.13.0-40-generic • eLinux (desktop) • elinux-x11 • flutter-tester • Ubuntu 20.04.4 LTS 5.13.0-40-generic • eLinux (mobile) • imx8mm • flutter-tester • Instrument 0 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 2 categories. ```

flutter-elinux test integration_test -v runs succesfully
``` flutter-elinux test integration_test -v [ +55 ms] executing: uname -m [ +27 ms] Exit code 0 from: uname -m [ ] x86_64 [ +10 ms] executing: [/opt/flutter-elinux/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +18 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 7e9793dee1b85a243edd0e06cb1658e98b077561 [ ] executing: [/opt/flutter-elinux/flutter/] git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561 [ +22 ms] Exit code 0 from: git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561 [ ] 2.10.3 [ +49 ms] executing: [/opt/flutter-elinux/flutter/] git rev-parse --abbrev-ref HEAD [ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] HEAD [ ] executing: [/opt/flutter-elinux/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +10 ms] Exit code 128 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] fatal: HEAD does not point to a branch [ +169 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +78 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +36 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +73 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +5 ms] Found 1 files which will be executed as Integration Tests. [ +11 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +36 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update. [ +34 ms] executing: ping -w 500 -c 1 192.168.12.154 [ +108 ms] PING 192.168.12.154 (192.168.12.154) 56(84) bytes of data. 64 bytes from 192.168.12.154: icmp_seq=1 ttl=63 time=3.99 ms --- 192.168.12.154 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 3.992/3.992/3.992/0.000 ms [ +4 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +8 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update. [ +59 ms] Skipping pub get: version match. [ +30 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +87 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +6 ms] Generating /home/fm/projects/flutter_gui_components/sample/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +165 ms] running test package with arguments: [-r, compact, --timeout, 30s, --concurrency=1, --chain-stack-traces, --, /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart] 00:00 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +254 ms] test 0: starting test /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +4 ms] Stopping scan for flutter_test_config.dart; found project root at /home/fm/projects/flutter_gui_components/sample [ +1 ms] test 0: starting test device [ +2 ms] test 0: awaiting connection to test device [ +19 ms] Building app [ +14 ms] Building an eLinux application with wayland backend in debug mode for x64 target... [ +2 ms] Initializing file store [ +12 ms] Skipping target: gen_localizations [ +16 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/fm/projects/flutter_gui_components/sample/.dart_tool/package_config_subset} [ +11 ms] elinux_plugins: Starting due to {} [ +6 ms] elinux_plugins: Complete [ +44 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +10 ms] gen_dart_plugin_registrant: Complete [ +2 ms] kernel_snapshot: Starting due to {} [ +34 ms] /opt/flutter-elinux/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /opt/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /opt/flutter-elinux/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -DINTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages /home/fm/projects/flutter_gui_components/sample/.dart_tool/package_config.json --output-dill /home/fm/projects/flutter_gui_components/sample/.dart_tool/flutter_build/85b5ed3d746ef6f748b22377f4f69d0b/app.dill --depfile /home/fm/projects/flutter_gui_components/sample/.dart_tool/flutter_build/85b5ed3d746ef6f748b22377f4f69d0b/kernel_snapshot.d file:///tmp/flutter_tools.BDVWDF/flutter_test_listener.MJGKDY/listener.dart 00:10 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [+10375 ms] kernel_snapshot: Complete [ +453 ms] debug_elinux_application: Starting due to {} 00:11 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +329 ms] debug_elinux_application: Complete [ +541 ms] Persisting file store [ +5 ms] Done persisting file store [ +416 ms] Found plugin integration_test at /opt/flutter-elinux/flutter/packages/integration_test/ [ +2 ms] executing: [/home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/] cmake -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_BACKEND_TYPE=wayland /home/fm/projects/flutter_gui_components/sample/elinux 00:12 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +444 ms] -- The CXX compiler identification is Clang 10.0.0 -- Check for working CXX compiler: /usr/bin/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug [ ] executing: [/home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/] cmake --build . 00:19 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [+7084 ms] Scanning dependencies of target flutter_assemble [ 0%] Built target flutter_assemble Scanning dependencies of target flutter_wrapper_app [ 7%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o [ 15%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o [ 23%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_engine.cc.o [ 30%] Building CXX object flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_view_controller.cc.o [ 38%] Linking CXX static library libflutter_wrapper_app.a [ 38%] Built target flutter_wrapper_app Scanning dependencies of target flutter_wrapper_plugin [ 46%] Building CXX object flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o [ 53%] Building CXX object flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o [ 61%] Building CXX object flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/plugin_registrar.cc.o [ 69%] Linking CXX static library libflutter_wrapper_plugin.a [ 69%] Built target flutter_wrapper_plugin Scanning dependencies of target sample [ 76%] Building CXX object runner/CMakeFiles/sample.dir/flutter_window.cc.o [ 84%] Building CXX object runner/CMakeFiles/sample.dir/main.cc.o [ 92%] Building CXX object runner/CMakeFiles/sample.dir/__/flutter/generated_plugin_registrant.cc.o [100%] Linking CXX executable sample [100%] Built target sample [ +1 ms] executing: [/home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/] cmake --install . [ +135 ms] -- Install configuration: "Debug" -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/sample -- Set runtime path of "/home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/sample" to "$ORIGIN/lib" -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/icudtl.dat -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/lib/libflutter_engine.so -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/lib/libflutter_elinux_wayland.so -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/FontManifest.json -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/NOTICES.Z -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/vm_snapshot_data -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/packages -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/packages/cupertin o_icons -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/packages/cupertin o_icons/assets -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/packages/cupertin o_icons/assets/CupertinoIcons.ttf -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/isolate_snapshot_ data -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/AssetManifest.jso n -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/fonts -- Installing: /home/fm/projects/flutter_gui_components/sample/build/elinux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIco ns-Regular.otf [ +228 ms] Building an eLinux application with wayland backend in debug mode for x64 target... (completed in 20.2s) 00:20 +0: loading /home/fm/projects/flutter_gui_components/sample/integration_test/counter_test.dart [ +191 ms] Observatory URL on device: http://127.0.0.1:40345/B-QT6Ljm6-k=/ [ +10 ms] test 0: Connecting to vm service [ +35 ms] test 0: Observatory uri is available at http://127.0.0.1:40345/B-QT6Ljm6-k=/ [ +134 ms] test 0: Finding the correct isolate with the integration test service extension [ +52 ms] test 0: connected to test device, now awaiting test result [ ] test 0: Waiting for test harness or tests to finish 00:21 +1: (tearDownAll) [+1185 ms] test 0: Test harness is no longer needed by test process [ ] test 0: finished [ ] test 0: cleaning up... [ ] test 0: ensuring test device is terminated. [ +1 ms] test 0: Test process is no longer needed by test harness [ ] uninstall command is not defined. [ +1 ms] test 0: deleting temporary directory [ ] test 0: finished 00:21 +1: All tests passed! [ +13 ms] test package returned with exit code 0 [ +2 ms] "flutter test" took 22,958ms. [ +6 ms] ensureAnalyticsSent: 0ms [ +2 ms] Running shutdown hooks [ +1 ms] Shutdown hooks complete [ +6 ms] exiting with code 0 ```

Additional info

I built the application using your guide for cross-building with Yocto SDK. Running the application gives the following output:

flutter-elinux run -d imx8mm
Launching lib/main.dart on eLinux in debug mode...
Uninstall sample from imx8mm.
Uninstallation Success
Install sample (build/elinux/arm64/debug/bundle) to imx8mm
Installation Success
Launch sample.name on imx8mm
Syncing files to device eLinux...                                  176ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on eLinux is available at: http://127.0.0.1:39813/Av7QB2pe2qg=/
The Flutter DevTools debugger and profiler on eLinux is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:39813/Av7QB2pe2qg=/

My ~/.dlutter_custom_devices.json looks like:

{
    "custom-devices": [
      {
        "id": "imx8mm",
        "label": "Instrument 0",
        "sdkNameAndVersion": "Instrument 0",
        "enabled": true,
        "platform": "arm64",
        "backend": "wayland",
        "ping": [
          "ping", "-w", "500", "-c", "1", "192.168.12.154"
        ],
        "pingSuccessRegex": "ttl=",
        "install": [
          "scp", "-r", "${localPath}", "root@192.168.12.154:/tmp/${appName}"
        ],
        "uninstall": [
          "ssh", "root@192.168.12.154", "rm -rf \"/tmp/${appName}\""
        ],
        "runDebug": [
          "ssh", "root@192.168.12.154", "export XDG_RUNTIME_DIR=/run/user/0; export WAYLAND_DISPLAY=wayland-0;/tmp/${appName}/${appName}"
        ],
        "forwardPort": [
          "ssh", "-o", "ExitOnForwardFailure=yes",
          "-L", "127.0.0.1:${hostPort}:127.0.0.1:${devicePort}", "root@192.168.12.154"
        ],
        "forwardPortSuccessRegex": ""
      }
    ]
  }
HidenoriMatsubayashi commented 1 year ago

Sorry for no updates for a long time.

I was able to run integration test (flutter integration test example) on Raspberry Pi4 (Raspberry Pi OS). Can you please try the following steps? You need to run flutter-elinux test command first. Sorry for the inconvenient way.

Build:

$ flutter-elinux test integration_test
$ mv build/elinux/<arch>/debug/bundle/data ./integration_test_bundle_data
$ flutter-elinux build elinux --debug # <= need cross-building if needed
$ rm -rf build/elinux/<arch>/debug/bundle/data
$ cp -rf integration_test_bundle_data build/elinux/<arch>/debug/bundle/data

Run integration test:

$ flutter-elinux test integration_test -d raspberry-pi4 --verbose
[  +20 ms] executing: [/home/hidenori/work/flutter/flutter-elinux/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +12 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f468f3366c26a5092eb964a230ce7892fda8f2f8
[        ] executing: [/home/hidenori/work/flutter/flutter-elinux/flutter/] git tag --points-at f468f3366c26a5092eb964a230ce7892fda8f2f8
[  +18 ms] Exit code 0 from: git tag --points-at f468f3366c26a5092eb964a230ce7892fda8f2f8
[        ] 3.10.6
[   +2 ms] executing: [/home/hidenori/work/flutter/flutter-elinux/flutter/] git rev-parse --abbrev-ref HEAD
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] HEAD
[        ] executing: [/home/hidenori/work/flutter/flutter-elinux/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[   +2 ms] Exit code 128 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] fatal: HEAD does not point to a branch
[  +12 ms] Unable to locate an Android SDK.
[   +5 ms] executing: uname -m
[   +1 ms] Exit code 0 from: uname -m
[        ] aarch64
[  +69 ms] Found plugin integration_test at /home/hidenori/work/flutter/flutter-elinux/flutter/packages/integration_test/
[  +15 ms] Found plugin integration_test at /home/hidenori/work/flutter/flutter-elinux/flutter/packages/integration_test/
[   +8 ms] Found plugin integration_test at /home/hidenori/work/flutter/flutter-elinux/flutter/packages/integration_test/
[  +15 ms] Found plugin integration_test at /home/hidenori/work/flutter/flutter-elinux/flutter/packages/integration_test/
[   +2 ms] Found 1 files which will be executed as Integration Tests.
[   +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +4 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update.
[   +5 ms] executing: ping -w 500 -c 1 192.168.10.22
[ +107 ms] PING 192.168.10.22 (192.168.10.22) 56(84) bytes of data.
                    64 bytes from 192.168.10.22: icmp_seq=1 ttl=128 time=96.2 ms

                    --- 192.168.10.22 ping statistics ---
                    1 packets transmitted, 1 received, 0% packet loss, time 0ms
                    rtt min/avg/max/mdev = 96.241/96.241/96.241/0.000 ms
[   +3 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +5 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update.
[   +5 ms] Skipping pub get: version match.
[   +9 ms] Found plugin integration_test at /home/hidenori/work/flutter/flutter-elinux/flutter/packages/integration_test/
[  +15 ms] Found plugin integration_test at /home/hidenori/work/flutter/flutter-elinux/flutter/packages/integration_test/
[   +5 ms] Found plugin integration_test at /home/hidenori/work/flutter/flutter-elinux/flutter/packages/integration_test/
[  +23 ms] Generating /home/hidenori/work/flutter/sample/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +58 ms] running test package with arguments: [--concurrency=1, --chain-stack-traces, --,
file:///home/hidenori/work/flutter/sample/integration_test/app_test.dart]
00:00 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             [  +71 ms] test 0: starting test /home/hidenori/work/flutter/sample/integration_test/app_test.dart
[   +2 ms] Stopping scan for flutter_test_config.dart; found project root at /home/hidenori/work/flutter/sample
[        ] test 0: starting test device
[   +1 ms] test 0: awaiting connection to test device
[   +5 ms] Uninstall sample from raspberry-pi4.
[        ] executing: ssh hidenori@192.168.10.22 rm -rf "/tmp/sample"
00:10 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
00:12 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
[+12848 ms] Permission denied, please try again.
[   +1 ms] Uninstallation Success
[   +1 ms] Install sample (build/elinux/arm64/debug/bundle) to raspberry-pi4
[        ] executing: scp -r build/elinux/arm64/debug/bundle hidenori@192.168.10.22:/tmp/sample
00:20 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
00:22 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
00:25 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
00:38 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
00:51 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
01:18 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             [+65533 ms] Permission denied, please try again.
[        ] Installation Success
[        ] Launch sample.name on raspberry-pi4
01:21 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
01:23 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
01:24 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             [+6296 ms] VM Service URL on device: http://127.0.0.1:43155/fOz1HKJpCJk=/
[   +1 ms] executing: ssh -o ExitOnForwardFailure=yes -L 127.0.0.1:43155:127.0.0.1:43155 hidenori@192.168.10.22
02:07 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
02:11 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             
02:12 +0: loading /home/hidenori/work/flutter/sample/integration_test/app_test.dart                                                             [+47369 ms] Forwarded host port 43155 to device port 43155 for VM Service
[   +1 ms] test 0: Connecting to vm service
[   +6 ms] test 0: VM Service uri is available at http://127.0.0.1:43155/fOz1HKJpCJk=/
[ +387 ms] test 0: Finding the correct isolate with the integration test service extension
[  +87 ms] test 0: connected to test device, now awaiting test result
[        ] test 0: Waiting for test harness or tests to finish
02:16 +1: (tearDownAll)                                                                                                                         [+4371 ms] test 0: Test harness is no longer needed by test process
[        ] test 0: finished
[        ] test 0: cleaning up...
[        ] test 0: ensuring test device is terminated.
[        ] test 0: Test process is no longer needed by test harness
[        ] Uninstall sample from raspberry-pi4.
[        ] executing: ssh hidenori@192.168.10.22 rm -rf "/tmp/sample"
02:46 +1: (tearDownAll)                                                                                                                         
02:49 +1: (tearDownAll)                                                                                                                         
[+32736 ms] Permission denied, please try again.
[        ] Uninstallation Success
[        ] test 0: deleting temporary directory
[        ] test 0: finished
02:49 +1: All tests passed!                                                                                                                     
[   +4 ms] test package returned with exit code 0
[   +4 ms] "flutter test" took 170,067ms.
[  +24 ms] ensureAnalyticsSent: 0ms
[        ] Running 1 shutdown hook
[        ] Shutdown hooks complete
[        ] exiting with code 0
~/.flutter_custom_devices.json: ``` { "custom-devices": [ { "id": "raspberry-pi4", "label": "Rasberry Pi 4", "sdkNameAndVersion": "Rasberry Pi 4", "enabled": true, "platform": "arm64", "backend": "wayland", "ping": [ "ping", "-w", "500", "-c", "1", "192.168.10.22" ], "pingSuccessRegex": "ttl=", "install": [ "scp", "-r", "${localPath}", "hidenori@192.168.10.22:/tmp/${appName}" ], "uninstall": [ "ssh", "hidenori@192.168.10.22", "rm -rf \"/tmp/${appName}\"" ], "runDebug": [ "ssh", "hidenori@192.168.10.22", "/tmp/${appName}/${appName} -b ." ], "forwardPort": [ "ssh", "-o", "ExitOnForwardFailure=yes", "-L", "127.0.0.1:${hostPort}:127.0.0.1:${devicePort}", "hidenori@192.168.10.22" ], "forwardPortSuccessRegex": "Linux" } ] } ```
HidenoriMatsubayashi commented 1 year ago

Added Integration test on target device to Wiki. Closing. Thank you.