Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-06-06 13:29:41 +0000
committerHenrik Rentz-Reichert2013-06-06 13:44:56 +0000
commit76f0e73f4f6990eb60dc22bcd8ae39b4ce5f1e50 (patch)
tree27a0d97ebed7657b739c92f15963adebefc526b7
parent6e29a78c905f8ebd3658342018a8773ca9a734c5 (diff)
downloadorg.eclipse.etrice-76f0e73f4f6990eb60dc22bcd8ae39b4ce5f1e50.tar.gz
org.eclipse.etrice-76f0e73f4f6990eb60dc22bcd8ae39b4ce5f1e50.tar.xz
org.eclipse.etrice-76f0e73f4f6990eb60dc22bcd8ae39b4ce5f1e50.zip
[runtime.c.tests] added Ant script to run tests
-rw-r--r--plugins/org.eclipse.etrice.generator.java/.settings/org.eclipse.core.resources.prefs2
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/.gitignore6
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/.settings/org.eclipse.cdt.codan.core.prefs67
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/buckminster.cspec11
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/make.xml247
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/org.eclipse.etrice.runtime.c.tests make.xml.launch17
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.etu10
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.xml55
8 files changed, 388 insertions, 27 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.etrice.generator.java/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 000000000..a8f686765
--- /dev/null
+++ b/plugins/org.eclipse.etrice.generator.java/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding//src/org/eclipse/etrice/generator/java/gen/Initialization.xtend=ISO-8859-1
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/.gitignore b/tests/org.eclipse.etrice.runtime.c.tests/.gitignore
index 641b47de7..7c329ffd1 100644
--- a/tests/org.eclipse.etrice.runtime.c.tests/.gitignore
+++ b/tests/org.eclipse.etrice.runtime.c.tests/.gitignore
@@ -1,5 +1,7 @@
Debug
Release
-src-gen/*
-!src-gen/readme.txt
+bin
+output
+results
tmp/testlog/*.seq
+tmp/testlog/*.xml
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/.settings/org.eclipse.cdt.codan.core.prefs b/tests/org.eclipse.etrice.runtime.c.tests/.settings/org.eclipse.cdt.codan.core.prefs
new file mode 100644
index 000000000..77386c23c
--- /dev/null
+++ b/tests/org.eclipse.etrice.runtime.c.tests/.settings/org.eclipse.cdt.codan.core.prefs
@@ -0,0 +1,67 @@
+eclipse.preferences.version=1
+org.eclipse.cdt.codan.checkers.errnoreturn=Warning
+org.eclipse.cdt.codan.checkers.errnoreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.checkers.errreturnvalue=Error
+org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.checkers.noreturn=Error
+org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},no_break_comment\=>"no break",last_case_param\=>false,empty_case_param\=>false}
+org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
+org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},unknown\=>false,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization=Warning
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},skip\=>true}
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},paramNot\=>false}
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},else\=>false,afterelse\=>false}
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>("@(\#)","$Id")}
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/buckminster.cspec b/tests/org.eclipse.etrice.runtime.c.tests/buckminster.cspec
new file mode 100644
index 000000000..562d565a3
--- /dev/null
+++ b/tests/org.eclipse.etrice.runtime.c.tests/buckminster.cspec
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?><cs:cspec xmlns:cs="http://www.eclipse.org/buckminster/CSpec-1.0" name="org.eclipse.etrice.generator.c.tests" componentType="buckminster" version="0.3.0.qualifier">
+ <cs:actions>
+ <cs:public name="run_tests" actor="ant">
+ <cs:actorProperties>
+ <cs:property key="buildFile" value="make.xml"/>
+ <cs:property key="target.platform" value="${WORKSPACE}/buildroot/target.platform"/>
+ <cs:property key="targets" value="all"/>
+ </cs:actorProperties>
+ </cs:public>
+ </cs:actions>
+</cs:cspec>
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/make.xml b/tests/org.eclipse.etrice.runtime.c.tests/make.xml
new file mode 100644
index 000000000..d4fb565cd
--- /dev/null
+++ b/tests/org.eclipse.etrice.runtime.c.tests/make.xml
@@ -0,0 +1,247 @@
+<?xml version="1.0"?>
+<!--
+ Ant makefile for building and running of tests.
+ This includes conversion of the etunit
+ results into xunit xml.
+
+ 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
+-->
+<project name="project" default="all">
+
+ <property name="runtime.path" value="../../runtime/org.eclipse.etrice.runtime.c"/>
+ <property name="bin.path" value="./bin"/>
+ <property name="xml.output" value="./tmp"/>
+ <property name="output" value="./output"/>
+ <property environment="env"/>
+
+
+ <!--
+ all: compiles, runs, converts and copies the results
+ -->
+ <target name="all" depends="convert,copy_results">
+ <echo>done with org.eclipse.etrice.runtime.c.tests</echo>
+ </target>
+
+ <!--
+ set_tp: get the target.platform property from the environment var ETRICE_TARGET_PLATFORM if not set already
+ -->
+ <target name="set_tp" unless="target.platform">
+ <echo>using local target platform</echo>
+ <property name="target.platform" value="${env.ETRICE_TARGET_PLATFORM}"/>
+ </target>
+
+ <!--
+ set_tr: sets the test.result property if not set already
+ -->
+ <target name="set_tr" unless="test.results">
+ <echo>using local test result folder</echo>
+ <property name="test.results" value="./results"/>
+ </target>
+
+ <!--
+ set_platform: sets the runtime.platform property if not set already
+ -->
+ <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>
+
+ <!--
+ set_rp: sets the runtime.path from the ETRICE_C_RUNTIME environment variable property if not set already
+ -->
+ <target name="set_rp" unless="c-runtime.path">
+ <echo>using local runtime folder</echo>
+ <property name="c-runtime.path" value="${env.ETRICE_C_RUNTIME}"/>
+ </target>
+
+ <!--
+ set_gcc_path: sets the gcc.path property from the ETRICE_GCC_PATH environment variable property if not set already
+ -->
+ <target name="set_gcc_path" unless="gcc.path">
+ <echo>using gcc from path</echo>
+ <property name="gcc.path" value="${env.ETRICE_GCC_PATH}"/>
+ </target>
+
+ <!--
+ clean: deletes all folders created by this script
+ -->
+ <target name="clean" depends="set_tr,set_rp">
+ <delete dir="${bin.path}"/>
+ <delete dir="${c-runtime.path}/bin"/>
+ <delete dir="${output}"/>
+ <delete dir="src-gen"/>
+ <delete dir="tmp"/>
+ </target>
+
+ <!--
+ compile_runtime: compiles the C runtime library
+ -->
+ <target name="compile_runtime" depends="clean,set_rp,set_gcc_path">
+ <mkdir dir="${c-runtime.path}/bin"/>
+ <mkdir dir="${output}"/>
+ <exec dir="${c-runtime.path}/bin" executable="${gcc.path}/gcc" failonerror="true" output="${output}/compile_runtime.txt">
+ <arg value="-I${c-runtime.path}/src/common"/>
+ <arg value="-I${c-runtime.path}/src/config"/>
+ <arg value="-I${c-runtime.path}/src/platforms/${runtime.platform}"/>
+ <arg value="-c"/>
+ <arg value="-g3"/>
+ <arg value="-O0"/>
+ <arg value="-Wall"/>
+ <!--<arg value="-ansi"/>-->
+ <arg value="../src/common/debugging/etMSCLogger.c"/>
+ <arg value="../src/common/etUnit/etUnit.c"/>
+ <arg value="../src/common/base/etMemory_FreeList.c"/>
+ <arg value="../src/common/base/etMemory_FixedSize.c"/>
+ <arg value="../src/common/base/etQueue.c"/>
+ <arg value="../src/common/messaging/etMessage.c"/>
+ <arg value="../src/common/messaging/etMessageQueue.c"/>
+ <arg value="../src/common/messaging/etMessageService.c"/>
+ <arg value="../src/common/messaging/etSystemProtocol.c"/>
+ <arg value="../src/common/helpers/etTimeHelpers.c"/>
+ <arg value="../src/common/runtime/etRuntime.c"/>
+ <arg value="../src/common/modelbase/etActor.c"/>
+ <arg value="../src/common/modelbase/etPort.c"/>
+ <arg value="../src/platforms/${runtime.platform}/etLogger.c"/>
+ <arg value="../src/platforms/${runtime.platform}/etMutex.c"/>
+ <arg value="../src/platforms/${runtime.platform}/etPlatformLifecycle.c"/>
+ <arg value="../src/platforms/${runtime.platform}/etSema.c"/>
+ <arg value="../src/platforms/${runtime.platform}/etThread.c"/>
+ <arg value="../src/platforms/${runtime.platform}/etTime.c"/>
+ <arg value="../src/platforms/${runtime.platform}/etTimer.c"/>
+ </exec>
+ <exec dir="${c-runtime.path}/bin" executable="ar" failonerror="true" output="${output}/compile_runtime.txt" append="true">
+ <arg value="-r"/>
+ <arg value="liborg.eclipse.etrice.runtime.c.a"/>
+ <arg value="etActor.o"/>
+ <arg value="etLogger.o"/>
+ <arg value="etMessage.o"/>
+ <arg value="etMessageQueue.o"/>
+ <arg value="etMessageService.o"/>
+ <arg value="etSystemProtocol.o"/>
+ <arg value="etTimeHelpers.o"/>
+ <arg value="etRuntime.o"/>
+ <arg value="etMSCLogger.o"/>
+ <arg value="etMutex.o"/>
+ <arg value="etPlatformLifecycle.o"/>
+ <arg value="etPort.o"/>
+ <arg value="etSema.o"/>
+ <arg value="etThread.o"/>
+ <arg value="etTime.o"/>
+ <arg value="etTimer.o"/>
+ <arg value="etUnit.o"/>
+ <arg value="etMemory_FreeList.o"/>
+ <arg value="etMemory_FixedSize.o"/>
+ <arg value="etQueue.o"/>
+ </exec>
+ </target>
+
+ <!--
+ build: compiles and links the generated C sources
+ -->
+ <target name="build" depends="set_rp,set_gcc_path,set_platform,compile_runtime">
+
+ <!-- compile and link RuntimeTest -->
+ <mkdir dir="bin/test"/>
+ <exec dir="bin/test" executable="${gcc.path}/gcc" failonerror="true" output="${output}/build.txt">
+ <arg value="-I../../src/"/>
+ <arg value="-I../../src/runtime/"/>
+ <arg value="-I${c-runtime.path}/src/common"/>
+ <arg value="-I${c-runtime.path}/src/config"/>
+ <arg value="-I${c-runtime.path}/src/platforms/${runtime.platform}"/>
+ <arg value="-c"/>
+ <arg value="-g3"/>
+ <arg value="-O0"/>
+ <arg value="-Wall"/>
+ <!--<arg value="-ansi"/>-->
+ <arg value="../../src/RunAllTestcases.c"/>
+ <arg value="../../src/runtime/RunCRuntimeTestcases.c"/>
+ <arg value="../../src/runtime/TestEtMemory.c"/>
+ <arg value="../../src/runtime/TestEtMessage.c"/>
+ <arg value="../../src/runtime/TestEtMessageQueue.c"/>
+ <arg value="../../src/runtime/TestEtMessageService.c"/>
+ <arg value="../../src/runtime/TestEtQueue.c"/>
+ <arg value="../../src/runtime/TestEtTimer.c"/>
+ <arg value="../../src/runtime/TestEtUnit.c"/>
+ <arg value="../../src/runtime/helpers/TestEtTimeHelpers.c"/>
+ </exec>
+ <exec dir="bin/test" executable="${gcc.path}/gcc" failonerror="true" output="${output}/build.txt" append="true">
+ <arg value="-L${c-runtime.path}/bin"/>
+ <arg value="-oRuntimeTest.exe"/>
+ <arg value="RunAllTestcases.o"/>
+ <arg value="RunCRuntimeTestcases.o"/>
+ <arg value="TestEtMemory.o"/>
+ <arg value="TestEtMessage.o"/>
+ <arg value="TestEtMessageQueue.o"/>
+ <arg value="TestEtMessageService.o"/>
+ <arg value="TestEtQueue.o"/>
+ <arg value="TestEtTimer.o"/>
+ <arg value="TestEtUnit.o"/>
+ <arg value="TestEtTimeHelpers.o"/>
+
+ <!-- library has to be in the last position -->
+ <arg value="-lorg.eclipse.etrice.runtime.c"/>
+ <arg value="-lpthread"/>
+ <arg value="-lrt"/>
+ </exec>
+ </target>
+
+ <!--
+ run: runs all executables
+ -->
+ <target name="run" depends="build">
+ <mkdir dir="tmp/testlog"/>
+ <echo>start RuntimeTest</echo>
+ <exec dir="./" resolveexecutable="true" executable="./bin/test/RuntimeTest.exe" />
+ <echo>end RuntimeTest</echo>
+ </target>
+
+ <!--
+ convert: converts etu- into xunit xml-format
+ -->
+ <target name="convert" depends="run,set_tp">
+ <path id="clspath">
+ <pathelement location="../../plugins/org.eclipse.etrice.etunit.converter/bin"/>
+ <fileset dir="${target.platform}/plugins/">
+ <include name="org.eclipse.core.runtime_3.8*.jar" />
+ <include name="org.eclipse.emf.ecore_2.8*.jar" />
+ <include name="org.eclipse.emf.ecore.xmi_2.8*.jar" />
+ <include name="org.eclipse.emf.common_2.8*.jar" />
+ </fileset>
+ </path>
+
+ <java output="${output}/convert.txt" append="true" classname="org.eclipse.etrice.etunit.converter.EtUnitReportConverter" fork="true" failonerror="true">
+ <arg value="-suite"/>
+ <arg value="org.eclipse.etrice.runtime.c.tests.TestEtUnitSpecial"/>
+ <arg value="./tmp/testlog/TestEtUnitSpecial.etu"/>
+ <classpath refid="clspath"/>
+ </java>
+
+ <java output="${output}/convert.txt" append="true" classname="org.eclipse.etrice.etunit.converter.EtUnitReportConverter" fork="true" failonerror="true">
+ <arg value="-suite"/>
+ <arg value="org.eclipse.etrice.runtime.c.tests.TestCRuntime"/>
+ <arg value="./tmp/testlog/TestCRuntime.etu"/>
+ <classpath refid="clspath"/>
+ </java>
+ </target>
+
+ <!--
+ copy_results: copies the *.xml results to their final destination
+ -->
+ <target name="copy_results" depends="set_tr">
+ <move file="./tmp/testlog/TestEtUnitSpecial.xml" tofile="./tmp/testlog/CTestEtUnitSpecial.xml"/>
+ <copy todir="${test.results}" >
+ <fileset dir="./tmp/testlog">
+ <include name="*.xml"/>
+ </fileset>
+ </copy>
+ </target>
+
+</project>
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/org.eclipse.etrice.runtime.c.tests make.xml.launch b/tests/org.eclipse.etrice.runtime.c.tests/org.eclipse.etrice.runtime.c.tests make.xml.launch
new file mode 100644
index 000000000..c71b14a04
--- /dev/null
+++ b/tests/org.eclipse.etrice.runtime.c.tests/org.eclipse.etrice.runtime.c.tests make.xml.launch
@@ -0,0 +1,17 @@
+<?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"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.etrice.runtime.c.tests/make.xml"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</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.runtime.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.runtime.c.tests/make.xml}"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+</launchConfiguration>
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.etu b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.etu
index 9635b7985..9776a4464 100644
--- a/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.etu
+++ b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.etu
@@ -4,7 +4,7 @@ tc start 1: TestEtQueue_test
tc end 1: 10000
ts start: TestMemory
tc start 2: TestEtMemory_testFixedSize
-tc end 2: 20000
+tc end 2: 10000
tc start 3: TestEtMemory_testFreeList
tc end 3: 10000
ts start: TestMessage
@@ -14,14 +14,14 @@ ts start: TestEtMessageQueue
tc start 5: TestEtMessageQueue_testPushPop
tc end 5: 0
tc start 6: TestEtMessageQueue_testMassiveMessaging
-tc end 6: 20000
+tc end 6: 10000
ts start: TestEtMessageService
tc start 7: TestEtMessageService_init
tc end 7: 0
tc start 8: TestEtMessageService_GetPushPopReturn
-tc end 1: 0
+tc end 8: 0
tc start 9: TestEtMessageService_GetReturn
-tc end 0: 0
+tc end 9: 0
tc start 10: TestEtMessageService_execute
tc end 10: 0
tc start 11: TestEtMessageService_getMessagePoolLowWaterMark
@@ -35,7 +35,7 @@ ts start: TestEtTimer
tc start 14: TestEtTimer_lifecycle
tc end 14: 10000
tc start 15: TestEtTimer_multiTimer
-tc end 15: 60000
+tc end 15: 30000
ts start: TestEtTimeHelpers
tc start 16: TestEtTimeHelpers_convertToMSec
tc end 16: 0
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.xml b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.xml
index bf32e4bc2..4da646ac2 100644
--- a/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.xml
+++ b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.xml
@@ -1,21 +1,36 @@
-<?xml version="1.0" encoding="ASCII"?>
-<testsuites>
- <testsuite failures="0" name="TestMessage" tests="1" time="0">
- <testcase name="TestEtMessage_testBasicMessage" time="0"/>
- </testsuite>
- <testsuite failures="0" name="TestEtMessageQueue" tests="2" time="168">
- <testcase name="TestEtMessageQueue_testPushPop" time="1"/>
- <testcase name="TestEtMessageQueue_testMassiveMessaging" time="167"/>
- </testsuite>
- <testsuite failures="0" name="TestEtMessageService" tests="5" time="4">
- <testcase name="TestEtMessageService_init" time="0"/>
- <testcase name="TestEtMessageService_GetPushPopReturn" time="1"/>
- <testcase name="TestEtMessageService_GetReturn" time="1"/>
- <testcase name="TestEtMessageService_execute" time="0"/>
- <testcase name="TestEtMessageService_getMessagePoolLowWaterMark" time="2"/>
- </testsuite>
- <testsuite failures="0" name="TestEtUnit" tests="2" time="0">
- <testcase name="TestEtUnit_Expect_Order" time="0"/>
- <testcase name="TestEtUnit_Expect" time="0"/>
- </testsuite>
+<?xml version="1.0" encoding="ASCII"?>
+<testsuites>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime0" tests="1" time="10000">
+ <testcase name="TestEtQueue_test" time="10000"/>
+ </testsuite>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime1" tests="2" time="20000">
+ <testcase name="TestEtMemory_testFixedSize" time="10000"/>
+ <testcase name="TestEtMemory_testFreeList" time="10000"/>
+ </testsuite>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime2" tests="1" time="0">
+ <testcase name="TestEtMessage_testBasicMessage" time="0"/>
+ </testsuite>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime3" tests="2" time="10000">
+ <testcase name="TestEtMessageQueue_testPushPop" time="0"/>
+ <testcase name="TestEtMessageQueue_testMassiveMessaging" time="10000"/>
+ </testsuite>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime4" tests="5" time="0">
+ <testcase name="TestEtMessageService_init" time="0"/>
+ <testcase name="TestEtMessageService_GetPushPopReturn" time="0"/>
+ <testcase name="TestEtMessageService_GetReturn" time="0"/>
+ <testcase name="TestEtMessageService_execute" time="0"/>
+ <testcase name="TestEtMessageService_getMessagePoolLowWaterMark" time="0"/>
+ </testsuite>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime5" tests="2" time="0">
+ <testcase name="TestEtUnit_Expect_Order" time="0"/>
+ <testcase name="TestEtUnit_Expect" time="0"/>
+ </testsuite>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime6" tests="2" time="40000">
+ <testcase name="TestEtTimer_lifecycle" time="10000"/>
+ <testcase name="TestEtTimer_multiTimer" time="30000"/>
+ </testsuite>
+ <testsuite failures="0" name="org.eclipse.etrice.runtime.c.tests.TestCRuntime7" tests="2" time="0">
+ <testcase name="TestEtTimeHelpers_convertToMSec" time="0"/>
+ <testcase name="TestEtTimeHelpers_convertToEtTime" time="0"/>
+ </testsuite>
</testsuites> \ No newline at end of file

Back to the top