Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-06-06 13:54:45 +0000
committerHenrik Rentz-Reichert2013-06-06 13:54:45 +0000
commit59124fb68ff0f9495196e969e25d50f07946eaac (patch)
tree967b8706cbd42f198babda27edc4fce51d0b4890
parent76f0e73f4f6990eb60dc22bcd8ae39b4ce5f1e50 (diff)
downloadorg.eclipse.etrice-59124fb68ff0f9495196e969e25d50f07946eaac.tar.gz
org.eclipse.etrice-59124fb68ff0f9495196e969e25d50f07946eaac.tar.xz
org.eclipse.etrice-59124fb68ff0f9495196e969e25d50f07946eaac.zip
[generator.c.tests] tests pass on Ubuntu 12.04
-rw-r--r--tests/org.eclipse.etrice.generator.c.tests/make.xml21
-rw-r--r--tests/org.eclipse.etrice.generator.c.tests/org.eclipse.etrice.generator.c.tests make.xml.launch42
-rw-r--r--tests/org.eclipse.etrice.generator.java.tests/org.eclipse.etrice.generator.java.tests make.xml.launch42
3 files changed, 57 insertions, 48 deletions
diff --git a/tests/org.eclipse.etrice.generator.c.tests/make.xml b/tests/org.eclipse.etrice.generator.c.tests/make.xml
index 0854d4691..f47c8bea9 100644
--- a/tests/org.eclipse.etrice.generator.c.tests/make.xml
+++ b/tests/org.eclipse.etrice.generator.c.tests/make.xml
@@ -7,6 +7,7 @@
To work locally you should define in your environment
ETRICE_TARGET_PLATFORM=path to the eclipse folder of your Juno installation
ETRICE_C_RUNTIME=path to the org.eclipse.etrice.runtime.c folder (relative path doesn't work)
+ ETRICE_GCC_PATH=folder where gcc resides
@author Henrik Rentz-Reichert
-->
@@ -49,7 +50,10 @@
-->
<target name="set_platform" unless="runtime.platform">
<echo>using MinGW runtime platform</echo>
+ <!--
<property name="runtime.platform" value="MT_WIN_MinGW"/>
+ -->
+ <property name="runtime.platform" value="MT_POSIX_GENERIC_GCC"/>
</target>
<!--
@@ -153,7 +157,7 @@
<arg value="-g3"/>
<arg value="-O0"/>
<arg value="-Wall"/>
- <arg value="-ansi"/>
+ <!--<arg value="-ansi"/>-->
<arg value="../src/common/debugging/etMSCLogger.c"/>
<arg value="../src/common/etUnit/etUnit.c"/>
<arg value="../src/common/messaging/etMessage.c"/>
@@ -212,7 +216,7 @@
<arg value="-g3"/>
<arg value="-O0"/>
<arg value="-Wall"/>
- <arg value="-ansi"/>
+ <!--<arg value="-ansi"/>-->
<arg value="../../src-gen/HandlerTest/HandlerTest_Top.c"/>
<arg value="../../src-gen/HandlerTest/HandlerUser.c"/>
<arg value="../../src-gen/HandlerTest/node3_hdTest.c"/>
@@ -235,6 +239,7 @@
<!-- library has to be in the last position -->
<arg value="-lorg.eclipse.etrice.runtime.c"/>
<arg value="-lpthread"/>
+ <arg value="-lrt"/>
</exec>
<!-- compile and link ChoicepointTest -->
@@ -248,7 +253,7 @@
<arg value="-g3"/>
<arg value="-O0"/>
<arg value="-Wall"/>
- <arg value="-ansi"/>
+ <!--<arg value="-ansi"/>-->
<arg value="../../src-gen/ChoicePointTest/CPTest_Top.c"/>
<arg value="../../src-gen/ChoicePointTest/CPTester.c"/>
<arg value="../../src-gen/ChoicePointTest/CPUser.c"/>
@@ -269,6 +274,7 @@
<!-- library has to be in the last position -->
<arg value="-lorg.eclipse.etrice.runtime.c"/>
<arg value="-lpthread"/>
+ <arg value="-lrt"/>
</exec>
<!-- compile and link SendingDataTestC -->
@@ -282,7 +288,7 @@
<arg value="-g3"/>
<arg value="-O0"/>
<arg value="-Wall"/>
- <arg value="-ansi"/>
+ <!--<arg value="-ansi"/>-->
<arg value="../../src-gen/SendingDataTestC/MrPing.c"/>
<arg value="../../src-gen/SendingDataTestC/MrPong.c"/>
<arg value="../../src-gen/SendingDataTestC/PingPongData.c"/>
@@ -309,6 +315,7 @@
<!-- library has to be in the last position -->
<arg value="-lorg.eclipse.etrice.runtime.c"/>
<arg value="-lpthread"/>
+ <arg value="-lrt"/>
</exec>
<!-- compile and link StaticConfigTest-->
@@ -322,7 +329,7 @@
<arg value="-g3"/>
<arg value="-O0"/>
<arg value="-Wall"/>
- <arg value="-ansi"/>
+ <!--<arg value="-ansi"/>-->
<arg value="../../src-gen/StaticConfigTest/Tester_ac.c"/>
<arg value="../../src-gen/StaticConfigTest/Testee_1_ac.c"/>
<arg value="../../src-gen/StaticConfigTest/Testee_2_ac.c"/>
@@ -357,6 +364,7 @@
<!-- library has to be in the last position -->
<arg value="-lorg.eclipse.etrice.runtime.c"/>
<arg value="-lpthread"/>
+ <arg value="-lrt"/>
</exec>
<!-- compile and link DataDrivenTest-->
@@ -370,7 +378,7 @@
<arg value="-g3"/>
<arg value="-O0"/>
<arg value="-Wall"/>
- <arg value="-ansi"/>
+ <!--<arg value="-ansi"/>-->
<arg value="../../src-gen/DataDrivenTest/Tester.c"/>
<arg value="../../src-gen/DataDrivenTest/Testee.c"/>
<arg value="../../src-gen/DataDrivenTest/Appl.c"/>
@@ -397,6 +405,7 @@
<!-- library has to be in the last position -->
<arg value="-lorg.eclipse.etrice.runtime.c"/>
<arg value="-lpthread"/>
+ <arg value="-lrt"/>
</exec>
</target>
diff --git a/tests/org.eclipse.etrice.generator.c.tests/org.eclipse.etrice.generator.c.tests make.xml.launch b/tests/org.eclipse.etrice.generator.c.tests/org.eclipse.etrice.generator.c.tests make.xml.launch
index 178e3424d..77255bb90 100644
--- a/tests/org.eclipse.etrice.generator.c.tests/org.eclipse.etrice.generator.c.tests make.xml.launch
+++ b/tests/org.eclipse.etrice.generator.c.tests/org.eclipse.etrice.generator.c.tests make.xml.launch
@@ -1,21 +1,21 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
-<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
-<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.etrice.generator.c.tests/make.xml"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_17_32bit"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.launching.remote.InternalAntRunner"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.etrice.generator.c.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/org.eclipse.etrice.generator.c.tests/make.xml}"/>
-<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.etrice.generator.c.tests/make.xml"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.launching.remote.InternalAntRunner"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.etrice.generator.c.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/org.eclipse.etrice.generator.c.tests/make.xml}"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+</launchConfiguration>
diff --git a/tests/org.eclipse.etrice.generator.java.tests/org.eclipse.etrice.generator.java.tests make.xml.launch b/tests/org.eclipse.etrice.generator.java.tests/org.eclipse.etrice.generator.java.tests make.xml.launch
index ef6c52ca2..e5ab2a975 100644
--- a/tests/org.eclipse.etrice.generator.java.tests/org.eclipse.etrice.generator.java.tests make.xml.launch
+++ b/tests/org.eclipse.etrice.generator.java.tests/org.eclipse.etrice.generator.java.tests make.xml.launch
@@ -1,21 +1,21 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
-<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
-<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.etrice.generator.java.tests/make.xml"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_17_32bit"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.launching.remote.InternalAntRunner"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.etrice.generator.java.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/org.eclipse.etrice.generator.java.tests/make.xml}"/>
-<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.etrice.generator.java.tests/make.xml"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.launching.remote.InternalAntRunner"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.etrice.generator.java.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/org.eclipse.etrice.generator.java.tests/make.xml}"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+</launchConfiguration>

Back to the top