Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 38 additions & 43 deletions testing/fuchsia/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@

set -Ee

test_timeout_seconds=300

# This is longer than the test timeout as dumping the
# logs can sometimes take longer.
ssh_timeout_seconds=360
echo "These tests have been temporarily disabled."
echo "See: https://github.com/flutter/flutter/issues/57061"
exit 0

# The nodes are named blah-blah--four-word-fuchsia-id
device_name=${SWARMING_BOT_ID#*--}
Expand All @@ -41,7 +40,6 @@ reboot() {

./fuchsia_ctl -d $device_name ssh \
-c "log_listener --dump_logs yes" \
--timeout-seconds $ssh_timeout_seconds \
--identity-file $pkey

echo "$(date) START:REBOOT ------------------------------------------"
Expand Down Expand Up @@ -73,58 +71,55 @@ tar -xvzf $2 -C packages 1> /dev/null
echo "$(date) END:EXTRACT_PACKAGES -----------------------------------"


# TODO (kaushikiska): Re-enable these tests.
# see: https://github.com/flutter/flutter/issues/57061
# TODO(gw280): Enable tests using JIT runner

echo "$(date) START:flutter_runner_tests ----------------------------"
./fuchsia_ctl -d $device_name test \
-f flutter_aot_runner-0.far \
-f flutter_runner_tests-0.far \
-t flutter_runner_tests \
--identity-file $pkey \
--timeout-seconds $test_timeout_seconds \
--packages-directory packages

./fuchsia_ctl -d $device_name test \
-f flutter_aot_runner-0.far \
-f flutter_runner_scenic_tests-0.far \
-t flutter_runner_scenic_tests \
--identity-file $pkey \
--timeout-seconds $test_timeout_seconds \
--packages-directory packages
# echo "$(date) START:flutter_runner_tests ----------------------------"
# ./fuchsia_ctl -d $device_name test \
# -f flutter_aot_runner-0.far \
# -f flutter_runner_tests-0.far \
# -t flutter_runner_tests \
# --identity-file $pkey \
# --timeout-seconds 300 \
# --packages-directory packages

# ./fuchsia_ctl -d $device_name test \
# -f flutter_aot_runner-0.far \
# -f flutter_runner_scenic_tests-0.far \
# -t flutter_runner_scenic_tests \
# --identity-file $pkey \
# --timeout-seconds 300 \
# --packages-directory packages

# TODO(https://github.com/flutter/flutter/issues/50032) Enable after the
# Fuchsia message loop migration is complete.
echo "$(date) START:fml_tests ---------------------------------------"
./fuchsia_ctl -d $device_name test \
-f fml_tests-0.far \
-t fml_tests \
-a "--gtest_filter=-MessageLoop*:Message*:FileTest*" \
--identity-file $pkey \
--timeout-seconds $test_timeout_seconds \
--packages-directory packages


echo "$(date) START:flow_tests --------------------------------------"
./fuchsia_ctl -d $device_name test \
-f flow_tests-0.far \
-t flow_tests \
--identity-file $pkey \
--timeout-seconds $test_timeout_seconds \
--packages-directory packages
# echo "$(date) START:fml_tests ---------------------------------------"
# ./fuchsia_ctl -d $device_name test \
# -f fml_tests-0.far \
# -t fml_tests \
# -a "--gtest_filter=-MessageLoop*:Message*:FileTest*" \
# --identity-file $pkey \
# --timeout-seconds 300 \
# --packages-directory packages


# TODO(kaushikiska): Runtime and shell tests are failing with
# async_dispatcher failures. Re-enable them once this gets fixed.
# echo "$(date) START:flow_tests --------------------------------------"
# ./fuchsia_ctl -d $device_name test \
# -f flow_tests-0.far \
# -t flow_tests \
# --identity-file $pkey \
# --timeout-seconds 300 \
# --packages-directory packages

# echo "$(date) START:runtime_tests -----------------------------------"
# ./fuchsia_ctl -d $device_name test \
# -f runtime_tests-0.far \
# -t runtime_tests \
# --identity-file $pkey \
# --timeout-seconds $test_timeout_seconds \
# --timeout-seconds 300 \
# --packages-directory packages


# TODO(https://github.com/flutter/flutter/issues/53399): Re-enable
# OnServiceProtocolGetSkSLsWorks and CanLoadSkSLsFromAsset once they pass on
# Fuchsia.
Expand All @@ -134,5 +129,5 @@ echo "$(date) START:flow_tests --------------------------------------"
# -t shell_tests \
# -a "--gtest_filter=-ShellTest.CacheSkSLWorks:ShellTest.SetResourceCacheSize*:ShellTest.OnServiceProtocolGetSkSLsWorks:ShellTest.CanLoadSkSLsFromAsset" \
# --identity-file $pkey \
# --timeout-seconds $test_timeout_seconds \
# --timeout-seconds 300 \
# --packages-directory packages