mirror of
https://github.com/revanced/Apktool.git
synced 2024-08-28 18:16:41 +02:00
test: add triple dex test on aapt2
This commit is contained in:
parent
9170c5a04b
commit
5658c959b4
@ -124,4 +124,24 @@ public class BuildAndDecodeTest extends BaseTest {
|
|||||||
public void xmlXsdFileTest() throws BrutException {
|
public void xmlXsdFileTest() throws BrutException {
|
||||||
compareXmlFiles("res/xml/ww_box_styles_schema.xsd");
|
compareXmlFiles("res/xml/ww_box_styles_schema.xsd");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void multipleDexTest() throws BrutException, IOException {
|
||||||
|
compareBinaryFolder("/smali_classes2", false);
|
||||||
|
compareBinaryFolder("/smali_classes3", false);
|
||||||
|
|
||||||
|
File classes2Dex = new File(sTestOrigDir, "build/apk/classes2.dex");
|
||||||
|
File classes3Dex = new File(sTestOrigDir, "build/apk/classes3.dex");
|
||||||
|
|
||||||
|
assertTrue(classes2Dex.isFile());
|
||||||
|
assertTrue(classes3Dex.isFile());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void singleDexTest() throws BrutException, IOException {
|
||||||
|
compareBinaryFolder("/smali", false);
|
||||||
|
|
||||||
|
File classesDex = new File(sTestOrigDir, "build/apk/classes.dex");
|
||||||
|
assertTrue(classesDex.isFile());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
.class public LHelloWorld;
|
||||||
|
|
||||||
|
.super Ljava/lang/Object;
|
||||||
|
|
||||||
|
.method public static main([Ljava/lang/String;)V
|
||||||
|
.registers 2
|
||||||
|
|
||||||
|
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
|
||||||
|
|
||||||
|
const/high16 v1, 0x7f020000
|
||||||
|
|
||||||
|
invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
|
||||||
|
|
||||||
|
return-void
|
||||||
|
.end method
|
@ -0,0 +1,15 @@
|
|||||||
|
.class public LHelloDualDexSupport;
|
||||||
|
|
||||||
|
.super Ljava/lang/Object;
|
||||||
|
|
||||||
|
.method public static main([Ljava/lang/String;)V
|
||||||
|
.registers 2
|
||||||
|
|
||||||
|
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
|
||||||
|
|
||||||
|
const/high16 v1, 0x7f020000
|
||||||
|
|
||||||
|
invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
|
||||||
|
|
||||||
|
return-void
|
||||||
|
.end method
|
@ -0,0 +1,15 @@
|
|||||||
|
.class public LHelloTripleDexSupport;
|
||||||
|
|
||||||
|
.super Ljava/lang/Object;
|
||||||
|
|
||||||
|
.method public static main([Ljava/lang/String;)V
|
||||||
|
.registers 2
|
||||||
|
|
||||||
|
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
|
||||||
|
|
||||||
|
const/high16 v1, 0x7f020000
|
||||||
|
|
||||||
|
invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
|
||||||
|
|
||||||
|
return-void
|
||||||
|
.end method
|
Loading…
Reference in New Issue
Block a user