This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 7293f2fa9 TIKA-3895 -- skip dl4j tests if on an aarch64 jdk.
     new c905ad17e Merge remote-tracking branch 'origin/main'
7293f2fa9 is described below

commit 7293f2fa9d802f7b1068600712b9816e34af3f5b
Author: tballison <[email protected]>
AuthorDate: Thu Oct 20 16:27:48 2022 -0400

    TIKA-3895 -- skip dl4j tests if on an aarch64 jdk.
---
 .../test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java  | 3 +++
 .../src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java    | 3 +++
 2 files changed, 6 insertions(+)

diff --git 
a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
 
b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
index 2111ab715..0fb8fc0ba 100644
--- 
a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
+++ 
b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
@@ -17,10 +17,12 @@
 package org.apache.tika.dl.imagerec;
 
 import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assumptions.assumeFalse;
 import static org.junit.jupiter.api.Assumptions.assumeTrue;
 
 import java.io.InputStream;
 
+import org.apache.commons.lang3.SystemUtils;
 import org.junit.jupiter.api.Test;
 
 import org.apache.tika.Tika;
@@ -31,6 +33,7 @@ public class DL4JInceptionV3NetTest {
 
     @Test
     public void recognise() throws Exception {
+        assumeFalse(SystemUtils.OS_ARCH.equals("aarch64"), "doesn't yet work 
on aarch64");
         TikaConfig config = null;
         try (InputStream is = 
getClass().getResourceAsStream("dl4j-inception3-config.xml")) {
             config = new TikaConfig(is);
diff --git 
a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
 
b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
index 36b5aac58..fcf157eb7 100644
--- 
a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
+++ 
b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
@@ -17,10 +17,12 @@
 package org.apache.tika.dl.imagerec;
 
 import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assumptions.assumeFalse;
 import static org.junit.jupiter.api.Assumptions.assumeTrue;
 
 import java.io.InputStream;
 
+import org.apache.commons.lang3.SystemUtils;
 import org.junit.jupiter.api.Test;
 
 import org.apache.tika.Tika;
@@ -31,6 +33,7 @@ public class DL4JVGG16NetTest {
 
     @Test
     public void recognise() throws Exception {
+        assumeFalse(SystemUtils.OS_ARCH.equals("aarch64"), "doesn't yet work 
on aarch64");
         TikaConfig config = null;
         try (InputStream is = 
getClass().getResourceAsStream("dl4j-vgg16-config.xml")) {
             config = new TikaConfig(is);

Reply via email to