Home | History | Annotate | Download | only in 960-default-smali
      1 Smali-based tests for experimental interface default methods.
      2 
      3 Obviously needs to run under ART or a Java 8 Language runtime and compiler.
      4 
      5 When run a Main.smali file will be generated by the
      6 test/utils/python/generate_smali_main.py script. If we run with --jvm we will
      7 use the tools/extract-embedded-java script to turn the smali into equivalent
      8 Java using the embedded Java code.
      9 
     10 When updating be sure to write the equivalent Java code in comments of the smali
     11 files.
     12 
     13 Care should be taken when updating the generate_smali_main.py script. It must
     14 always return equivalent output when run multiple times.
     15 
     16 To update the test files do the following steps:
     17     <Add new classes/interfaces>
     18     <Add these classes/interfaces to ./smali/classes.xml>
     19     JAVA_HOME="/path/to/java-8-jdk" ../run-test --use-java-home --update --jvm --host 956-default-smali
     20     git add ./smali/classes.xml ./expected.txt
     21