Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Enable runtime_unittests on Fuchsia
Browse files Browse the repository at this point in the history
  • Loading branch information
George Wright authored and gw280 committed Feb 6, 2020
1 parent 9ada1b0 commit 0517627
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ if (is_fuchsia) {
deps = [
"//flutter/flow:flow_tests",
"//flutter/fml:fml_tests",
"//flutter/runtime:runtime_tests",
"//flutter/shell/platform/fuchsia/flutter:flutter_runner_scenic_tests",
"//flutter/shell/platform/fuchsia/flutter:flutter_runner_tests",
]
Expand Down
26 changes: 26 additions & 0 deletions runtime/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
import("//flutter/common/config.gni")
import("//flutter/testing/testing.gni")

if (is_fuchsia) {
import("//build/fuchsia/sdk.gni")
import("//flutter/tools/fuchsia/fuchsia_archive.gni")
}

source_set("test_font") {
sources = [
"test_font_data.cc",
Expand Down Expand Up @@ -168,3 +173,24 @@ executable("runtime_unittests") {
":runtime_unittests_common",
]
}

if (is_fuchsia) {
fuchsia_test_archive("runtime_tests") {
deps = [
":runtime_fixtures",
":runtime_unittests",
]

binary = "runtime_unittests"

# TODO(gw280): https://github.com/flutter/flutter/issues/50294
# Right now we need to manually specify all the fixtures that are
# declared in the test_fixtures() call above.
resources = [
{
path = "$target_gen_dir/assets/kernel_blob.bin"
dest = "assets/kernel_blob.bin"
},
]
}
}
3 changes: 3 additions & 0 deletions testing/fuchsia/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ done
-f flow_tests-0.far \
-t flow_tests

./fuchsia_ctl -d $device_name test \
-f runtime_tests-0.far \
-t runtime_tests
1 change: 1 addition & 0 deletions testing/fuchsia/test_fars
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ flutter_runner_tests-0.far
flutter_runner_scenic_tests-0.far
fml_tests-0.far
flow_tests-0.far
runtime_tests-0.far

0 comments on commit 0517627

Please sign in to comment.