Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-43102] Add a tentative support for ARM CPUs (armv7l, armv6l,…
… arm64)
- Loading branch information
Showing
5 changed files
with
664 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/test/java/jenkins/plugins/nodejs/tools/ArchitectureCallableTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package jenkins.plugins.nodejs.tools; | ||
|
||
import static org.hamcrest.Matchers.*; | ||
import static org.junit.Assert.*; | ||
import static org.junit.Assume.*; | ||
|
||
import java.io.File; | ||
|
||
import org.junit.Test; | ||
|
||
public class ArchitectureCallableTest { | ||
|
||
@Test | ||
public void test_uname_on_linux() throws Exception { | ||
assumeThat(Platform.current(), isOneOf(Platform.LINUX, Platform.OSX)); | ||
|
||
CPU.ArchitectureCallable callable = new CPU.ArchitectureCallable(); | ||
String machine = callable.invoke(new File("/"), null); | ||
assertThat(machine, anyOf(containsString("86"), containsString("64"), containsString("arm"))); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.