Skip to content

Commit

Permalink
Enable runtime_unittests on Fuchsia
Browse files Browse the repository at this point in the history
  • Loading branch information
George Wright committed Feb 6, 2020
1 parent 6f95e0d commit 0be4b86
Show file tree
Hide file tree
Showing 4 changed files with 30 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
25 changes: 25 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,23 @@ executable("runtime_unittests") {
":runtime_unittests_common",
]
}

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

binary = "runtime_unittests"

# 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 @@ -57,3 +57,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 0be4b86

Please sign in to comment.