Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[macOS] Build unittests on all macOS host builds #41215

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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