diff options
author | Henrik Rentz-Reichert | 2012-04-17 16:13:30 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2012-04-17 16:13:30 +0000 |
commit | 8b9d6b1e70cb9d47c399fade8b2298f725986c6a (patch) | |
tree | 2a29db02cb1aa7d41d66d7fadb0bd9883f0ac9f5 /tests/org.eclipse.etrice.runtime.c.tests/tmp | |
parent | 2f1fc07d701dd5d832577085f45747228cd669b8 (diff) | |
download | org.eclipse.etrice-8b9d6b1e70cb9d47c399fade8b2298f725986c6a.tar.gz org.eclipse.etrice-8b9d6b1e70cb9d47c399fade8b2298f725986c6a.tar.xz org.eclipse.etrice-8b9d6b1e70cb9d47c399fade8b2298f725986c6a.zip |
[runtime.c, runtime.c.tests] etUnit file format and public interface changed
The test cases can now run concurrently (but not preemptive yet).
The new etu file format has then to be converted to the standard JUnit xml format (using the EtUnitReportConverter).
File and line have been added to the failure information.
Diffstat (limited to 'tests/org.eclipse.etrice.runtime.c.tests/tmp')
4 files changed, 56 insertions, 25 deletions
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 new file mode 100644 index 000000000..7cc551b44 --- /dev/null +++ b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestCRuntime.etu @@ -0,0 +1,25 @@ +etUnit report
+ts start: TestMessage
+tc start 1: TestEtMessage_testBasicMessage
+tc end 1: 0
+ts start: TestEtMessageQueue
+tc start 2: TestEtMessageQueue_testPushPop
+tc end 2: 1
+tc start 3: TestEtMessageQueue_testMassiveMessaging
+tc end 3: 167
+ts start: TestEtMessageService
+tc start 4: TestEtMessageService_init
+tc end 4: 0
+tc start 5: TestEtMessageService_GetPushPopReturn
+tc end 5: 1
+tc start 6: TestEtMessageService_GetReturn
+tc end 6: 1
+tc start 7: TestEtMessageService_execute
+tc end 7: 0
+tc start 8: TestEtMessageService_getMessagePoolLowWaterMark
+tc end 8: 2
+ts start: TestEtUnit
+tc start 9: TestEtUnit_Expect_Order
+tc end 9: 0
+tc start 10: TestEtUnit_Expect
+tc end 10: 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 64da814d9..c8c3293b8 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,20 +1,27 @@ -<testsuites name="TestCRuntime" tests="0" failures="0" errors="0" time="0">
- <testsuite name="TestMessage" tests="0" failures="0" errors="0" time="0">
- <testcase name="TestEtMessage_testBasicMessage" time="0"/>
- </testsuite>
- <testsuite name="TestEtMessageQueue" tests="0" failures="0" errors="0" time="0">
- <testcase name="TestEtMessageQueue_testPushPop" time="0"/>
- <testcase name="TestEtMessageQueue_testMassiveMessaging" time="102"/>
- </testsuite>
- <testsuite name="TestEtMessageService" tests="0" failures="0" errors="0" time="0">
- <testcase name="TestEtMessageService_init" time="0"/>
- <testcase name="TestEtMessageService_GetPushPopReturn" time="1"/>
- <testcase name="TestEtMessageService_GetReturn" time="0"/>
- <testcase name="TestEtMessageService_execute" time="1"/>
- <testcase name="TestEtMessageService_getMessagePoolLowWaterMark" time="1"/>
- </testsuite>
- <testsuite name="TestEtUnit" tests="0" failures="0" errors="0" time="0">
- <testcase name="TestEtUnit_Expect_Order" time="0"/>
- <testcase name="TestEtUnit_Expect" time="0"/>
- </testsuite>
-</testsuites>
+<?xml version="1.0" encoding="ASCII"?>
+<testsuites>
+ <testsuite failures="1" name=" TestMessage" tests="1" time="0">
+ <testcase name="TestEtMessage_testBasicMessage" time="0">
+ <failure><expected>334</expected><actual>333</actual>msg1.NextMsg: expected=334, actual=333
+ at ..\src\runtime\TestEtMessage.c:35</failure>
+ </testcase>
+ </testsuite>
+ <testsuite failures="0" name=" TestEtMessageQueue" tests="2" time="170">
+ <testcase name="TestEtMessageQueue_testPushPop" time="0"/>
+ <testcase name="TestEtMessageQueue_testMassiveMessaging" time="170"/>
+ </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="1"/>
+ <testcase name="TestEtMessageService_getMessagePoolLowWaterMark" time="1"/>
+ </testsuite>
+ <testsuite failures="1" name=" TestEtUnit" tests="2" time="0">
+ <testcase name="TestEtUnit_Expect_Order" time="0"/>
+ <testcase name="TestEtUnit_Expect" time="0">
+ <failure><expected>2686618</expected><actual>2686619</actual>EXPECT_EQUAL_PTR: expected=2686618, actual=2686619
+ at ..\src\runtime\TestEtUnit.c:46</failure>
+ </testcase>
+ </testsuite>
+</testsuites>
\ No newline at end of file diff --git a/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestEtUnitSpecial.etu b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestEtUnitSpecial.etu new file mode 100644 index 000000000..78f14cc25 --- /dev/null +++ b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestEtUnitSpecial.etu @@ -0,0 +1,4 @@ +etUnit report
+ts start: etUnit
+tc start 11: openAll and closeAll
+tc end 11: 0
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestEtUnitSpecial.xml b/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestEtUnitSpecial.xml deleted file mode 100644 index 8867b0a19..000000000 --- a/tests/org.eclipse.etrice.runtime.c.tests/tmp/testlog/TestEtUnitSpecial.xml +++ /dev/null @@ -1,5 +0,0 @@ -<testsuites name="TestEtUnitSpecial" tests="0" failures="0" errors="0" time="0">
- <testsuite name="etUnit" tests="0" failures="0" errors="0" time="0">
- <testcase name="openAll and closeAll" time="0"/>
- </testsuite>
-</testsuites>
|