blob: 16b74286227567dac16ae556ed80e86a1723ce68 [file] [log] [blame]
#!/bin/bash
set -ex
out/host_debug_unopt/fxl_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/flutter_tester --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/flutter_tester --disable-observatory --disable-diagnostic --non-interactive --enable-checked-mode $TEST_SCRIPT
out/host_debug_unopt/flutter_tester --disable-observatory --disable-diagnostic --non-interactive $TEST_SCRIPT
done