1 .class public LAllTests; 2 .super Ljava/lang/Object; 3 4 #This class is a wrapper for all the classes in the junit-tests directory 5 # 6 #To run the tests, you need to use dx on the junit jar and push that to the 7 #device/emulator, and then zip up the classes.dex containing this class 8 #and all of the tests and push that to the device/emulator. 9 # 10 #dx --dex --output=classes.dex junit-4.6.jar 11 #zip junit-4.6.zip classes.dex 12 #adb push junit-4.6.zip /data/local 13 #java -jar smali.jar --dex --output=classes.dex . 14 #zip smali-junit-tests.zip classes.dex 15 #adb push smali-junit-tests.zip /data/local 16 #adb shell dalvikvm -cp /data/local/junit-4.6.zip:/data/local/smali-junit-tests.zip org.junit.runner.JUnitCore AllTests 17 18 .annotation runtime Lorg/junit/runner/RunWith; 19 value = Lorg/junit/runners/Suite; 20 .end annotation 21 22 .annotation runtime Lorg/junit/runners/Suite$SuiteClasses; 23 value = { LExceptionTest;, 24 LFieldTest;, 25 LSpecialInstructionPaddingTest;, 26 LStaticFieldInitializerTest;, 27 LLineTest;, 28 LFormat10x;, 29 LFormat10t;, 30 LFormat11n;, 31 LFormat11x;, 32 LFormat12x;, 33 LFormat20t;, 34 LFormat21c;, 35 LFormat21h;, 36 LFormat21s;, 37 LFormat21t;, 38 LFormat22b;, 39 LFormat22c;, 40 LFormat22s;, 41 LFormat22t;, 42 LFormat22x;, 43 LFormat23x;, 44 LFormat30t;, 45 LFormat31i;, 46 LFormat31t;, 47 LFormat32x;, 48 LFormat35c;, 49 LFormat3rc;, 50 LFormat51l;, 51 LGotoTest;, 52 LAnnotationTests; 53 } 54 .end annotation