0
|
1 |
rem
|
|
2 |
rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
rem All rights reserved.
|
|
4 |
rem This component and the accompanying materials are made available
|
|
5 |
rem under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
rem which accompanies this distribution, and is available
|
|
7 |
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
rem
|
|
9 |
rem Initial Contributors:
|
|
10 |
rem Nokia Corporation - initial contribution.
|
|
11 |
rem
|
|
12 |
rem Contributors:
|
|
13 |
rem
|
|
14 |
rem Description:
|
|
15 |
rem
|
|
16 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
17 |
rem @SYMTestCaseID PBASE-FAT-PERF-1372
|
|
18 |
rem @SYMTestType PT
|
|
19 |
rem @SYMPREQ PREQ1885
|
|
20 |
rem @SYMTestCaseDesc To check the directory cache performance by opening multiple files linearly when 5.1MB data is used with 2MB DirCache
|
|
21 |
rem (i.e Partially Cached – 40% of data cached)
|
|
22 |
rem @SYMTestActions 0. Make sure the Test pre-settings
|
|
23 |
rem 1. Set FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 2048 KB in ESTART.TXT
|
|
24 |
rem 2. Try to fill DirCache with 5.1MB data
|
|
25 |
rem Note: Before the next step, ABCD~_1 file is opened at root dir \D1\ to set the LeafDirCache.
|
|
26 |
rem This should not be accounted for measurement purpose.
|
|
27 |
rem 3. Open the following files under \\D1\\D2\\D3\\
|
|
28 |
rem ABCD~_20
|
|
29 |
rem ABCD~_200
|
|
30 |
rem ABCD~_1000
|
|
31 |
rem ABCD~_3000
|
|
32 |
rem ABCD~_4000
|
|
33 |
rem ABCD~_6000
|
|
34 |
rem ABCD~_8000
|
|
35 |
rem 4. Measure the time taken to open each of these files
|
|
36 |
rem @SYMTestExpectedResults 1. FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 2048 KB
|
|
37 |
rem 2. DirCache filled with 2MB data only
|
|
38 |
rem 3. File Open Successful
|
|
39 |
rem 4. Time in ms for each file
|
|
40 |
rem Note: It is assumed that memory card is mounted on e: drive on the target board
|
|
41 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
42 |
|
|
43 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 1
|
|
44 |
t_fat_perf e -c Open -p D1\D2 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 0
|
|
45 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 0
|
|
46 |
|
|
47 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1 -n 1 -m 0
|
|
48 |
|
|
49 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_20 -n 1 -m 0
|
|
50 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_200 -n 1 -m 0
|
|
51 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1000 -n 1 -m 0
|
|
52 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_3000 -n 1 -m 0
|
|
53 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_4000 -n 1 -m 0
|
|
54 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_6000 -n 1 -m 0
|
|
55 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_8000 -n 1 -m 0
|
|
56 |
|
|
57 |
|
|
58 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
59 |
rem @SYMTestCaseID PBASE-FAT-PERF-1373
|
|
60 |
rem @SYMTestType PT
|
|
61 |
rem @SYMPREQ PREQ1885
|
|
62 |
rem @SYMTestCaseDesc To check the directory cache performance by opening multiple files randomly when 5.1MB data is used with 2MB DirCache
|
|
63 |
rem (i.e Partially Cached – 40% of data cached)
|
|
64 |
rem @SYMTestActions 0. Make sure the Test pre-settings
|
|
65 |
rem 1. Set FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 2048 KB in ESTART.TXT
|
|
66 |
rem 2. Try to fill DirCache with 5.1MB data
|
|
67 |
rem Note: Before the next step, ABCD~_1 file is opened at root dir \D1\ to set the LeafDirCache.
|
|
68 |
rem This should not be accounted for measurement purpose.
|
|
69 |
rem 3. Open the following files under \\D1\\D2\\D3\\
|
|
70 |
rem ABCD~_8000
|
|
71 |
rem ABCD~_20
|
|
72 |
rem ABCD~_4000
|
|
73 |
rem ABCD~_1000
|
|
74 |
rem ABCD~_3000
|
|
75 |
rem ABCD~_200
|
|
76 |
rem ABCD~_6000
|
|
77 |
rem 4. Measure the time taken to open each of these files
|
|
78 |
rem @SYMTestExpectedResults 1. FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 2048 KB
|
|
79 |
rem 2. DirCache filled with 2MB data only
|
|
80 |
rem 3. File Open Successful
|
|
81 |
rem 4. Time in ms for each file
|
|
82 |
rem Note: It is assumed that memory card is mounted on e: drive on the target board
|
|
83 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
84 |
|
|
85 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 1
|
|
86 |
t_fat_perf e -c Open -p D1\D2 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 0
|
|
87 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 0
|
|
88 |
|
|
89 |
|
|
90 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1 -n 1 -m 0
|
|
91 |
|
|
92 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_8000 -n 1 -m 0
|
|
93 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_20 -n 1 -m 0
|
|
94 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_4000 -n 1 -m 0
|
|
95 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1000 -n 1 -m 0
|
|
96 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_3000 -n 1 -m 0
|
|
97 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_200 -n 1 -m 0
|
|
98 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_6000 -n 1 -m 0
|
|
99 |
|
|
100 |
|
|
101 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
102 |
rem @SYMTestCaseID PBASE-FAT-PERF-1374
|
|
103 |
rem @SYMTestType PT
|
|
104 |
rem @SYMPREQ PREQ1885
|
|
105 |
rem @SYMTestCaseDesc To check the directory cache performance by creating a file when 5.1MB data is used with 2MB DirCache
|
|
106 |
rem (i.e Partially Cached – 40% of data cached)
|
|
107 |
rem @SYMTestActions 0. Make sure the Test pre-settings
|
|
108 |
rem 1. Set FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 2048 KB in ESTART.TXT
|
|
109 |
rem 2. Try to fill DirCache with 5.1MB data
|
|
110 |
rem Note: Before the next step, ABCD~_1 file is opened at root dir \D1\ to set the LeafDirCache.
|
|
111 |
rem This should not be accounted for measurement purpose.
|
|
112 |
rem 3. Create FILE_2.TXT in \\D1\\D2\\D3\\
|
|
113 |
rem 4. Measure the time taken to create a file
|
|
114 |
rem @SYMTestExpectedResults 1. FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 2048 KB
|
|
115 |
rem 2. DirCache filled with 2MB data only
|
|
116 |
rem 3. Files Creation Successful
|
|
117 |
rem 4. Time in ms
|
|
118 |
rem Note: It is assumed that memory card is mounted on e: drive on the target board
|
|
119 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
120 |
|
|
121 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 1
|
|
122 |
t_fat_perf e -c Open -p D1\D2 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 0
|
|
123 |
t_fat_perf e -c Open -p D1\D2\D3 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 0
|
|
124 |
|
|
125 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1 -n 1 -m 0
|
|
126 |
|
|
127 |
t_fat_perf e -c Create -p D1\D2\D3 -b FILE_2 -n 1 -m 0
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
rem ---Cleanup------------------------------------------------------------------------------------
|
|
132 |
rem ---Do not consider this for performance measurement
|
|
133 |
|
|
134 |
t_fat_perf e -c Delete -p D1\D2\D3 -b FILE_2 -n 1 -m 0
|
|
135 |
|
|
136 |
|