77 Commits

Author SHA1 Message Date
Naud Ghebre
ea8342fc2b [dart_test_runner] Adapt the dart runner to implement the suite fidl protocol so that it can be used in the v2 testing framework. (flutter/engine#32751) 2022-04-28 12:55:55 -07:00
Chase Latta
6e983493b3 Add test facets to test_suite.cml (flutter/engine#29697) 2021-11-11 16:11:41 -08:00
David Worsham
ad611e36f1 fuchsia: Enable integration tests (flutter/engine#29565) 2021-11-05 18:07:55 -07:00
Dan Field
afdd0a3603 Re-enable A11yTreeIsConsistent with higher timeout (flutter/engine#29367) 2021-11-04 14:53:02 -07:00
Rich Kadel
c2ad820db9 Migrated integration_flutter_test/embedder (scenic integration test) from fuchsia.git (flutter/engine#26880) 2021-09-30 17:10:02 -07:00
David Worsham
934eced2e4 fuchsia: Add hermetic SessionConnection tests; rename (flutter/engine#27327) 2021-07-20 13:52:09 -07:00
Darren Chan
cbcbbf7102 Migrate non-scenic-based fuchsia tests to cfv2. (flutter/engine#27241)
This PR also wraps up the soft transition for #27417.

Because some unit tests depend on the real Scenic which isn't hermetic, `flutter_runner_tests` and `flutter_runner_scenic_tests` aren't currently compatible with cfv2.
This will change once a FakeScenic is created (https://fxbug.dev/79873).

See https://fxbug.dev/79691.
2021-07-16 23:41:41 -04:00
Darren Chan
8c6b37209c Add flutter test suites to test_suites.yaml. (flutter/engine#27417)
See https://fxbug.dev/80614 and https://fxbug.dev/79691
2021-07-15 15:37:47 -04:00
Darren Chan
f90417a377 Switch test_suites to yaml. (flutter/engine#27368)
This will allow us to include package, url, and argument information in the engine repo, requiring less infra soft transitions.

The schema of this file should be something like:
```yaml
test_suites:
 - package: tests-0.far
 - url: fuchsia-pkg://fuchsia.com/tests/meta#tests.cm
 - test_args: -- --gtest_filter=-Test.Disabled
```

test_args is optional.

See https://fxbug.dev/79691.
2021-07-14 05:00:56 -04:00
Darren Chan
cc3f93e26d Prepare for cfv2 unittests. (flutter/engine#27036) 2021-07-01 13:11:01 -07:00
Darren Chan
d67fdf5256 Provide the following information to the inspect tree: (flutter/engine#26179) 2021-05-21 11:09:02 -07:00
Felipe Archondo
2043d0839a [fuchsia] rename SessionConnection to DefaultSessionConnection (flutter/engine#26104)
In preparation for #25551, rename SessionConnection to
DefaultSessionConnection. The plan is to have SessionConnection be an
interface we can create a fake of for testing purposes.
2021-05-13 17:59:16 -04:00
David Worsham
f3cd053795 Revert "[fuchsia] Use scenic allocator service (#25385)" (flutter/engine#25655)
This reverts commit f0cf6ac1a8488f12722a5be77f0ef5fe8d0d4411.
2021-04-19 15:06:58 -07:00
chandarrengoog
62f12e5fbc Update gtest_filters to disable TimeSensitiveTest. (flutter/engine#25649)
Fix typo.
2021-04-19 10:22:38 -07:00
David Reveman
f0cf6ac1a8 [fuchsia] Use scenic allocator service (flutter/engine#25385)
Switch to scenic allocator and Image3 API.

Co-authored-by: David Reveman <reveman@google.com>
2021-04-16 17:12:48 -04:00
chandarrengoog
26574f5de2 Update gtest_filters. (flutter/engine#25309)
Account for https://flutter-review.googlesource.com/c/recipes/+/11700.
2021-04-02 14:32:55 -07:00
Yilong Li
eaaa732b80 fuchsia: Allow access to system services in tests. (flutter/engine#25303)
Per https://fuchsia.dev/fuchsia-src/concepts/testing/v1_test_component,
in order to access non-basic system services like Vulkan loader and
sysmem allocator, we need to add "system-services" field to the cmx
metadata file.

Unittests like "shell_test" requires Vulkan to run properly, so we
add Vulkan loader and sysmem services; for Flutter runner tests,
we also need to add fuchsia.ui.scenic.Scenic since the test needs
to create a Scenic session as well.

TEST=shell_tests (SkpWarmupTest.Basic/SkpWarmupTest.Image)
     flutter_runner_tests (EngineTest.SkpWarmUp) on FEMU
2021-03-31 13:43:33 -07:00
chandarrengoog
b730d4b621 Copy gtest_filters from femu_test.py. (flutter/engine#25300)
Start migrating away from hard-coded gtest_filters in femu_test.py
2021-03-30 10:35:15 -07:00
Filip Filmar
943ae09365 [fuchsia][input] Migrate Flutter to "input3" (flutter/engine#23262) 2021-01-07 15:39:03 -08:00
Tamir Duberstein
6f70c0c330 [fuchsia] Remove fuchsia.netstack.Netstack (flutter/engine#23082) 2020-12-15 09:48:01 -08:00
freiling
4903a92b2b SKP based shader warmup (flutter/engine#20643) 2020-11-04 23:19:02 -08:00
Filip Filmar
cb5828068f [fuchsia] Adds a test for timezone change (flutter/engine#21934) 2020-10-23 18:52:02 -07:00
godofredoc
f5f38e9000 Collect logs in the background. (flutter/engine#21828)
* Collect logs in the background.

* Use fuchsia_ctl log_file option.

* Delete the correct file.

* Remove commented code.
2020-10-16 21:51:37 -07:00
George Wright
ea9cc6cf3c Run embedder_tests on Fuchsia CI (flutter/engine#21462) 2020-09-28 12:22:02 -07:00
Casey Hillers
b3d1cff1a1 [fuchsia] Add fuchsia_ctl func to test script (flutter/engine#20827) 2020-08-27 17:38:02 -07:00
Casey Hillers
ff18636371 Link to SDK version of script (flutter/engine#20798) 2020-08-26 16:03:01 -07:00
Kaushik Iska
a47cc2d479 Revert "[fuchsia] Adds a test for clock change (#19993)" (flutter/engine#20790)
This reverts commit 8b200432726241370f374071448f13bd4f5bf94d.
2020-08-26 12:29:03 -07:00
Filip Filmar
8b20043272 [fuchsia] Adds a test for clock change (flutter/engine#19993)
This is a Fuchsia-only shell test, confirming that when the timezone
setting is changed on the realm via Fuchsia's FIDL interface
`fuchsia.settings.Intl`, the Dart isolate running in that realm receives
the change and starts reporting the appropriate timestamp.

We already have a [similar test][tst] that verifies the timezones in the
dart VM matches the local timezone at start, but there was no test that
also verified timezone changes.

[tst]: https://github.com/flutter/engine/blob/master/shell/common/shell_unittests.cc#L1166

See issue #61284
2020-08-25 16:24:25 -07:00
David Worsham
e335891caf fuchsia: Rollback broken SDK and re-enable test (flutter/engine#20699)
https://github.com/flutter/flutter/issues/64343
2020-08-21 16:05:36 -07:00
David Worsham
ee6a9a8755 fuchsia: Disable flaky test (flutter/engine#20697) 2020-08-21 12:26:15 -07:00
David Worsham
3a6e0d47c6 fuchsia: Convert legacy permutations to build flag (flutter/engine#20647) 2020-08-19 19:09:51 -07:00
David Worsham
4e60afdf2a Fix broken shell_unittests on Fuchsia (flutter/engine#20422)
Fixes https://github.com/flutter/flutter/issues/53399
2020-08-11 17:31:25 -07:00
David Worsham
f90a73dfee Disable flaky fuchsia test (flutter/engine#20217) 2020-08-03 21:40:23 -07:00
Felipe Archondo
6cdf2e8d43 fix and re-enable SessionConnection unit tests (flutter/engine#19812)
[fuchsia] fix and re-enable SessionConnection unittests

This change waits until Scenic is initialized before beginning the test
logic. This should fix the issue where the test starts running before or
during Scenic startup.
2020-07-23 12:15:07 -04:00
godofredoc
354d116cd6 Re-enable logging. (flutter/engine#19756)
* Re-enable logging.

fuchsia_ctl was updated to support processing the logs as a stream
instead of keeping them in the process.

Bug:
  flutter/flutter#57273

* Add path to logs file.

* Add the isolated output env directly to the script.

* Save log to local directory and printing it using cat.

* Try collecting and printing logs as separate steps.
2020-07-15 20:13:38 -07:00
Kaushik Iska
51a5b7eb8d Disable session_connection_unittests (flutter/engine#19744)
Bug: https://github.com/flutter/flutter/issues/61463
2020-07-14 12:09:46 -07:00
godofredoc
f50587fca3 Remove reference to dev_finder. (flutter/engine#19679)
This is to replace the dev_finder with device-finder.

Bug:
  fxb/55369
2020-07-14 08:22:13 -07:00
David Worsham
cbd3cd9c0d fuchsia: Enable most unittests (flutter/engine#19583)
Tweak the primary flutter build rule so that fuchsia is more similar to
other platforms in how tests and the shell are built.

Only embedder_unittests and GLFW tests are disabled on Fuchsia now.

TEST: Ran unittests on host/fuchsia; workstation on fuchsia
BUG: fxb/53847, fxb/54056
2020-07-13 17:36:19 -07:00
Filip Filmar
df31819baa [shell] Adds a shell test for timezone fetches (flutter/engine#19108)
Adds a test that verifies that the view of the local time is the same in
the Dart isolate and the process that is running the test.

Specifically, this test is useful to verify that the code paths for
timezone retrieval do not break while the underlying FIDL protocols are
being refactored.

However, since the check is generally useful, the test is written as a
general flutter test.

Running this on Fuchsia required adding `fuchsia.intl.ProfileProvider`
to the CMX file that is used for all build Fuchsia packages.

Testing is a bit involved on Fuchsia.  You must build the Fuchsia
package `fluter/shell/common:shell_tests` and publish it to the dev
repository for your Fuchsia device.  It seems that a way to do so is to
modify the script `flutter/tools/fuchsia/build_fuchsia_artifacts.py` and
modify its function `GetTargetsToBuild` like so:

```
def GetTargetsToBuild(product=False):
  targets_to_build = [
    'flutter/shell/platform/fuchsia:fuchsia',
    'flutter/shell/common:shell_tests',
  ]
  return targets_to_build
```

Next, the Fuchsia packages need to be compiled and published.

Once done, the following `fx` invocation will run the test, assuming
that you have your Fuchsia setup:

```
fx shell run \
    fuchsia-pkg://fuchsia.com/shell_tests#meta/shell_tests.cmx \
    -- --gtest_filter=ShellTest.LocaltimesMatch
```
2020-06-18 09:56:18 -07:00
David Worsham
384105d5d8 fuchsia: Disable flaky TimeSensistiveTests (flutter/engine#18656)
https://github.com/flutter/flutter/issues/58211 tracks re-enabling these
tests.
2020-05-28 17:35:14 -07:00
George Wright
76c1ffec81 Implement WriteAtomically using write/fsync on all platforms, and enable (flutter/engine#18320) 2020-05-21 12:07:03 -07:00
David Worsham
9ed56044d4 fuchsia: Fix runtime_tests and shell_tests (flutter/engine#18492) 2020-05-20 18:47:02 -07:00
George Wright
955906137a Set caches directory on Fuchsia (flutter/engine#18321) 2020-05-20 11:05:55 -07:00
liyuqian
256ab19662 Automatically remove old persistent cache dir (flutter/engine#18244)
Fixes https://github.com/flutter/flutter/issues/53445
2020-05-15 14:15:59 -07:00
Kaushik Iska
900ca8419e [fuchsia] Remove log dumping to prevent timeouts (flutter/engine#18409)
See: https://github.com/flutter/flutter/issues/57273
2020-05-14 21:10:49 -07:00
godofredoc
a823e647fd Disable flow tests. (flutter/engine#18405)
seems like flow tests are leaving devices in a bad state.
2020-05-14 19:04:10 -07:00
godofredoc
32382161fd Re-enable Fuchsia tests (flutter/engine#18392)
This reverts commit 3f2ced919df85b318ca2261af82130b64c0f4e63.
2020-05-14 14:56:14 -07:00
Kaushik Iska
3f2ced919d Revert "Re-enable Fuchsia tests (#18342)" (flutter/engine#18345)
This reverts commit 8a8fe6e81f6163b934cbcbd4750f0e6dc018176a.
2020-05-13 10:21:25 -07:00
Kaushik Iska
8a8fe6e81f Re-enable Fuchsia tests (flutter/engine#18342)
Co-authored-by: Kaushik Iska <kaushikiska@google.com>
2020-05-13 09:21:34 -07:00
Kaushik Iska
31d2a40029 Completely disable paving the device on Fuchsia (flutter/engine#18340) 2020-05-13 07:42:22 -07:00