Skip to content

Commit

Permalink
TestMavenResolution: add mac ARM support to testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald authored May 2, 2024
1 parent 7a01063 commit eba8fd0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public class TestMavenResolution extends ApplicationSetupBasedTest {

@Test public void testImportSingleIndirectWithClassifier() throws Exception
{
//this test fails on Alpine linux on Docker.
// this test fails on Alpine linux on Docker.
assumeTrue(! new File("/etc/alpine-release").exists());
new MavenResolver().initialise("org.nd4j:nd4j-native-platform:0.8.0,org.nd4j:nd4j-native:0.8.0");
// 1.0.0-M2 also has macos-arm64 binaries
new MavenResolver().initialise("org.nd4j:nd4j-native-platform:1.0.0-M2,org.nd4j:nd4j-native:1.0.0-M2");
Class<?> clz = Thread.currentThread().getContextClassLoader().loadClass("org.nd4j.linalg.factory.Nd4j");
assertNotNull(clz);
Object instance = clz.newInstance();
Expand Down

0 comments on commit eba8fd0

Please sign in to comment.