flutter_flutter/testing/run_tests.sh
Michael Klimushyn ba9b90766b
Add run_tests.sh to cirrus (#6441)
This replaces `ci/test.sh` with `run_tests.sh`. `run_tests.sh` includes
`ci/test.sh` and multiple other tests.

Partially addresses flutter/flutter#22682. Temporarily skipped tests
should be fixed and re-enabled in a follow-up commit.
2018-10-05 11:56:13 -07:00

28 lines
759 B
Bash
Executable File

#!/bin/bash
set -o pipefail -e;
out/host_debug_unopt/fml_unittests
out/host_debug_unopt/synchronization_unittests
pushd flutter/testing/dart
pub get
popd
run_test () {
out/host_debug_unopt/dart out/host_debug_unopt/gen/frontend_server.dart.snapshot --sdk-root out/host_debug_unopt/flutter_patched_sdk --incremental --strong --target=flutter --packages flutter/testing/dart/.packages --output-dill out/host_debug_unopt/engine_test.dill $1
out/host_debug_unopt/flutter_tester --disable-observatory out/host_debug_unopt/engine_test.dill
}
# Verify that a failing test returns a failure code.
! run_test flutter/testing/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