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-1369
|
|
18 |
rem @SYMTestType PT
|
|
19 |
rem @SYMPREQ PREQ1885
|
|
20 |
rem @SYMTestCaseDesc To check the directory cache performance by opening multiple files linearly when 1.7MB data is used with 1 MB DirCache
|
|
21 |
rem (i.e Partially Cached – 59% of data cached)
|
|
22 |
rem @SYMTestActions 0. Make sure the Test pre-settings
|
|
23 |
rem 1. Set FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 1024 KB in ESTART.TXT
|
|
24 |
rem 2. Try to fill DirCache with 1.7 MB 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\\:
|
|
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 = 1024 KB
|
|
37 |
rem 2. DirCache filled with 1 MB 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 |
|
|
45 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1 -n 1 -m 0
|
|
46 |
|
|
47 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_20 -n 1 -m 0
|
|
48 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_200 -n 1 -m 0
|
|
49 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1000 -n 1 -m 0
|
|
50 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_3000 -n 1 -m 0
|
|
51 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_4000 -n 1 -m 0
|
|
52 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_6000 -n 1 -m 0
|
|
53 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_8000 -n 1 -m 0
|
|
54 |
|
|
55 |
|
|
56 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
57 |
rem @SYMTestCaseID PBASE-FAT-PERF-1370
|
|
58 |
rem @SYMTestType PT
|
|
59 |
rem @SYMPREQ PREQ1885
|
|
60 |
rem @SYMTestCaseDesc To check the directory cache performance by opening multiple files randomly when 1.7MB data is used with 1 MB DirCache
|
|
61 |
rem (i.e Partially Cached – 59% of data cached)
|
|
62 |
rem @SYMTestActions 0. Make sure the Test pre-settings
|
|
63 |
rem 1. Set FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 1024 KB in ESTART.TXT
|
|
64 |
rem 2. Try to fill DirCache with 1.7 MB data
|
|
65 |
rem Note: Before the next step, ABCD~_1 file is opened at root dir \D1\ to set the LeafDirCache.
|
|
66 |
rem This should not be accounted for measurement purpose.
|
|
67 |
rem 3. Open the following files under \\D1\\:
|
|
68 |
rem ABCD~_8000
|
|
69 |
rem ABCD~_20
|
|
70 |
rem ABCD~_4000
|
|
71 |
rem ABCD~_1000
|
|
72 |
rem ABCD~_3000
|
|
73 |
rem ABCD~_200
|
|
74 |
rem ABCD~_6000
|
|
75 |
rem 4. Measure the time taken to open each of these files
|
|
76 |
rem @SYMTestExpectedResults 1. FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 1024 KB
|
|
77 |
rem 2. DirCache filled with 1 MB data only
|
|
78 |
rem 3. File Open Successful
|
|
79 |
rem 4. Time in ms for each file
|
|
80 |
rem Note: It is assumed that memory card is mounted on e: drive on the target board
|
|
81 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
82 |
|
|
83 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 1
|
|
84 |
|
|
85 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1 -n 1 -m 0
|
|
86 |
|
|
87 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_8000 -n 1 -m 0
|
|
88 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_20 -n 1 -m 0
|
|
89 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_4000 -n 1 -m 0
|
|
90 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1000 -n 1 -m 0
|
|
91 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_3000 -n 1 -m 0
|
|
92 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_200 -n 1 -m 0
|
|
93 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_6000 -n 1 -m 0
|
|
94 |
|
|
95 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
96 |
rem @SYMTestCaseID PBASE-FAT-PERF-1371
|
|
97 |
rem @SYMTestType PT
|
|
98 |
rem @SYMPREQ PREQ1885
|
|
99 |
rem @SYMTestCaseDesc To check the directory cache performance by creating a file when 1.7MB data is used with 1MB DirCache
|
|
100 |
rem (i.e Partially Cached – 59% of data cached)
|
|
101 |
rem @SYMTestActions 0. Make sure the Test pre-settings
|
|
102 |
rem 1. Set FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 1024 KB in ESTART.TXT
|
|
103 |
rem 2. Try to fill DirCache with 1.7MB data
|
|
104 |
rem Note: Before the next step, ABCD~_1 file is opened at root dir \D1\ to set the LeafDirCache.
|
|
105 |
rem This should not be accounted for measurement purpose.
|
|
106 |
rem 3. Create FILE_2.TXT in \\D1\\
|
|
107 |
rem 4. Measure the time taken to create a file
|
|
108 |
rem @SYMTestExpectedResults 1. FAT_MinDirCacheSize = 128 KB and FAT_MaxDirCacheSize = 1024 KB
|
|
109 |
rem 2. DirCache filled with 1 MB data only
|
|
110 |
rem 3. Files Creation Successful
|
|
111 |
rem 4. Time in ms
|
|
112 |
rem Note: It is assumed that memory card is mounted on e: drive on the target board
|
|
113 |
rem -------------------------------------------------------------------------------------------------------------------
|
|
114 |
|
|
115 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_ -n 8000 -m 1
|
|
116 |
|
|
117 |
t_fat_perf e -c Open -p D1 -b ABCD1ABCD2ABCD3ABCD4ABCD5ABCD6ABCD7ABCD8ABCD9ABCD1ABCD2ABCD3ABCD4ABCD_1 -n 1 -m 0
|
|
118 |
t_fat_perf e -c Create -p D1 -b FILE_2 -n 1 -m 0
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
rem ---Cleanup------------------------------------------------------------------------------------
|
|
123 |
rem ---Do not consider this for performance measurement
|
|
124 |
|
|
125 |
t_fat_perf e -c Delete -p D1 -b FILE_2 -n 1 -m 0
|