Hash :
1ad27152
Author :
Date :
2023-04-18T12:17:00
Switch angle_trace_tests scripts to android_helper
out/Android/angle_trace_tests {args}
replaces
(cd out/Android; python3 ../../src/tests/run_angle_android_test.py {args})
changes this generated file:
% grep angle_android_test_runner out/Android/bin/run_angle_trace_tests
args = ['@WrappedPath(../../src/tests/angle_android_test_runner.py)', 'gtest', '--output-directory', '@WrappedPath(.)', '--wrapper-script-args', '--runtime-deps-path', '@WrappedPath(gen.runtime/src/tests/angle_trace_tests__test_runner_script.runtime_deps)', '--suite', 'angle_trace_tests']
android_helper.py is already what we use for running traces on bots
(we don't invoke out/Android/angle_trace_tests when IsAndroid())
so this change affects only local runs
Keep run_angle_android_test.py to be able to run other suites,
but now it takes --suite instead of a positional arg (which is
consistent with how scripts are invoked on CI)
Bug: chromium:1441148
Change-Id: I5af10e8df7d9a651e0a9d52e47e3bce28d7a931b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4442006
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Roman Lavrov <romanl@google.com>
#! /usr/bin/env python3
#
# Copyright 2022 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# run_angle_android_test.py:
# Runs ANGLE tests using android_helper wrapper. Example:
# (cd out/Android; ../../src/tests/run_angle_android_test.py \
# --suite=angle_trace_tests --filter='*among_us' \
# --verbose --fixed-test-time-with-warmup=10)
import argparse
import logging
import os
import pathlib
import sys
import angle_android_test_runner
def main():
parser = argparse.ArgumentParser()
angle_android_test_runner.AddCommonParserArgs(parser)
args, extra_args = parser.parse_known_args()
return angle_android_test_runner.RunAndroidTestSuite(args, extra_args)
if __name__ == '__main__':
sys.exit(main())