mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Sample usage: To run only the embedder_unittests in the engine with the profile variant, the command would be ``` ./flutter/testing/run_tests.py --variant host_profile_unopt --type engine --filter embedder_unittests `` To run only the geometry in Dart with the debug variant, the command would be ``` ./flutter/testing/run_tests.py --variant host_debug_unopt --type dart --filter geometry_test `` Without any argument, the behavior is identical to `run_tests.sh`. In a subsequent patch, I will enable running unit-tests on Windows in the tryjobs. The lack of compatibility of the shell script on Windows made it so that we never ran any Windows unit-tests in the tryjobs.
9 lines
220 B
Bash
Executable File
9 lines
220 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o pipefail -e;
|
|
|
|
BUILD_VARIANT="${1:-host_debug_unopt}"
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
python "${CURRENT_DIR}/run_tests.py" --variant "${BUILD_VARIANT}"
|