Skip to content

Commit

Permalink
[macOS] Build unittests on all macOS host builds (flutter#41215)
Browse files Browse the repository at this point in the history
Whether we're building an x64 or arm64 macOS host build, always build
unit tests.

Issue: flutter/flutter#124840
  • Loading branch information
cbracken authored Apr 14, 2023
1 parent 1ff5495 commit e9739bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testing/testing.gni
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ import("//third_party/dart/sdk_args.gni")
is_aot_test =
flutter_runtime_mode == "profile" || flutter_runtime_mode == "release"

# Unit tests targets are only enabled for host machines and Fuchsia right now
# Build unit tests when any of the following are true:
# * host_toolchain: non-cross-compile, so we can run tests on the host.
# * is_mac: arm64 builds can run x64 binaries.
# * is_fuchsia: build unittests for testing on device.
declare_args() {
enable_unittests = current_toolchain == host_toolchain || is_fuchsia
enable_unittests = current_toolchain == host_toolchain || is_fuchsia || is_mac
}

# Creates a translation unit that defines the flutter::testing::GetFixturesPath
Expand Down

0 comments on commit e9739bc

Please sign in to comment.