Run 'analyzer' tests with '--show-package-warnings' flag.

This does not make any new tests to pass or fail though.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//16278009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23633 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
scheglov@google.com 2013-06-05 15:26:56 +00:00
parent 98e2f04473
commit b06ba1b3e6
2 changed files with 18 additions and 1 deletions

View file

@ -38,4 +38,18 @@ fi
JAR_FILE="$JAR_DIR/dartanalyzer.jar"
exec java -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@"
EXTRA_JVMARGS="-Xss2M "
OS=`uname | tr "[A-Z]" "[a-z]"`
if [ "$OS" == "darwin" ] ; then
# Bump up the heap on Mac VMs, some of which default to 128M or less.
EXTRA_JVMARGS+=" -Xmx256M -client "
else
# On other architectures
# -batch invocations will do better with a server vm
# invocations for analyzing a single file do better with a client vm
if [ $FOUND_BATCH = 0 ] ; then
EXTRA_JVMARGS+=" -client "
fi
fi
exec java $EXTRA_JVMARGS -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@"

View file

@ -1834,6 +1834,9 @@ class TestUtils {
if (compiler == "dart2js" && configuration["csp"]) {
args.add("--disallow-unsafe-eval");
}
if (compiler == "dartanalyzer" || compiler == "dart2analyzer") {
args.add("--show-package-warnings");
}
return args;
}