diff options
Diffstat (limited to 'test/run-test')
-rwxr-xr-x | test/run-test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/run-test b/test/run-test index 34b06cc..d1c5bb2 100755 --- a/test/run-test +++ b/test/run-test @@ -298,6 +298,17 @@ chmod 755 "$run" export TEST_NAME=`basename ${test_dir}` +# To cause tests to fail fast, limit the file sizes created by dx, dex2oat and ART output to 2MB. +file_size_limit=2048 +if echo "$test_dir" | grep 089; then + file_size_limit=5120 +elif echo "$test_dir" | grep 083; then + file_size_limit=5120 +fi +if ! ulimit "$file_size_limit"; then + echo "ulimit file size setting failed" +fi + good="no" if [ "$dev_mode" = "yes" ]; then "./${build}" 2>&1 @@ -376,7 +387,7 @@ fi echo '#################### info' cat "${td_info}" | sed 's/^/# /g' echo '#################### diffs' - diff --strip-trailing-cr -u "$expected" "$output" + diff --strip-trailing-cr -u "$expected" "$output" | tail -n 500 echo '####################' echo ' ' fi |