|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 //! @File |
|
17 //! @SYMTestSuiteName ostv2-api-unit-test-suite.script |
|
18 //! @SYMScriptTestEnvironment TEF |
|
19 |
|
20 |
|
21 PRINT Running te_ost_multipart_trace |
|
22 LOAD_SUITE te_ost_multipart_trace |
|
23 |
|
24 START_TESTCASE DT-DEBUG-TRACE-OSTv2-APIMultiTrace-0001 |
|
25 //! @SYMTestCaseID DT-DEBUG-TRACE-OSTv2-APIMultiTrace-0001 |
|
26 //! @SYMTestCaseDesc Run test for multi-parting functionality of the API |
|
27 //! @SYMTestPriority Critical |
|
28 //! @SYMTestActions For various size payloads inducing multi-parting of the trace packet (>80bytes) test the data contained in the trace packets |
|
29 //! @SYMTestExpectedResults Verify that the trace packet contain payload data multiparted as expected |
|
30 //! @SYMTestType UT |
|
31 //! @SYMTESTSTATUS Implemented |
|
32 //! @SYMPREQ PREQ2390 |
|
33 //! @SYMREQ 12115 12144 12761 12825 |
|
34 RUN_TEST_STEP 100 te_ost_multipart_trace CMultiTraceTestStep z:\testdata\configs\te_ost_trace_user.ini variability |
|
35 END_TESTCASE DT-DEBUG-TRACE-OSTv2-APIMultiTrace-0001 |
|
36 |
|
37 |
|
38 PRINT Running te_ost_enabled |
|
39 LOAD_SUITE te_ost_enabled |
|
40 |
|
41 START_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityEnabled-0001 |
|
42 //! @SYMTestCaseID DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityEnabled-0001 |
|
43 //! @SYMTestCaseDesc Run test to check for build time variability of the API with trace compiled in at build time |
|
44 //! @SYMTestPriority Critical |
|
45 //! @SYMTestActions For trace compiled in at build time, instrument and output trace points |
|
46 //! @SYMTestExpectedResults Verify that trace is implemented and output as expected |
|
47 //! @SYMTestType UT |
|
48 //! @SYMTESTSTATUS Implemented |
|
49 //! @SYMPREQ PREQ2390 |
|
50 //! @SYMREQ 12115 12144 12761 12825 |
|
51 RUN_TEST_STEP 100 te_ost_enabled CCheckBuildVariabilityStep z:\testdata\configs\te_ost_trace_user.ini variability |
|
52 END_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityEnabled-0001 |
|
53 |
|
54 |
|
55 PRINT Running te_ost_disabled |
|
56 LOAD_SUITE te_ost_disabled |
|
57 |
|
58 START_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityDisabled-0001 |
|
59 //! @SYMTestCaseID DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityDisabled-0001 |
|
60 //! @SYMTestCaseDesc Run test to check for build time variability of the API with trace compiled out at build time |
|
61 //! @SYMTestPriority Critical |
|
62 //! @SYMTestActions For trace compiled out at build time, instrument and output trace points |
|
63 //! @SYMTestExpectedResults Verify that trace is implemented and not output as expected |
|
64 //! @SYMTestType UT |
|
65 //! @SYMTESTSTATUS Implemented |
|
66 //! @SYMPREQ PREQ2390 |
|
67 //! @SYMREQ 12115 12144 12761 12825 |
|
68 RUN_TEST_STEP 100 te_ost_disabled CCheckBuildVariabilityStep z:\testdata\configs\te_ost_trace_user.ini variability |
|
69 END_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityDisabled-0001 |
|
70 |
|
71 |
|
72 PRINT Running te_ost_record_content |
|
73 LOAD_SUITE te_ost_record_content |
|
74 |
|
75 // this test currently fails due to problem in RUlogger |
|
76 START_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckRecordContent-0001 |
|
77 //! @SYMTestCaseID DT-DEBUG-TRACE-OSTv2-APICheckRecordContent-0001 |
|
78 //! @SYMTestCaseDesc Run test to check the trace packet is correct |
|
79 //! @SYMTestPriority Medium |
|
80 //! @SYMTestActions Check record content of logged trace packets is as expected for the sent packet |
|
81 //! @SYMTestExpectedResults Verify that trace is implemented and output as expected |
|
82 //! @SYMTestType UT |
|
83 //! @SYMTESTSTATUS Implemented |
|
84 //! @SYMPREQ PREQ2390 |
|
85 //! @SYMREQ 12115 12144 12761 12825 |
|
86 RUN_TEST_STEP 100 te_ost_record_content CCheckRecordContentStep z:\testdata\configs\te_ost_trace_user.ini variability |
|
87 END_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckRecordContent-0001 |
|
88 |
|
89 DELAY 10000 |
|
90 |
|
91 PRINT Running te_ost_record_content |
|
92 LOAD_SUITE te_ost_record_content |
|
93 |
|
94 // this one passes on h4 - but due to hang on emulator fix implemented which means emulator figures not valid |
|
95 START_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckPerformance-0001 |
|
96 //! @SYMTestCaseID DT-DEBUG-TRACE-OSTv2-APICheckPerformance-0001 |
|
97 //! @SYMTestCaseDesc Run test to test the API performance |
|
98 //! @SYMTestPriority Medium |
|
99 //! @SYMTestActions Measure the trace time of the implemented APIs |
|
100 //! @SYMTestExpectedResults Verify that performance of the trace APIs are not significantly more intrusive than previous implementations |
|
101 //! @SYMTestType UT |
|
102 //! @SYMTESTSTATUS Implemented |
|
103 //! @SYMPREQ PREQ2390 |
|
104 //! @SYMREQ 12115 12144 12761 12825 |
|
105 RUN_TEST_STEP 100 te_ost_record_content CCheckPerformanceStep z:\testdata\configs\te_ost_trace_user.ini variability |
|
106 END_TESTCASE DT-DEBUG-TRACE-OSTv2-APICheckPerformance-0001 |
|
107 |
|
108 |
|
109 // unit tests for OST macros (macros only and not UTFv2 like functions) |
|
110 PRINT Running OST macros enabled unit tests |
|
111 LOAD_SUITE te_ost_macros_enabled |
|
112 START_TESTCASE DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0001 |
|
113 //! @SYMTestCaseID DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0001 |
|
114 //! @SYMTestCaseDesc Run test to test enabled OST macros (macros only and not UTFv2 like functions) |
|
115 //! @SYMTestPriority Medium |
|
116 //! @SYMTestActions Test the implemented OSTv1-style APIs when compiled in |
|
117 //! @SYMTestExpectedResults Verify that the OSTv1-style trace APIs return trace packets as expected by the instrumentation |
|
118 //! @SYMTestType UT |
|
119 //! @SYMTESTSTATUS Implemented |
|
120 //! @SYMPREQ PREQ2390 |
|
121 //! @SYMREQ 12115 12144 12761 12825 |
|
122 RUN_TEST_STEP 100 te_ost_macros_enabled COstMacrosEnabledStep z:\testdata\configs\te_ost_trace_user.ini variability |
|
123 END_TESTCASE DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0001 |
|
124 |
|
125 |
|
126 // unit tests for OST macros (macros only and not UTFv2 like functions) |
|
127 PRINT Running OST macros disabled unit tests |
|
128 LOAD_SUITE te_ost_macros_disabled |
|
129 START_TESTCASE DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0002 |
|
130 //! @SYMTestCaseID DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0002 |
|
131 //! @SYMTestCaseDesc Run test to test disabled OST macros (macros only and not UTFv2 like functions) |
|
132 //! @SYMTestPriority Medium |
|
133 //! @SYMTestActions Test the implemented OSTv1-style APIs when compiled out |
|
134 //! @SYMTestExpectedResults Verify that the OSTv1-style trace APIs don't return trace packets as expected by the instrumentation |
|
135 //! @SYMTestType UT |
|
136 //! @SYMTESTSTATUS Implemented |
|
137 //! @SYMPREQ PREQ2390 |
|
138 //! @SYMREQ 12115 12144 12761 12825 |
|
139 RUN_TEST_STEP 100 te_ost_macros_disabled COstMacrosDisabledStep z:\testdata\configs\te_ost_trace_user.ini variability |
|
140 END_TESTCASE DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0002 |