File: omit_tests_needing_google_testing_compile.patch

package info (click to toggle)
libpf4j-java 3.13.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,548 kB
  • sloc: java: 8,610; xml: 1,108; sh: 228; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 1,840 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: omitting classes needing com.google.testing.compile
 This package is not Debian-packaged and concerns few tests, so we skip the
 test classes needing it.
 This patch should get removed if com.google.testing.compile gets packaged.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2024-02-13

--- a/pf4j/pom.xml
+++ b/pf4j/pom.xml
@@ -56,6 +56,26 @@
                             </excludes>
                         </configuration>
                     </execution>
+                    <execution>
+                        <id>default-testCompile</id>
+                        <phase>test-compile</phase>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                        <configuration>
+                            <testExcludes>
+                                <!-- no com.google.testing.compile packaged yet -->
+                                <exclude>**/AbstractExtensionFinderTest.java</exclude>
+                                <exclude>**/DefaultExtensionFactoryTest.java</exclude>
+                                <exclude>**/DefaultPluginFactoryTest.java</exclude>
+                                <exclude>**/DefaultPluginManagerTest.java</exclude>
+                                <exclude>**/ExtensionAnnotationProcessorTest.java</exclude>
+                                <exclude>**/JavaFileObjectClassLoader.java</exclude>
+                                <exclude>**/JavaFileObjectDataProvider.java</exclude>
+                                <exclude>**/JavaSources.java</exclude>
+                            </testExcludes>
+                        </configuration>
+                    </execution>
 
                     <!-- compile module-info.java for Java 9+ -->
                     <execution>