mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
- Copies fuchsia_test.sh into the testing/fuchsia directory - Fixes a small issue with fuchsia_archive to ensure the cmx file is correctly named according to the target - Add a list of fuchsia unittest fars to run on CI - Add a GN build target to build all currently-enabled unittests for Fuchsia
42 lines
1.2 KiB
Bash
Executable File
42 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This expects the device to be in zedboot mode, with a zedboot that is
|
|
# is compatible with the Fuchsia system image provided.
|
|
#
|
|
# The first and only parameter should be the path to the Fuchsia system image
|
|
# tarball, e.g. `./fuchsia-test.sh generic-x64.tgz`.
|
|
#
|
|
# This script expects `pm`, `dev_finder`, and `fuchsia_ctl` to all be in the
|
|
# same directory as the script, as well as the `flutter_aot_runner-0.far` and
|
|
# the `flutter_runner_tests-0.far`. It is written to be run from its own
|
|
# directory, and will fail if run from other directories or via sym-links.
|
|
|
|
set -Ee
|
|
|
|
# The nodes are named blah-blah--four-word-fuchsia-id
|
|
device_name=${SWARMING_BOT_ID#*--}
|
|
|
|
if [ -z "$device_name" ]
|
|
then
|
|
echo "No device found. Aborting."
|
|
exit 1
|
|
else
|
|
echo "Connecting to device $device_name"
|
|
fi
|
|
|
|
reboot() {
|
|
# note: this will set an exit code of 255, which we can ignore.
|
|
./fuchsia_ctl -d $device_name ssh -c "dm reboot-recovery" || true
|
|
}
|
|
|
|
trap reboot EXIT
|
|
|
|
./fuchsia_ctl -d $device_name pave -i $1
|
|
|
|
# TODO(gw280): Enable tests using JIT runner
|
|
./fuchsia_ctl -d $device_name test \
|
|
-f flutter_aot_runner-0.far \
|
|
-f flutter_runner_tests-0.far \
|
|
-t flutter_runner_tests
|
|
|