traceservices/tracefw/ost_trace_api/unit_test/te_ost/scripts/te_ostsuite.script
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 //! @file
    16 //! @File
    17 //! @SYMTestSuiteName               	ostv2-api-unit-test-suite.script
    17 //! @SYMTestSuiteName               	ostv2-api-unit-test-suite.script
    18 //! @SYMScriptTestEnvironment       	TEF
    18 //! @SYMScriptTestEnvironment       	TEF
    19 
    19 
    20 
    20 
    21 PRINT Running te_ost_multipart_trace
    21 PRINT Running te_ost_multipart_trace
    26 //! @SYMTestCaseDesc     Run test for multi-parting functionality of the API
    26 //! @SYMTestCaseDesc     Run test for multi-parting functionality of the API
    27 //! @SYMTestPriority     Critical
    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
    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
    29 //! @SYMTestExpectedResults     Verify that the trace packet contain payload data multiparted as expected
    30 //! @SYMTestType         UT
    30 //! @SYMTestType         UT
    31 //! @SYMTestStatus   Implemented
    31 //! @SYMTESTSTATUS   Implemented
    32 //! @SYMPREQ                 PREQ2390
    32 //! @SYMPREQ                 PREQ2390
    33 //! @SYMREQ                    12115 12144 12761 12825 
    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
    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
    35 END_TESTCASE			DT-DEBUG-TRACE-OSTv2-APIMultiTrace-0001
    36 
    36 
    43 //! @SYMTestCaseDesc     Run test to check for build time variability of the API with trace compiled in at build time 
    43 //! @SYMTestCaseDesc     Run test to check for build time variability of the API with trace compiled in at build time 
    44 //! @SYMTestPriority     Critical
    44 //! @SYMTestPriority     Critical
    45 //! @SYMTestActions    For trace compiled in at build time, instrument and output trace points 
    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
    46 //! @SYMTestExpectedResults     Verify that trace is implemented and output as expected
    47 //! @SYMTestType         UT
    47 //! @SYMTestType         UT
    48 //! @SYMTestStatus   Implemented
    48 //! @SYMTESTSTATUS   Implemented
    49 //! @SYMPREQ                 PREQ2390
    49 //! @SYMPREQ                 PREQ2390
    50 //! @SYMREQ                    12115 12144 12761 12825
    50 //! @SYMREQ                    12115 12144 12761 12825
    51 RUN_TEST_STEP 100 te_ost_enabled CCheckBuildVariabilityStep z:\testdata\configs\te_ost_trace_user.ini variability
    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
    52 END_TESTCASE			DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityEnabled-0001
    53 
    53 
    60 //! @SYMTestCaseDesc     Run test to check for build time variability of the API with trace compiled out at build time 
    60 //! @SYMTestCaseDesc     Run test to check for build time variability of the API with trace compiled out at build time 
    61 //! @SYMTestPriority     Critical
    61 //! @SYMTestPriority     Critical
    62 //! @SYMTestActions    For trace compiled out at build time, instrument and output trace points 
    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
    63 //! @SYMTestExpectedResults     Verify that trace is implemented and not output as expected
    64 //! @SYMTestType         UT
    64 //! @SYMTestType         UT
    65 //! @SYMTestStatus   Implemented
    65 //! @SYMTESTSTATUS   Implemented
    66 //! @SYMPREQ                 PREQ2390
    66 //! @SYMPREQ                 PREQ2390
    67 //! @SYMREQ                    12115 12144 12761 12825
    67 //! @SYMREQ                    12115 12144 12761 12825
    68 RUN_TEST_STEP 100 te_ost_disabled CCheckBuildVariabilityStep z:\testdata\configs\te_ost_trace_user.ini variability
    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
    69 END_TESTCASE			DT-DEBUG-TRACE-OSTv2-APICheckBuildVariabilityDisabled-0001
    70 
    70 
    78 //! @SYMTestCaseDesc     Run test to check the trace packet is correct 
    78 //! @SYMTestCaseDesc     Run test to check the trace packet is correct 
    79 //! @SYMTestPriority     Medium
    79 //! @SYMTestPriority     Medium
    80 //! @SYMTestActions    Check record content of logged trace packets is as expected for the sent packet 
    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
    81 //! @SYMTestExpectedResults     Verify that trace is implemented and output as expected
    82 //! @SYMTestType         UT
    82 //! @SYMTestType         UT
    83 //! @SYMTestStatus   Implemented
    83 //! @SYMTESTSTATUS   Implemented
    84 //! @SYMPREQ                 PREQ2390
    84 //! @SYMPREQ                 PREQ2390
    85 //! @SYMREQ                    12115 12144 12761 12825
    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
    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
    87 END_TESTCASE			DT-DEBUG-TRACE-OSTv2-APICheckRecordContent-0001
    88 
    88 
    97 //! @SYMTestCaseDesc     Run test to test the API performance
    97 //! @SYMTestCaseDesc     Run test to test the API performance
    98 //! @SYMTestPriority     Medium
    98 //! @SYMTestPriority     Medium
    99 //! @SYMTestActions    Measure the trace time of the implemented APIs
    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  
   100 //! @SYMTestExpectedResults     Verify that performance of the trace APIs are not significantly more intrusive than previous implementations  
   101 //! @SYMTestType         UT
   101 //! @SYMTestType         UT
   102 //! @SYMTestStatus   Implemented
   102 //! @SYMTESTSTATUS   Implemented
   103 //! @SYMPREQ                 PREQ2390
   103 //! @SYMPREQ                 PREQ2390
   104 //! @SYMREQ                    12115 12144 12761 12825
   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
   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
   106 END_TESTCASE			DT-DEBUG-TRACE-OSTv2-APICheckPerformance-0001
   107 
   107 
   114 //! @SYMTestCaseDesc     Run test to test enabled OST macros (macros only and not UTFv2 like functions)
   114 //! @SYMTestCaseDesc     Run test to test enabled OST macros (macros only and not UTFv2 like functions)
   115 //! @SYMTestPriority     Medium
   115 //! @SYMTestPriority     Medium
   116 //! @SYMTestActions    Test the implemented OSTv1-style APIs when compiled in
   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 
   117 //! @SYMTestExpectedResults     Verify that the OSTv1-style trace APIs return trace packets as expected by the instrumentation 
   118 //! @SYMTestType         UT
   118 //! @SYMTestType         UT
   119 //! @SYMTestStatus   Implemented
   119 //! @SYMTESTSTATUS   Implemented
   120 //! @SYMPREQ                 PREQ2390
   120 //! @SYMPREQ                 PREQ2390
   121 //! @SYMREQ                    12115 12144 12761 12825
   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
   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
   123 END_TESTCASE			DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0001
   124 
   124 
   131 //! @SYMTestCaseDesc     Run test to test disabled OST macros (macros only and not UTFv2 like functions)
   131 //! @SYMTestCaseDesc     Run test to test disabled OST macros (macros only and not UTFv2 like functions)
   132 //! @SYMTestPriority     Medium
   132 //! @SYMTestPriority     Medium
   133 //! @SYMTestActions    Test the implemented OSTv1-style APIs when compiled out
   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 
   134 //! @SYMTestExpectedResults     Verify that the OSTv1-style trace APIs don't return trace packets as expected by the instrumentation 
   135 //! @SYMTestType         UT
   135 //! @SYMTestType         UT
   136 //! @SYMTestStatus   Implemented
   136 //! @SYMTESTSTATUS   Implemented
   137 //! @SYMPREQ                 PREQ2390
   137 //! @SYMPREQ                 PREQ2390
   138 //! @SYMREQ                    12115 12144 12761 12825
   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
   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
   140 END_TESTCASE			DT-DEBUG-TRACE-OSTv2-APIUNITTEST-0002