author | John Imhofe <john.imhofe@nokia.com> |
Mon, 21 Dec 2009 16:14:42 +0000 | |
changeset 2 | 4122176ea935 |
parent 0 | a41df078684a |
permissions | -rw-r--r-- |
0 | 1 |
// |
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
// All rights reserved. |
|
4 |
// This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of "Eclipse Public License v1.0" |
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 |
// |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
// Description: |
0 | 15 |
// |
16 |
//! @file |
|
17 |
//! @SYMTestSuiteName pbase-f32-rfs-performance-small |
|
18 |
//! @SYMScriptDescription The test script contains performance tests for the following API of the |
|
19 |
//! RFs class: |
|
20 |
//! TInt Entry(const TDesC &aName, TEntry &anEntry) const; |
|
21 |
//! @SYMScriptTestEnvironment This test script requires a NAND or NOR configuration ROM image |
|
22 |
//! when running this suite with test driver ensure STAT is built into the ROM |
|
23 |
//! @SYMScriptAutomation Test Execute Framework and Test Driver |
|
24 |
//! @SYMScriptAuthor Rehana Anwar |
|
25 |
//! @SYMScriptCreationDate 10/05/2007 |
|
26 |
||
27 |
LOAD_SUITE t_perf |
|
28 |
||
29 |
||
30 |
START_TESTCASE pbase-f32-rfs-performance-small-entry-0001 |
|
31 |
//! @SYMTestCaseID pbase-f32-rfs-performance-small-entry-0001 |
|
32 |
//! @SYMAPI RFs::Entry |
|
33 |
//! @SYMTestCaseDesc Entry test:Tests the performance of TInt Entry(const TDesC &aName, TEntry &anEntry) |
|
34 |
//! by calculating the time taken to make 100 calls to get the entry details of all sub directories |
|
35 |
//! from directory x to directory y. |
|
36 |
//! @SYMTestActions 1. Create a directory tree N directories deep on the chosen test drive. Where N is read in as dirTreeDepth |
|
37 |
//! 2. Create number of files requested and set the file size |
|
38 |
//! 3. Fill in each file with file data. |
|
39 |
//! 5. Start the clock |
|
40 |
//! 6. Retrieve entry details of a directory for a file ( this entry alternates for each api call). |
|
41 |
//! 7. Repeat step 6, X times each ( where x is the number of function calls specified, an the entry requested alternates). |
|
42 |
//! 8. Stop the clock |
|
43 |
//! 9. Record the elapsed time t |
|
44 |
//! 10. Calculate and print the time taken per call i.e. t/X ( where x is the number of function calls), |
|
45 |
//! and print time t total time for all function calls |
|
46 |
//! 11. Delete the directory structure created. |
|
47 |
//! @SYMTestStatus Implemented |
|
48 |
//! @SYMTestPriority High |
|
49 |
//! @SYMTestExpectedResults The average time taken per call and the total time taken for all calls is displayed |
|
50 |
RUN_TEST_STEP 960 t_perf SetupStep \base\performance\f32\pbase-f32-rfs-performance-small.ini pbase-f32-rfs-performance-small-entry-0001-0001 |
|
51 |
RUN_TEST_STEP 500 t_perf EntryStep \base\performance\f32\pbase-f32-rfs-performance-small.ini pbase-f32-rfs-performance-small-entry-0001-0001 |
|
52 |
RUN_TEST_STEP 960 t_perf CleanupStep \base\performance\f32\pbase-f32-rfs-performance-small.ini pbase-f32-rfs-performance-small-entry-0001-0001 |
|
53 |
END_TESTCASE pbase-f32-rfs-performance-small-entry-0001 |