flutter_flutter/testing/run_tests.sh
Jason Simmons d92d4c1b03 Script that runs engine unit tests and Dart tests of engine APIs (#3372)
The Dart tests were migrated from the flutter/test/engine suite in the
framework repository
2017-01-30 10:52:44 -08:00

19 lines
611 B
Bash
Executable File

#!/bin/bash
set -ex
out/host_debug_unopt/ftl_unittests
out/host_debug_unopt/synchronization_unittests
out/host_debug_unopt/wtf_unittests
pushd flutter/testing/dart
pub get
popd
# Verify that a failing test returns a failure code.
! out/host_debug_unopt/sky_shell --disable-observatory --disable-diagnostic --non-interactive --enable-checked-mode --packages=flutter/testing/dart/.packages flutter/testing/fail_test.dart
for TEST_SCRIPT in flutter/testing/dart/*.dart; do
out/host_debug_unopt/sky_shell --disable-observatory --disable-diagnostic --non-interactive --enable-checked-mode $TEST_SCRIPT
done