Home | History | Annotate | Download | only in smali-integration-tests
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      4     <modelVersion>4.0.0</modelVersion>
      5     <groupId>org.jf</groupId>
      6     <artifactId>smali-integration-tests</artifactId>
      7     <version>${aversion}</version>
      8     <packaging>pom</packaging>
      9     <parent>
     10         <groupId>org.jf</groupId>
     11         <artifactId>smali-pom</artifactId>
     12         <version>1.0-SNAPSHOT</version>
     13     </parent>
     14     <build>
     15         <plugins>
     16             <plugin>
     17                 <groupId>org.jf</groupId>
     18                 <artifactId>maven-smali-plugin</artifactId>
     19                 <executions>
     20                     <execution>
     21                         <id>junit-tests</id>
     22                         <goals>
     23                             <goal>assemble</goal>
     24                         </goals>
     25                         <configuration>
     26                             <sourceDirectory>src/test/smali/junit-tests</sourceDirectory>
     27                             <outputFile>target/junit-tests/classes.dex</outputFile>
     28                             <dumpFile>target/junit-tests/classes.dump</dumpFile>
     29                         </configuration>
     30                     </execution>
     31                 </executions>
     32             </plugin>
     33             <plugin>
     34                 <artifactId>maven-assembly-plugin</artifactId>
     35                 <executions>
     36                     <execution>
     37                         <phase>test</phase>
     38                         <goals>
     39                             <goal>single</goal>
     40                         </goals>
     41                         <configuration>
     42                             <descriptors>
     43                                 <descriptor>src/assemble/zip.xml</descriptor>
     44                             </descriptors>
     45                         </configuration>
     46                     </execution>
     47                 </executions>
     48             </plugin>
     49             <plugin>
     50                 <groupId>org.jvending.masa.plugins</groupId>
     51                 <artifactId>maven-adb-plugin</artifactId>
     52                 <executions>
     53                     <execution>
     54                         <phase>test</phase>
     55                         <goals>
     56                             <goal>push</goal>
     57                         </goals>
     58                         <configuration>
     59                             <sourceFileOrDirectory>${project.build.directory}/${project.build.finalName}-zip.zip
     60                             </sourceFileOrDirectory>
     61                             <destinationFileOrDirectory>/data/local/test.zip</destinationFileOrDirectory>
     62                         </configuration>
     63                     </execution>
     64                 </executions>
     65             </plugin>
     66             <plugin>
     67                 <groupId>org.codehaus.mojo</groupId>
     68                 <artifactId>exec-maven-plugin</artifactId>
     69                 <version>1.1</version>
     70                 <executions>
     71                     <execution>
     72                         <phase>test</phase>
     73                         <goals>
     74                             <goal>exec</goal>
     75                         </goals>
     76                     </execution>
     77                 </executions>
     78                 <configuration>
     79                     <executable>adb</executable>
     80                     <arguments>
     81                         <argument>shell</argument>
     82                         <argument>dalvikvm</argument>
     83                         <argument>-cp</argument>
     84                         <argument>/data/local/junit-4.6.zip:/data/local/test.zip</argument>
     85                         <argument>org/junit/runner/JUnitCore</argument>
     86                         <argument>AllTests</argument>
     87                     </arguments>
     88                 </configuration>
     89             </plugin>
     90         </plugins>
     91     </build>
     92 </project>
     93