tree: 72b398a1a79b1f58502106f4d6f69298cbeb9657 [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. dart-aot-runner-integration-test.cc
  4. README.md
shell/platform/fuchsia/dart_runner/tests/startup_integration_test/dart_aot_runner/README.md

dart_aot_runner

Contains the integration test for the Dart AOT runner.

Running Tests

Setup emulator and PM serve

fx set workstation_eng.qemu-x64
ffx emu start --headless

fx serve

Prepare build files and build binary

$ENGINE_DIR/flutter/tools/gn --fuchsia --no-lto --runtime-mode=profile
ninja -C $ENGINE_DIR/out/fuchsia_profile_x64 flutter/shell/platform/fuchsia fuchsia_tests

Publish files to PM

$FUCHSIA_DIR/.jiri_root/bin/fx pm publish -a -repo $FUCHSIA_DIR/$(cat $FUCHSIA_DIR/.fx-build-dir)/amber-files -f $ENGINE_DIR/out/fuchsia_profile_x64/dart-aot-runner-integration-test-0.far

$FUCHSIA_DIR/.jiri_root/bin/fx pm publish -a -repo $FUCHSIA_DIR/$(cat $FUCHSIA_DIR/.fx-build-dir)/amber-files -f $ENGINE_DIR/out/fuchsia_profile_x64/oot_dart_aot_runner-0.far

$FUCHSIA_DIR/.jiri_root/bin/fx pm publish -a -repo $FUCHSIA_DIR/$(cat $FUCHSIA_DIR/.fx-build-dir)/amber-files -f $ENGINE_DIR/out/fuchsia_profile_x64/gen/flutter/shell/platform/fuchsia/dart_runner/tests/startup_integration_test/dart_echo_server/dart_aot_echo_server/dart_aot_echo_server.far

Run test

ffx test run "fuchsia-pkg://fuchsia.com/dart-aot-runner-integration-test#meta/dart-aot-runner-integration-test.cm"

Notes

The profile runtime should be used when running the dart_aot_runner integration test. Snapshots will fail to generate or generate incorrectly if the wrong runtime is used.