Skip to content

Commit

Permalink
Enable Felix Tests in the Build
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Mar 3, 2024
1 parent 5a82f15 commit 230bc4a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*/*/bin/
bin_test
/bundles/archived/*/bin/
.DS_Store

Expand All @@ -8,4 +9,4 @@ target/
.polyglot.*
.META-INF_*
pom.tycho
.tycho-consumer-pom.xml
.tycho-consumer-pom.xml
7 changes: 7 additions & 0 deletions bundles/org.eclipse.osgi/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@
</classpathentry>
<classpathentry kind="src" path="supplement/src"/>
<classpathentry kind="src" path="container/src"/>
<classpathentry kind="src" output="bin_test" path="felix/src_test">
<attributes>
<attribute name="test" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 1 addition & 1 deletion bundles/org.eclipse.osgi/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Bundle-Activator: org.eclipse.osgi.internal.framework.SystemBundleActivator
Bundle-Description: %systemBundle
Bundle-Copyright: %copyright
Bundle-Vendor: %eclipse.org
Bundle-Version: 3.19.0.qualifier
Bundle-Version: 3.19.100.qualifier
Bundle-Localization: systembundle
Bundle-DocUrl: http://www.eclipse.org
Eclipse-ExtensibleAPI: true
Expand Down
1 change: 1 addition & 0 deletions bundles/org.eclipse.osgi/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ output.. = bin/
javacWarnings..=-raw,unchecked,hiding,unused,warningToken
jars.extra.classpath = osgi/j9stubs.jar
jre.compilation.profile = JavaSE-1.8
additional.bundles = org.mockito.mockito-core
32 changes: 30 additions & 2 deletions bundles/org.eclipse.osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</parent>
<groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>3.19.0-SNAPSHOT</version>
<version>3.19.100-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<properties>
<!-- The actual TCKs are executed in the org.eclipse.osgi.tck module because of reference to other service implementations -->
Expand All @@ -34,7 +34,7 @@
<version>${tycho.version}</version>
<configuration>
<compilerArgs>
<arg>-nowarn:[${project.basedir}/osgi/src${path.separator}${project.basedir}/felix/src]</arg>
<arg>-nowarn:[${project.basedir}/osgi/src${path.separator}${project.basedir}/felix/src${path.separator}${project.basedir}/felix/src_test]</arg>
</compilerArgs>
</configuration>
</plugin>
Expand All @@ -55,7 +55,35 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>execute-tests</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.11.0</version>
<scope>test</scope>
</dependency>

</dependencies>

</project>

0 comments on commit 230bc4a

Please sign in to comment.