54 Commits

Author SHA1 Message Date
George Wright
5eff2d5420
Run embedder_tests on Fuchsia CI (#21462) 2020-09-28 12:22:02 -07:00
Casey Hillers
25a23baeee
[fuchsia] Add fuchsia_ctl func to test script (#20827) 2020-08-27 17:38:02 -07:00
Casey Hillers
a065920a41
Link to SDK version of script (#20798) 2020-08-26 16:03:01 -07:00
Kaushik Iska
5952760acf
Revert "[fuchsia] Adds a test for clock change (#19993)" (#20790)
This reverts commit 3fe49ec35d38342407a230d8860a4d647e436ae5.
2020-08-26 12:29:03 -07:00
Filip Filmar
3fe49ec35d
[fuchsia] Adds a test for clock change (#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
fe8c154452
fuchsia: Rollback broken SDK and re-enable test (#20699)
https://github.com/flutter/flutter/issues/64343
2020-08-21 16:05:36 -07:00
David Worsham
158eacd843
fuchsia: Disable flaky test (#20697) 2020-08-21 12:26:15 -07:00
David Worsham
4dc866283d
fuchsia: Convert legacy permutations to build flag (#20647) 2020-08-19 19:09:51 -07:00
David Worsham
6381b1511b
Fix broken shell_unittests on Fuchsia (#20422)
Fixes https://github.com/flutter/flutter/issues/53399
2020-08-11 17:31:25 -07:00
David Worsham
033dd45607
Disable flaky fuchsia test (#20217) 2020-08-03 21:40:23 -07:00
Felipe Archondo
1820dbedd3
fix and re-enable SessionConnection unit tests (#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
461f64ede8
Re-enable logging. (#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
5fee6e9e01
Disable session_connection_unittests (#19744)
Bug: https://github.com/flutter/flutter/issues/61463
2020-07-14 12:09:46 -07:00
godofredoc
90f8b02cd4
Remove reference to dev_finder. (#19679)
This is to replace the dev_finder with device-finder.

Bug:
  fxb/55369
2020-07-14 08:22:13 -07:00
David Worsham
9353692cdb
fuchsia: Enable most unittests (#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
1551b74213
[shell] Adds a shell test for timezone fetches (#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
389a59d5df
fuchsia: Disable flaky TimeSensistiveTests (#18656)
https://github.com/flutter/flutter/issues/58211 tracks re-enabling these
tests.
2020-05-28 17:35:14 -07:00
George Wright
80093aaa4b
Implement WriteAtomically using write/fsync on all platforms, and enable (#18320) 2020-05-21 12:07:03 -07:00
David Worsham
1429534707
fuchsia: Fix runtime_tests and shell_tests (#18492) 2020-05-20 18:47:02 -07:00
George Wright
cdc5ed3ad9
Set caches directory on Fuchsia (#18321) 2020-05-20 11:05:55 -07:00
liyuqian
a4fb3de207
Automatically remove old persistent cache dir (#18244)
Fixes https://github.com/flutter/flutter/issues/53445
2020-05-15 14:15:59 -07:00
Kaushik Iska
d8604b1700
[fuchsia] Remove log dumping to prevent timeouts (#18409)
See: https://github.com/flutter/flutter/issues/57273
2020-05-14 21:10:49 -07:00
godofredoc
ee2c9df4cf
Disable flow tests. (#18405)
seems like flow tests are leaving devices in a bad state.
2020-05-14 19:04:10 -07:00
godofredoc
aaf9e79f1d
Re-enable Fuchsia tests (#18392)
This reverts commit ae2222f47e788070c09020311b573542b9706a78.
2020-05-14 14:56:14 -07:00
Kaushik Iska
ae2222f47e
Revert "Re-enable Fuchsia tests (#18342)" (#18345)
This reverts commit efdc0994a064160d4331c5ec89e24e5ac4a7f641.
2020-05-13 10:21:25 -07:00
Kaushik Iska
efdc0994a0
Re-enable Fuchsia tests (#18342)
Co-authored-by: Kaushik Iska <kaushikiska@google.com>
2020-05-13 09:21:34 -07:00
Kaushik Iska
2f8495a5e6
Completely disable paving the device on Fuchsia (#18340) 2020-05-13 07:42:22 -07:00
Kaushik Iska
f6d3e7f21c
Disable all fuchsia tests temporarily (#18326) 2020-05-12 17:31:50 -07:00
Kaushik Iska
a6baef146d
Disable flow tests on Fuchsia (#18323) 2020-05-12 16:36:42 -07:00
Kaushik Iska
6689481c4e
Temporarily disabling the fuchsia shell, runtime tests (#18319)
see: https://github.com/flutter/flutter/issues/57061
2020-05-12 15:57:36 -07:00
godofredoc
027eff8b19
Reenable flutter scenic test to identify crashes and follow up on fixes. (#17979) 2020-04-27 15:14:04 -07:00
godofredoc
e83f30c590
Pass amber-files directory to tests. (#17815)
* Pass amber-files directory to tests.

Bug:
  https://github.com/flutter/flutter/issues/50249
  https://github.com/flutter/flutter/issues/55165

* Redirect tar stdout to dev/null and fix param name.

* Keep scenic tests disabled.
2020-04-21 18:54:21 -07:00
godofredoc
7720ae7dd7
Updates to use predefined keys. (#17716)
* Updates to use predefined keys.

It starts using:
  * timeouts for paving.
  * timeouts for ssh commands.
  * timeouts for tests.

https://github.com/flutter/flutter/issues/54416

* Update key location and autogenerate public key.

* Use ssh-keygen instead of openssl.

* Fix typo on test name.
2020-04-14 18:29:13 -07:00
liyuqian
a8af96da66
Read SkSLs from asset (#17601)
Fixes https://github.com/flutter/flutter/issues/53117

Test added:
- ShellTest.CanLoadSkSLsFromAsset
2020-04-10 00:16:33 -07:00
godofredoc
e7e4633613
Add logs between fuchsia test steps. (#17584)
* Add logs between fuchsia test steps.

Adding logs and date time in between steps will simplify finding the
steps that are failing during the fuchsia tests.

https://github.com/flutter/flutter/issues/54253

* Use date command instead of DATE..

* Remove extra log line.

* Same spacer lenght for all the log lines.
2020-04-08 12:50:17 -07:00
liyuqian
193bb355d9
Disable OnServiceProtocolGetSkSLsWorks in Fuchsia (#17361) 2020-03-30 14:31:03 -07:00
George Wright
2f89d07d3f
Disable flutter_runner_scenic_tests until the instability is resolved (#17141) 2020-03-13 13:56:01 -07:00
George Wright
e5091a8ca2
Enable Vulkan-related shell unittests on Fuchsia (#16718)
Also enable tests that were disabled due to MessageLoop flakiness resolved by https://github.com/flutter/engine/pull/16568
2020-02-21 11:01:16 -08:00
freiling
bc4a27fc2f
[shell tests] Integrate Vulkan with Shell Tests (#16621)
This change creates a test only implementation of flutter::Surface backed by an
offscreen Vulkan GrContext. Much of the code in this test Surface was lifted
from flutter::VulkanWindow which I was unable to use without extricating it
from the VkSurface/VkSwapchain code which we do not want to use in offscreen
tests. I would recommend refactoring VulkanWindow to separate GrContext
creation and VkSwapchain creation in order to promote greater code reuse
between onscreen and offscreen vulkan paths.

This change is excersised thoroughly by the shell tests and was manually
tested against these tests on Fuchsia on Intel.
2020-02-20 11:37:00 -08:00
George Wright
400ed7cebc Revert "[shell tests] Integrate Vulkan with Shell Tests"
This reverts commit 594f6608276cbcb7be2b89defcfb6eef03321fad.
2020-02-14 13:02:38 -08:00
Forrest Reiling
594f660827 [shell tests] Integrate Vulkan with Shell Tests
This change creates a test only implementation of flutter::Surface backed by an
offscreen Vulkan GrContext. Much of the code in this test Surface was lifted
from flutter::VulkanWindow which I was unable to use without extricating it
from the VkSurface/VkSwapchain code which we do not want to use in offscreen
tests. I would recommend refactoring VulkanWindow to separate GrContext
creation and VkSwapchain creation in order to promote greater code reuse
between onscreen and offscreen vulkan paths.

This change is excersised thoroughly by the shell tests and was manually
tested against these tests on Fuchsia on Intel.
2020-02-14 12:56:16 -08:00
George Wright
aece5ad714
Move log_listener call into the reboot trap (#16564) 2020-02-12 15:09:38 -08:00
George Wright
8a6b9498b2
[Fuchsia] Dump syslog output after tests have run (#16561) 2020-02-12 13:12:15 -08:00
George Wright
964ae1009e
Disable ShellTest.WaitForFirstFrameTimeout on Fuchsia (#16495) 2020-02-07 13:13:59 -08:00
George Wright
d2aab27b4f
Enable shell_unittests on Fuchsia with Vulkan dependencies. (#16376)
This also adds a dependency on SwiftShader's Vulkan frontend.
2020-02-06 15:07:01 -08:00
George Wright
0517627988 Enable runtime_unittests on Fuchsia 2020-02-06 13:52:33 -08:00
George Wright
3ac1e6d8b5
Disable unit tests using --gtest-filter instead of at compile time (#16472) 2020-02-06 13:01:14 -08:00
Felipe Archondo
11b770489f
[fuchsia] Migrate flutter runner to use Present2 (#14162)
No change in behavior expected. We have 2 frames in flight as before. By switching to Present2 and specifying a kMaxFramesInFlight however, we allow us greater flexibility to change how Flutter schedules its frames.

This change also adds tests for SessionConnection and VsyncRecorder.
2020-02-05 13:51:04 -08:00
Dan Field
3c19ecaaf2
use echo to test whether host is up (#16322) 2020-01-31 23:46:57 -08:00
Dan Field
a48ac35f0c
try 10 times (#15653) 2020-01-14 17:58:07 -08:00