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

Commit d35feb6

Browse files
committed
Adds impeller_unittests to run_tests.py
1 parent 2a4709a commit d35feb6

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

testing/run_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ def RunCCTests(build_dir, filter, coverage, capture_core_dump):
233233
RunEngineExecutable(build_dir, 'flutter_linux_unittests', filter, shuffle_flags, coverage=coverage)
234234
RunEngineExecutable(build_dir, 'flutter_glfw_unittests', filter, shuffle_flags, coverage=coverage)
235235

236+
# Impeller tests are only supported on macOS for now.
237+
if IsMac():
238+
RunEngineExecutable(build_dir, 'impeller_unittests', filter, shuffle_flags, coverage=coverage)
239+
236240

237241
def RunEngineBenchmarks(build_dir, filter):
238242
print("Running Engine Benchmarks.")

tools/gn

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ def to_gn_args(args):
251251
if sys.platform.startswith(('cygwin', 'win')):
252252
gn_args['dart_use_fallback_root_certificates'] = True
253253

254-
255254
# Make sure host_cpu matches the bit width of target_cpu on x86.
256255
if gn_args['target_cpu'] == 'x86':
257256
gn_args['host_cpu'] = 'x86'
@@ -414,6 +413,9 @@ def to_gn_args(args):
414413
with open(os.path.join(os.path.dirname(__file__), 'fuchsia/target_api_level')) as f:
415414
gn_args['fuchsia_target_api_level'] = int(f.read().strip())
416415

416+
# Impeller flags.
417+
gn_args['impeller_enable_playground'] = args.enable_impeller_playground
418+
417419
return gn_args
418420

419421
def parse_args(args):
@@ -525,6 +527,10 @@ def parse_args(args):
525527

526528
parser.add_argument('--fuchsia-target-api-level', dest='fuchsia_target_api_level')
527529

530+
# Impeller flags.
531+
parser.add_argument('--enable-impeller-playground', default=False, action='store_true',
532+
help='Whether impeller unit tests run in playground mode')
533+
528534
# Sanitizers.
529535
parser.add_argument('--asan', default=False, action='store_true')
530536
parser.add_argument('--lsan', default=False, action='store_true')

0 commit comments

Comments
 (0)