mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 15:21:54 +00:00
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:
parent
98e2f04473
commit
b06ba1b3e6
|
@ -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" "$@"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue