Add --cdex-fast and --cdex-none variant to testrunner
Added --cdex-fast and --cdex-none variant options. These are passed
to ART through the compact-dex-level option.
Bug: 63756964
Test: test/testrunner/testrunner.py --host --cdex-fast -j40
Test: Commented out header writing in compact_dex_writer.cc and confirmed tests fail.
Change-Id: I408555b48286d2c4c5eca72e2cabe956aa1e9835
diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar
index 31f43fc..4844d1e 100755
--- a/test/etc/run-test-jar
+++ b/test/etc/run-test-jar
@@ -184,6 +184,10 @@
elif [ "x$1" = "x--prebuild" ]; then
PREBUILD="y"
shift
+ elif [ "x$1" = "x--compact-dex-level" ]; then
+ shift
+ COMPILE_FLAGS="${COMPILE_FLAGS} --compact-dex-level=$1"
+ shift
elif [ "x$1" = "x--jvmti-redefine-stress" ]; then
# APP_IMAGE doesn't really work with jvmti redefine stress
USE_JVMTI="y"