commsfwutils/commsbufs/TS_mbufmgr/scriptfiles/mbuftest.script
changeset 0 dfb7c4ff071f
child 18 9644881fedd0
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //! @file
       
    17 //! @SYMTestSuiteName COMMS-MBUFMGR
       
    18 //! @SYMScriptTestEnvironment Standard Symbian HRP or emulator environment
       
    19 
       
    20 //RUN_SCRIPT 102.script
       
    21 PRINT TS_CTMBufMgr: Group test 
       
    22 PRINT ------------------------------
       
    23 PRINT
       
    24 
       
    25 LOAD_SUITE TS_CTMBufMgr.dll
       
    26 PRINT ------------------------------
       
    27 PRINT
       
    28 
       
    29 START_TESTCASE			COMINF-MBUFMGR-0100
       
    30 //! @SYMTestCaseID		COMINF-MBUFMGR-0100
       
    31 PRINT Test 01: Create/Delete MBufMgr
       
    32 HANDLES_MARK
       
    33 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest01
       
    34 HANDLES_CHECK
       
    35 TEST_COMPLETE
       
    36 PRINT ------------------------------
       
    37 PRINT
       
    38 END_TESTCASE			COMINF-MBUFMGR-0100
       
    39 
       
    40 START_TESTCASE			COMINF-MBUFMGR-0200
       
    41 //! @SYMTestCaseID		COMINF-MBUFMGR-0200
       
    42 PRINT Test 02: Alloc/Dealloc RMBuf
       
    43 HANDLES_MARK
       
    44 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest02
       
    45 HANDLES_CHECK
       
    46 TEST_COMPLETE
       
    47 PRINT ------------------------------
       
    48 PRINT
       
    49 END_TESTCASE			COMINF-MBUFMGR-0200
       
    50 
       
    51 START_TESTCASE			COMINF-MBUFMGR-0300
       
    52 //! @SYMTestCaseID		COMINF-MBUFMGR-0300
       
    53 PRINT Test 03: Alloc/Dealloc RMBuf
       
    54 HANDLES_MARK
       
    55 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest03
       
    56 HANDLES_CHECK
       
    57 TEST_COMPLETE
       
    58 PRINT ------------------------------
       
    59 PRINT
       
    60 END_TESTCASE			COMINF-MBUFMGR-0300
       
    61 
       
    62 START_TESTCASE			COMINF-MBUFMGR-0400
       
    63 //! @SYMTestCaseID		COMINF-MBUFMGR-0400
       
    64 PRINT Test 04: CopyIn/Out 
       
    65 HANDLES_MARK
       
    66 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest04
       
    67 HANDLES_CHECK
       
    68 TEST_COMPLETE
       
    69 PRINT ------------------------------
       
    70 PRINT
       
    71 END_TESTCASE			COMINF-MBUFMGR-0400
       
    72 
       
    73 START_TESTCASE			COMINF-MBUFMGR-0500
       
    74 //! @SYMTestCaseID		COMINF-MBUFMGR-0500
       
    75 PRINT Test 05: CopyIn/Out with Offset 
       
    76 HANDLES_MARK
       
    77 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest05 ,z:\testdata\configs\MBufTest05-CopyIn.ini
       
    78 HANDLES_CHECK
       
    79 TEST_COMPLETE
       
    80 PRINT ------------------------------
       
    81 PRINT
       
    82 END_TESTCASE			COMINF-MBUFMGR-0500
       
    83 
       
    84 START_TESTCASE			COMINF-MBUFMGR-0501
       
    85 //! @SYMTestCaseID		COMINF-MBUFMGR-0501
       
    86 PRINT Test 05: CopyIn/Out with Offset 
       
    87 HANDLES_MARK
       
    88 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest05 ,z:\testdata\configs\MBufTest05-CopyOut.ini
       
    89 HANDLES_CHECK
       
    90 TEST_COMPLETE
       
    91 PRINT ------------------------------
       
    92 PRINT
       
    93 END_TESTCASE			COMINF-MBUFMGR-0501
       
    94 
       
    95 START_TESTCASE			COMINF-MBUFMGR-0600
       
    96 //! @SYMTestCaseID		COMINF-MBUFMGR-0600
       
    97 PRINT Test 06: Split the chain on the first and only RMBuf
       
    98 HANDLES_MARK
       
    99 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest06 ,z:\testdata\configs\MBufTest06-1st.ini
       
   100 HANDLES_CHECK
       
   101 TEST_COMPLETE
       
   102 PRINT ------------------------------
       
   103 PRINT
       
   104 END_TESTCASE			COMINF-MBUFMGR-0600
       
   105 
       
   106 START_TESTCASE			COMINF-MBUFMGR-0601
       
   107 //! @SYMTestCaseID		COMINF-MBUFMGR-0601
       
   108 PRINT Test 06: Split the chain on the boundary of the 1st & 2nd RMBuf
       
   109 HANDLES_MARK
       
   110 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest06 ,z:\testdata\configs\MBufTest06-2nd.ini
       
   111 HANDLES_CHECK
       
   112 TEST_COMPLETE
       
   113 PRINT ------------------------------
       
   114 PRINT
       
   115 END_TESTCASE			COMINF-MBUFMGR-0601
       
   116 
       
   117 START_TESTCASE			COMINF-MBUFMGR-0602
       
   118 //! @SYMTestCaseID		COMINF-MBUFMGR-0602
       
   119 PRINT Test 06: Split the chain (containing 3 RMBufs) on the 2nd RMBuf
       
   120 HANDLES_MARK
       
   121 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest06 ,z:\testdata\configs\MBufTest06-3rd.ini
       
   122 HANDLES_CHECK
       
   123 TEST_COMPLETE
       
   124 PRINT ------------------------------
       
   125 PRINT
       
   126 END_TESTCASE			COMINF-MBUFMGR-0602
       
   127 
       
   128 START_TESTCASE			COMINF-MBUFMGR-0700
       
   129 //! @SYMTestCaseID		COMINF-MBUFMGR-0700
       
   130 PRINT Test 07: TrimStart the chain on the first and only RMBuf
       
   131 HANDLES_MARK
       
   132 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest07 ,z:\testdata\configs\MBufTest07-1st.ini
       
   133 HANDLES_CHECK
       
   134 TEST_COMPLETE
       
   135 PRINT ------------------------------
       
   136 PRINT
       
   137 END_TESTCASE			COMINF-MBUFMGR-0700
       
   138 
       
   139 START_TESTCASE			COMINF-MBUFMGR-0701
       
   140 //! @SYMTestCaseID		COMINF-MBUFMGR-0701
       
   141 PRINT Test 07: TrimStart the chain on the boundary of the 1st & 2nd RMBuf
       
   142 HANDLES_MARK
       
   143 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest07 ,z:\testdata\configs\MBufTest07-2nd.ini
       
   144 HANDLES_CHECK
       
   145 TEST_COMPLETE
       
   146 PRINT ------------------------------
       
   147 PRINT
       
   148 END_TESTCASE			COMINF-MBUFMGR-0701
       
   149 
       
   150 START_TESTCASE			COMINF-MBUFMGR-0702
       
   151 //! @SYMTestCaseID		COMINF-MBUFMGR-0702
       
   152 PRINT Test 07: TrimStart the chain (containing 3 RMBufs) on the 2nd RMBuf
       
   153 HANDLES_MARK
       
   154 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest07 ,z:\testdata\configs\MBufTest07-3rd.ini
       
   155 HANDLES_CHECK
       
   156 TEST_COMPLETE
       
   157 PRINT ------------------------------
       
   158 PRINT
       
   159 END_TESTCASE			COMINF-MBUFMGR-0702
       
   160 
       
   161 START_TESTCASE			COMINF-MBUFMGR-0800
       
   162 //! @SYMTestCaseID		COMINF-MBUFMGR-0800
       
   163 PRINT Test 08: TrimEnd the chain on the first and only RMBuf
       
   164 HANDLES_MARK
       
   165 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest08 ,z:\testdata\configs\MBufTest08-1st.ini
       
   166 HANDLES_CHECK
       
   167 TEST_COMPLETE
       
   168 PRINT ------------------------------
       
   169 PRINT
       
   170 END_TESTCASE			COMINF-MBUFMGR-0800
       
   171 
       
   172 START_TESTCASE			COMINF-MBUFMGR-0801
       
   173 //! @SYMTestCaseID		COMINF-MBUFMGR-0801
       
   174 PRINT Test 08: TrimEnd the chain on the boundary of the 1st & 2nd RMBuf
       
   175 HANDLES_MARK
       
   176 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest08 ,z:\testdata\configs\MBufTest08-2nd.ini
       
   177 HANDLES_CHECK
       
   178 TEST_COMPLETE
       
   179 PRINT ------------------------------
       
   180 PRINT
       
   181 END_TESTCASE			COMINF-MBUFMGR-0801
       
   182 
       
   183 START_TESTCASE			COMINF-MBUFMGR-0802
       
   184 //! @SYMTestCaseID		COMINF-MBUFMGR-0802
       
   185 PRINT Test 08: TrimEnd the chain (containing 3 RMBufs) on the 2nd RMBuf
       
   186 HANDLES_MARK
       
   187 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest08 ,z:\testdata\configs\MBufTest08-3rd.ini
       
   188 HANDLES_CHECK
       
   189 TEST_COMPLETE
       
   190 PRINT ------------------------------
       
   191 PRINT
       
   192 END_TESTCASE			COMINF-MBUFMGR-0802
       
   193 
       
   194 START_TESTCASE			COMINF-MBUFMGR-0900
       
   195 //! @SYMTestCaseID		COMINF-MBUFMGR-0900
       
   196 PRINT Test 09: Align - already aligned and fits
       
   197 HANDLES_MARK
       
   198 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest09 ,z:\testdata\configs\MBufTest09-1st.ini
       
   199 HANDLES_CHECK
       
   200 TEST_COMPLETE
       
   201 PRINT ------------------------------
       
   202 PRINT
       
   203 END_TESTCASE			COMINF-MBUFMGR-0900
       
   204 
       
   205 START_TESTCASE			COMINF-MBUFMGR-0901
       
   206 //! @SYMTestCaseID		COMINF-MBUFMGR-0901
       
   207 PRINT Test 09: Align - not aligned but fits
       
   208 HANDLES_MARK
       
   209 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest09 ,z:\testdata\configs\MBufTest09-2nd.ini
       
   210 HANDLES_CHECK
       
   211 TEST_COMPLETE
       
   212 PRINT ------------------------------
       
   213 PRINT
       
   214 END_TESTCASE			COMINF-MBUFMGR-0901
       
   215 
       
   216 START_TESTCASE			COMINF-MBUFMGR-0902
       
   217 //! @SYMTestCaseID		COMINF-MBUFMGR-0902
       
   218 PRINT Test 09: Align - already aligned but does not fit
       
   219 HANDLES_MARK
       
   220 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest09 ,z:\testdata\configs\MBufTest09-3rd.ini
       
   221 HANDLES_CHECK
       
   222 TEST_COMPLETE
       
   223 PRINT ------------------------------
       
   224 PRINT
       
   225 END_TESTCASE			COMINF-MBUFMGR-0902
       
   226 
       
   227 START_TESTCASE			COMINF-MBUFMGR-0903
       
   228 //! @SYMTestCaseID		COMINF-MBUFMGR-0903
       
   229 PRINT Test 09: Align - not aligned, does not fit
       
   230 HANDLES_MARK
       
   231 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest09 ,z:\testdata\configs\MBufTest09-4th.ini
       
   232 HANDLES_CHECK
       
   233 TEST_COMPLETE
       
   234 PRINT ------------------------------
       
   235 PRINT
       
   236 END_TESTCASE			COMINF-MBUFMGR-0903
       
   237 
       
   238 START_TESTCASE			COMINF-MBUFMGR-1000
       
   239 //! @SYMTestCaseID		COMINF-MBUFMGR-1000
       
   240 PRINT Test 09: Align - not aligned, does not fit and it should free a RMBuf
       
   241 HANDLES_MARK
       
   242 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest09 ,z:\testdata\configs\MBufTest09-5th.ini
       
   243 HANDLES_CHECK
       
   244 TEST_COMPLETE
       
   245 PRINT ------------------------------
       
   246 PRINT
       
   247 END_TESTCASE			COMINF-MBUFMGR-1000
       
   248 
       
   249 START_TESTCASE			COMINF-MBUFMGR-1001
       
   250 //! @SYMTestCaseID		COMINF-MBUFMGR-1001
       
   251 PRINT Test 10: CopyL 
       
   252 HANDLES_MARK
       
   253 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest10 ,z:\testdata\configs\MBufTest10-1st.ini
       
   254 HANDLES_CHECK
       
   255 TEST_COMPLETE
       
   256 PRINT ------------------------------
       
   257 PRINT
       
   258 END_TESTCASE			COMINF-MBUFMGR-1001
       
   259 
       
   260 START_TESTCASE			COMINF-MBUFMGR-1100
       
   261 //! @SYMTestCaseID		COMINF-MBUFMGR-1100
       
   262 PRINT Test 11: Async alloc 
       
   263 HANDLES_MARK
       
   264 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest11
       
   265 HANDLES_CHECK
       
   266 TEST_COMPLETE
       
   267 PRINT ------------------------------
       
   268 PRINT
       
   269 END_TESTCASE			COMINF-MBUFMGR-1100
       
   270 
       
   271 START_TESTCASE			COMINF-MBUFMGR-1200
       
   272 //! @SYMTestCaseID		COMINF-MBUFMGR-1200
       
   273 PRINT Test 12: General test 
       
   274 HANDLES_MARK
       
   275 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest12
       
   276 HANDLES_CHECK
       
   277 TEST_COMPLETE
       
   278 PRINT ------------------------------
       
   279 PRINT
       
   280 END_TESTCASE			COMINF-MBUFMGR-1200
       
   281 
       
   282 START_TESTCASE			COMINF-MBUFMGR-1300
       
   283 //! @SYMTestCaseID		COMINF-MBUFMGR-1300
       
   284 PRINT Test 13: Performance test 
       
   285 HANDLES_MARK
       
   286 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest13 ,z:\testdata\configs\MBufTest13-1st.ini
       
   287 HANDLES_CHECK
       
   288 TEST_COMPLETE
       
   289 PRINT ------------------------------
       
   290 PRINT
       
   291 END_TESTCASE			COMINF-MBUFMGR-1300
       
   292 
       
   293 START_TESTCASE			COMINF-MBUFMGR-1400
       
   294 //! @SYMTestCaseID		COMINF-MBUFMGR-1400
       
   295 PRINT Test 14: Heap Free Check 
       
   296 HANDLES_MARK
       
   297 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest14
       
   298 HANDLES_CHECK
       
   299 TEST_COMPLETE
       
   300 PRINT ------------------------------
       
   301 PRINT
       
   302 END_TESTCASE			COMINF-MBUFMGR-1400
       
   303 
       
   304 START_TESTCASE			COMINF-MBUFMGR-1500
       
   305 //! @SYMTestCaseID		COMINF-MBUFMGR-1500
       
   306 PRINT Test 15: Concurency
       
   307 HANDLES_MARK
       
   308 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest15
       
   309 HANDLES_CHECK
       
   310 TEST_COMPLETE
       
   311 PRINT ------------------------------
       
   312 PRINT
       
   313 END_TESTCASE			COMINF-MBUFMGR-1500
       
   314 
       
   315 START_TESTCASE			COMINF-MBUFMGR-1600
       
   316 //! @SYMTestCaseID		COMINF-MBUFMGR-1600
       
   317 PRINT Test 16: MemoryFull
       
   318 HANDLES_MARK
       
   319 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest16
       
   320 HANDLES_CHECK
       
   321 TEST_COMPLETE
       
   322 PRINT ------------------------------
       
   323 PRINT
       
   324 END_TESTCASE			COMINF-MBUFMGR-1600
       
   325 
       
   326 START_TESTCASE			COMINF-MBUFMGR-1700
       
   327 //! @SYMTestCaseID		COMINF-MBUFMGR-1700
       
   328 PRINT Test 17: Request Size Limit test
       
   329 HANDLES_MARK
       
   330 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest17
       
   331 HANDLES_CHECK
       
   332 TEST_COMPLETE
       
   333 PRINT ------------------------------
       
   334 PRINT
       
   335 END_TESTCASE			COMINF-MBUFMGR-1700
       
   336 
       
   337 // The COMINF-MBUFMGR-1800 test has been removed as part of PREQ2106 and
       
   338 // shared buffer implementation. Note COMINF-MBUFMGR-1800 tries to do a 
       
   339 // best fit allocation which is not really neccassary and the algorithm has
       
   340 // been relaxed.
       
   341 
       
   342 START_TESTCASE			COMINF-MBUFMGR-1900
       
   343 //! @SYMTestCaseID		COMINF-MBUFMGR-1900
       
   344 PRINT Test 19: Prepend
       
   345 HANDLES_MARK
       
   346 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest19
       
   347 HANDLES_CHECK
       
   348 TEST_COMPLETE
       
   349 PRINT ------------------------------
       
   350 PRINT
       
   351 END_TESTCASE			COMINF-MBUFMGR-1900
       
   352 
       
   353 START_TESTCASE			COMINF-MBUFMGR-2000
       
   354 //! @SYMTestCaseID		COMINF-MBUFMGR-2000
       
   355 PRINT Test 20: PoolCeilingMemoryFull
       
   356 HANDLES_MARK
       
   357 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest20
       
   358 HANDLES_CHECK
       
   359 TEST_COMPLETE
       
   360 PRINT ------------------------------
       
   361 PRINT
       
   362 END_TESTCASE			COMINF-MBUFMGR-2000
       
   363 
       
   364 START_TESTCASE			COMINF-MBUFMGR-2100
       
   365 //! @SYMTestCaseID		COMINF-MBUFMGR-2100
       
   366 PRINT Test 21: commsbufsmiscellaneous
       
   367 HANDLES_MARK
       
   368 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest21
       
   369 HANDLES_CHECK
       
   370 TEST_COMPLETE
       
   371 PRINT ------------------------------
       
   372 PRINT
       
   373 END_TESTCASE			COMINF-MBUFMGR-2100
       
   374 
       
   375 START_TESTCASE			COMINF-MBUFMGR-2200
       
   376 //! @SYMTestCaseID		COMINF-MBUFMGR-2200
       
   377 PRINT Test 22: Append
       
   378 HANDLES_MARK
       
   379 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest22
       
   380 HANDLES_CHECK
       
   381 TEST_COMPLETE
       
   382 PRINT ------------------------------
       
   383 PRINT
       
   384 END_TESTCASE			COMINF-MBUFMGR-2200
       
   385 
       
   386 START_TESTCASE			COMINF-MBUFMGR-2300
       
   387 //! @SYMTestCaseID		COMINF-MBUFMGR-2300
       
   388 PRINT Test 23: RMBufQ
       
   389 HANDLES_MARK
       
   390 RUN_TEST_STEP 10000, TS_CTMBufMgr, MBufMgrTest23
       
   391 HANDLES_CHECK
       
   392 TEST_COMPLETE
       
   393 PRINT ------------------------------
       
   394 PRINT
       
   395 END_TESTCASE			COMINF-MBUFMGR-2300
       
   396