tree: 7d09ee669134cac5ea7cb132e1e46d47ffe8cfc3 [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. dart-jit-runner-integration-test.cc
  4. README.md
shell/platform/fuchsia/dart_runner/tests/startup_integration_test/dart_jit_runner/README.md

dart_jit_runner

Contains the integration test for the Dart JIT 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
ninja -C $ENGINE_DIR/out/fuchsia_debug_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_debug_x64/dart-jit-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_debug_x64/oot_dart_jit_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_debug_x64/gen/flutter/shell/platform/fuchsia/dart_runner/tests/startup_integration_test/dart_echo_server/dart_jit_echo_server/dart_jit_echo_server.far

Run test

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

Notes

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