Enable runtime_unittests on Fuchsia

This commit is contained in:
George Wright
2020-02-06 11:19:47 -08:00
committed by George Wright
parent 10e7d17444
commit 36f5f76944
4 changed files with 31 additions and 0 deletions

View File

@@ -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",
]

View File

@@ -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",
@@ -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"
},
]
}
}

View File

@@ -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

View File

@@ -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