forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests.sh
executable file
·39 lines (30 loc) · 1.21 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -o pipefail -e;
HOST_DIR=${1:-host_debug_unopt}
# TODO(dnfield): Re-enable this when the upstream Dart changes that make it not be flaky land.
# out/$HOST_DIR/embedder_unittests
out/$HOST_DIR/flow_unittests
out/$HOST_DIR/fml_unittests --gtest_filter="-*TimeSensitiveTest*"
out/$HOST_DIR/runtime_unittests
out/$HOST_DIR/shell_unittests
out/$HOST_DIR/synchronization_unittests
out/$HOST_DIR/txt_unittests --font-directory=flutter/third_party/txt/third_party/fonts
# pubspec.yaml points to these files
./flutter/tools/gn --unoptimized
ninja -C out/host_debug_unopt flutter/sky/packages
pushd flutter/testing/dart
pub get
popd
run_test () {
out/$HOST_DIR/dart out/$HOST_DIR/gen/frontend_server.dart.snapshot --sdk-root out/$HOST_DIR/flutter_patched_sdk --incremental --strong --target=flutter --packages flutter/testing/dart/.packages --output-dill out/$HOST_DIR/engine_test.dill $1
out/$HOST_DIR/flutter_tester --disable-observatory --use-test-fonts out/$HOST_DIR/engine_test.dill
}
# Verify that a failing test returns a failure code.
! run_test flutter/testing/smoke_test_failure/fail_test.dart
for TEST_SCRIPT in flutter/testing/dart/*.dart; do
run_test $TEST_SCRIPT
done
pushd flutter
ci/test.sh
popd
exit 0