You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by jf...@apache.org on 2019/04/26 14:21:09 UTC
[plc4x] 02/02: PLC4X-111 Last test passes.
This is an automated email from the ASF dual-hosted git repository.
jfeinauer pushed a commit to branch feature/PLC4X-111-interop-server
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit deeb08de0f1f48cfc6f910240b4a1003325310f4
Author: julian <j....@pragmaticminds.de>
AuthorDate: Fri Apr 26 16:20:57 2019 +0200
PLC4X-111 Last test passes.
---
plc4j/utils/interop/pom.xml | 31 +++++++++++++++++++++++++++++++
plc4py/test/test_PlcDriverManager.py | 4 ++++
2 files changed, 35 insertions(+)
diff --git a/plc4j/utils/interop/pom.xml b/plc4j/utils/interop/pom.xml
index ff911d1..6598ece 100644
--- a/plc4j/utils/interop/pom.xml
+++ b/plc4j/utils/interop/pom.xml
@@ -109,6 +109,37 @@
</execution>
</executions>
</plugin>
+ <!-- Create a fat jar -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.5.3</version>
+ <configuration>
+ <!-- get all project dependencies -->
+ <!-- <descriptorRefs>-->
+ <!-- <descriptorRef>jar-with-dependencies</descriptorRef>-->
+ <!-- <descriptorRef>metaInf-services</descriptorRef>-->
+ <!-- </descriptorRefs>-->
+ <descriptors>src/assembly/assembly.xml</descriptors>
+ <!-- MainClass in mainfest make a executable jar -->
+ <archive>
+ <manifest>
+ <mainClass>org.apache.plc4x.interop.impl.Server</mainClass>
+ </manifest>
+ </archive>
+
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <!-- bind to the packaging phase -->
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
diff --git a/plc4py/test/test_PlcDriverManager.py b/plc4py/test/test_PlcDriverManager.py
index 108aed1..aba3a28 100644
--- a/plc4py/test/test_PlcDriverManager.py
+++ b/plc4py/test/test_PlcDriverManager.py
@@ -43,6 +43,7 @@ class TestPlcDriverManager(TestCase):
print("Unable to start proces")
finally:
proc.terminate()
+ time.sleep(1)
def test_startAndStopServer(self):
try:
@@ -59,6 +60,7 @@ class TestPlcDriverManager(TestCase):
client.close(connection)
finally:
manager.close()
+ time.sleep(1)
def test_withPlcConnection(self):
try:
@@ -72,6 +74,7 @@ class TestPlcDriverManager(TestCase):
connection.close()
finally:
manager.close()
+ time.sleep(1)
def test_withCompleteAPI(self):
try:
@@ -96,6 +99,7 @@ class TestPlcDriverManager(TestCase):
connection.close()
finally:
manager.close()
+ time.sleep(1)
# This i a manual test, which needs a running server to work
def mt_withRealPLC_forDebug(self):