Skip to content

Commit

Permalink
disable opc-tests on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Christofer Dutz authored and Christofer Dutz committed Jul 5, 2022
1 parent 13a1860 commit aa12e1e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
12 changes: 5 additions & 7 deletions code-generation/language-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
<artifactId>plc4x-code-generation-language-base-freemarker</artifactId>
<version>0.10.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4x-code-generation-protocol-base-mspec</artifactId>
<version>0.10.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.apache.plc4x.plugins</groupId>
Expand All @@ -98,16 +103,9 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4x-code-generation-protocol-base-mspec</artifactId>
<version>0.10.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format</artifactId>
<version>1.15.0</version>
</dependency>

<!-- Make sure the dependencies of the module are built first -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ public class OpcuaPlcDriverTest {
@BeforeAll
static void setUp() {
assumeTrue(() -> {
String osArch= System.getProperty("os.arch");
// TODO: PLC4X-330 somehow opcua doesn't run properly on aarch64
return !"aarch64".equals(osArch);
}, "somehow opcua doesn't run properly on aarch64");
String OS = System.getProperty("os.name").toLowerCase();
if (OS.contains("nix")
|| OS.contains("nux")
|| OS.contains("aix")) {
return false;
}

return true;
}, "somehow opcua doesn't run properly on linux");
}

// Read only variables of milo example server of version 3.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.concurrent.TimeUnit;

import static org.junit.jupiter.api.Assumptions.assumeTrue;

Expand All @@ -41,10 +40,15 @@ public class OpcuaSubscriptionHandleTest {
@BeforeAll
static void setUp() {
assumeTrue(() -> {
String osArch= System.getProperty("os.arch");
// TODO: PLC4X-330 somehow opcua doesn't run properly on aarch64
return !"aarch64".equals(osArch);
}, "somehow opcua doesn't run properly on aarch64");
String OS = System.getProperty("os.name").toLowerCase();
if (OS.contains("nix")
|| OS.contains("nux")
|| OS.contains("aix")) {
return false;
}

return true;
}, "somehow opcua doesn't run properly on linux");
}

private static final Logger LOGGER = LoggerFactory.getLogger(OpcuaPlcDriverTest.class);
Expand Down
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format</artifactId>
<version>1.15.0</version>
</dependency>

<dependency>
<groupId>org.awaitility</groupId>
Expand Down Expand Up @@ -722,8 +727,9 @@

<!-- License Files for other licenses -->
<exclude>**/UNLICENSE</exclude>
<exclude>**/EPL-2.0</exclude>
<!--
Explicitly exclude these files as I was unable
Explicitly exclude thfese files as I was unable
to add a new licenses to the configuration.
-->
<exclude>**/Expression.g4</exclude>
Expand Down

0 comments on commit aa12e1e

Please sign in to comment.