diff options
| author | 2014-07-23 11:52:52 -0700 | |
|---|---|---|
| committer | 2014-07-23 11:52:52 -0700 | |
| commit | 85139a3b78d942c810a157687dee0fb6a67207ae (patch) | |
| tree | e8a2354a569b3c73dc1144e61d3924d40e5c6a13 | |
| parent | cf60db36f19943242fb14657dd5a452a650d42dc (diff) | |
Fix run-test --trace option if --host is specified after.
Change-Id: I3911428ba762657c4433ab23e60f1771c9ddb2fe
| -rwxr-xr-x | test/run-test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/run-test b/test/run-test index 71a1d70281..1ed03ea5c5 100755 --- a/test/run-test +++ b/test/run-test @@ -72,6 +72,7 @@ runtime="art" usage="no" build_only="no" suffix64="" +trace="false" while true; do if [ "x$1" = "x--host" ]; then @@ -176,7 +177,7 @@ while true; do suffix64="64" shift elif [ "x$1" = "x--trace" ]; then - run_args="${run_args} --runtime-option -Xmethod-trace --runtime-option -Xmethod-trace-file:${DEX_LOCATION}/trace.bin --runtime-option -Xmethod-trace-file-size:2000000" + trace="true" shift elif expr "x$1" : "x--" >/dev/null 2>&1; then echo "unknown $0 option: $1" 1>&2 @@ -188,6 +189,10 @@ while true; do done mkdir -p $tmp_dir +if [ "$trace" = "true" ]; then + run_args="${run_args} --runtime-option -Xmethod-trace --runtime-option -Xmethod-trace-file:${DEX_LOCATION}/trace.bin --runtime-option -Xmethod-trace-file-size:2000000" +fi + # Most interesting target architecture variables are Makefile variables, not environment variables. # Try to map the suffix64 flag and what we find in ${OUT}/data/art-test to an architecture name. function guess_arch_name() { |