else
run_test_options += --build-with-javac-dx
endif
+ ifeq ($(ART_TEST_WITH_STRACE),true)
+ run_test_options += --strace
+ endif
ifeq ($(ART_TEST_RUN_TEST_ALWAYS_CLEAN),true)
run_test_options += --always-clean
endif
output="output.txt"
build_output="build-output.txt"
cfg_output="graph.cfg"
+strace_output="strace-output.txt"
lib="libartd.so"
run_args="--quiet"
build_args=""
basic_verify="false"
gc_verify="false"
gc_stress="false"
+strace="false"
always_clean="no"
never_clean="no"
have_dex2oat="yes"
run_args="${run_args} --gdb"
dev_mode="yes"
shift
+ elif [ "x$1" = "x--strace" ]; then
+ strace="yes"
+ run_args="${run_args} --invoke-with strace --invoke-with -o --invoke-with $tmp_dir/$strace_output"
+ shift
elif [ "x$1" = "x--zygote" ]; then
run_args="${run_args} --zygote"
shift
echo '#################### diffs'
diff --strip-trailing-cr -u "$expected" "$output" | tail -n 2000
echo '####################'
+ if [ "$strace" = "yes" ]; then
+ echo '#################### strace output'
+ tail -n 2000 "$tmp_dir/$strace_output"
+ echo '####################'
+ fi
echo ' '
fi