diff options
author | 2016-02-19 16:54:05 +0100 | |
---|---|---|
committer | 2016-02-23 17:46:39 +0100 | |
commit | fbeeb47fc63ec85891198b51b2309bb15f26527e (patch) | |
tree | 3bc681ee8cf52d9e6046aea594a6eda357fa64af | |
parent | 25633b09df6747d19d1cb30ea2f34d443027c006 (diff) |
Compile checker run-tests with Jack
Bug: 25635944
Bug: 19467889
Change-Id: I3c3fcbcbd2f6c142dbea279a9ecd9d372e79b3b9
-rw-r--r-- | test/555-checker-regression-x86const/build | 10 | ||||
-rwxr-xr-x | test/run-test | 6 |
2 files changed, 7 insertions, 9 deletions
diff --git a/test/555-checker-regression-x86const/build b/test/555-checker-regression-x86const/build index 09dcc363dd..92ddfc9a58 100644 --- a/test/555-checker-regression-x86const/build +++ b/test/555-checker-regression-x86const/build @@ -27,14 +27,12 @@ mkdir classes-ex mv classes/UnresolvedClass.class classes-ex if [ ${USE_JACK} = "true" ]; then - # Create .jack files from classes generated with javac. - ${JILL} classes --output classes.jack - ${JILL} classes-ex --output classes-ex.jack + jar cf classes.jill.jar -C classes . + jar cf classes-ex.jill.jar -C classes-ex . - # Create DEX files from .jack files. - ${JACK} --import classes.jack --output-dex . + ${JACK} --import classes.jill.jar --output-dex . zip $TEST_NAME.jar classes.dex - ${JACK} --import classes-ex.jack --output-dex . + ${JACK} --import classes-ex.jill.jar --output-dex . zip ${TEST_NAME}-ex.jar classes.dex else if [ ${NEED_DEX} = "true" ]; then diff --git a/test/run-test b/test/run-test index f1875d71a5..a7a9876bb6 100755 --- a/test/run-test +++ b/test/run-test @@ -677,9 +677,9 @@ function arch_supports_read_barrier() { # Tests named '<number>-checker-*' will also have their CFGs verified with # Checker when compiled with Optimizing on host. if [[ "$TEST_NAME" =~ ^[0-9]+-checker- ]]; then - # Jack does not necessarily generate the same DEX output than dx. Because these tests depend - # on a particular DEX output, keep building them with dx for now (b/19467889). - USE_JACK="false" + # Disable optimizations where Jack may simplify statements with constants + # (like 'null instanceof SomeType'). + JACK="$JACK -D jack.optimization.expression-simplifier=false" if [ "$runtime" = "art" -a "$image_suffix" = "-optimizing" ]; then # Optimizing has read barrier support for certain architectures |