-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
RT_read_write_block_tests.log
238 lines (238 loc) · 7.74 KB
/
RT_read_write_block_tests.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
Cog0 INIT $0000_0000 $0000_0000 load
Cog0 INIT $0000_0EC0 $0000_BA80 jump
Cog0 blocksUsed = 0, blocksFree = 3_968, fileCount = 0
Cog0
Cog0 All Files:
Cog0
Cog0 * Environment: Chip S/N and Driver Version
Cog0 CHIP Serial Number: $E461_2D03-$D35B_1A2A
Cog0 Driver:
Cog0 * init VAR
Cog0
Cog0 * Test #1: Open File for write
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #2: Write Records
Cog0 Sub-Test Results: count=10, Pass: 10, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #3: ensure no errors on Record writes
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 File: [rwblocks.bin] pending commit
Cog0 # 1 Blocks in chain:
Cog0 1: [$0000] HEAD/last, thisID=0, dataOfs=$0000, endPtr=$03F8, lifeCycle [erased], sig=[$3F80_00F4] MODIFIED
Cog0
Cog0 * Test #4: Close written file
Cog0 * wr_block() block_address = $0506, block_id = 0, NextID_EndPtr = $03F8
Cog0 - program_block() block_address = $0506
Cog0 - activate_block() block_address = $0506
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #5: Ensure expected file system changes
Cog0 * post file write
Cog0 # FileSystem: 1, 3_967, 1
Cog0 # files: 1
Cog0 # blocks used: 1
Cog0 -> pass
Cog0
Cog0 * Test #6: Ensure expected file stats
Cog0 File: [rwblocks.bin]
Cog0 # 1 Blocks in file:
Cog0 1: [$0506] HEAD/last, thisID=0, dataOfs=$0000, endPtr=$03F8, lifeCycle [ACTIVE-3], sig=[$3F80_007C]
Cog0 # blocks: 1
Cog0 # bytes used: 880
Cog0 -> pass
Cog0
Cog0 * Test #7: Ensure expected unused bytes stats
Cog0 file_size_unused(): 3_076
Cog0 -> pass
Cog0
Cog0 * Test #8: Ensure no error on size unused call
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #9: Open File for read
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #10: read expected RECORDs
Cog0 Sub-Test Results: count=10, Pass: 10, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #11: ensure no errors on reads
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #12: BAD: read one more Record than written
Cog0 Sub-Test Results: count=1, Pass: 1, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #13: Close read file
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 All Files:
Cog0 rwblocks.bin, byteCount = 880, blockID = 1, BlocksUsed = 1, @Buff={binary data}
Cog0
Cog0 * Test #14: Open File for write
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #15: Write Records
Cog0 * wr_block() block_address = $0F5C, block_id = 1, NextID_EndPtr = $0002
Cog0 - program_block() block_address = $0F5C
Cog0 Sub-Test Results: count=45, Pass: 45, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #16: ensure no errors on Record writes
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 File: [rw2blocks.bin] pending commit
Cog0 # 2 Blocks in chain:
Cog0 1: [$0F5C] HEAD/more, thisID=1, dataOfs=0, nextId=2, lifeCycle [erased], sig=[$0020_01FD]
Cog0 2: [$0000] BODY/last, thisID=2, endPtr=$0008, lifeCycle [erased], sig=[$0080_02F6] MODIFIED
Cog0
Cog0 * Test #17: Close written file
Cog0 * wr_block() block_address = $00E8, block_id = 2, NextID_EndPtr = $0008
Cog0 - program_block() block_address = $00E8
Cog0 - activate_block() block_address = $00E8
Cog0 - activate_block() block_address = $0F5C
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #18: Ensure expected file system changes
Cog0 * post file write
Cog0 # FileSystem: 3, 3_965, 2
Cog0 # files: 2
Cog0 # blocks used: 3
Cog0 -> pass
Cog0
Cog0 * Test #19: Ensure expected file stats
Cog0 File: [rw2blocks.bin]
Cog0 # 2 Blocks in file:
Cog0 1: [$0F5C] HEAD/more, thisID=1, dataOfs=0, nextId=2, lifeCycle [ACTIVE-3], sig=[$0020_017D]
Cog0 2: [$00E8] BODY/last, thisID=2, endPtr=$0008, lifeCycle [ACTIVE-3], sig=[$0080_027E]
Cog0 # blocks: 2
Cog0 # bytes used: 3_960
Cog0 -> pass
Cog0
Cog0 * Test #20: Ensure expected unused bytes stats
Cog0 file_size_unused(): 4_084
Cog0 -> pass
Cog0
Cog0 * Test #21: Ensure no error on size unused call
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #22: Open File for read
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #23: read expected RECORDs
Cog0 Sub-Test Results: count=45, Pass: 45, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #24: ensure no errors on reads
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #25: BAD: read one more Record than written
Cog0 Sub-Test Results: count=1, Pass: 1, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #26: Close read file
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 All Files:
Cog0 rwblocks.bin, byteCount = 880, blockID = 1, BlocksUsed = 1, @Buff={binary data}
Cog0 rw2blocks.bin, byteCount = 3_960, blockID = 2, BlocksUsed = 2, @Buff={binary data}
Cog0
Cog0 * Test #27: Open File for write
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #28: Write Records
Cog0 * wr_block() block_address = $0944, block_id = 3, NextID_EndPtr = $0004
Cog0 - program_block() block_address = $0944
Cog0 * wr_block() block_address = $088C, block_id = 4, NextID_EndPtr = $0005
Cog0 - program_block() block_address = $088C
Cog0 - activate_block() block_address = $088C
Cog0 Sub-Test Results: count=92, Pass: 92, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #29: ensure no errors on Record writes
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 File: [rw3blocks.bin] pending commit
Cog0 # 3 Blocks in chain:
Cog0 1: [$0944] HEAD/more, thisID=3, dataOfs=0, nextId=4, lifeCycle [erased], sig=[$0040_03FD]
Cog0 2: [$088C] BODY/more, thisID=4, nextId=5, lifeCycle [ACTIVE-3], sig=[$0050_047F]
Cog0 3: [$0000] BODY/last, thisID=5, endPtr=$0038, lifeCycle [erased], sig=[$0380_05F6] MODIFIED
Cog0
Cog0 * Test #30: Close written file
Cog0 * wr_block() block_address = $0405, block_id = 5, NextID_EndPtr = $0038
Cog0 - program_block() block_address = $0405
Cog0 - activate_block() block_address = $0405
Cog0 - activate_block() block_address = $0944
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #31: Ensure expected file system changes
Cog0 * post file write
Cog0 # FileSystem: 6, 3_962, 3
Cog0 # files: 3
Cog0 # blocks used: 6
Cog0 -> pass
Cog0
Cog0 * Test #32: Ensure expected file stats
Cog0 File: [rw3blocks.bin]
Cog0 # 3 Blocks in file:
Cog0 1: [$0944] HEAD/more, thisID=3, dataOfs=0, nextId=4, lifeCycle [ACTIVE-3], sig=[$0040_037D]
Cog0 2: [$088C] BODY/more, thisID=4, nextId=5, lifeCycle [ACTIVE-3], sig=[$0050_047F]
Cog0 3: [$0405] BODY/last, thisID=5, endPtr=$0038, lifeCycle [ACTIVE-3], sig=[$0380_057E]
Cog0 # blocks: 3
Cog0 # bytes used: 8_096
Cog0 -> pass
Cog0
Cog0 * Test #33: Ensure expected unused bytes stats
Cog0 file_size_unused(): 4_036
Cog0 -> pass
Cog0
Cog0 * Test #34: Ensure no error on size unused call
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #35: Open File for read
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #36: read expected RECORDs
Cog0 Sub-Test Results: count=92, Pass: 92, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #37: ensure no errors on reads
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 * Test #38: BAD: read one more Record than written
Cog0 Sub-Test Results: count=1, Pass: 1, Fail: 0
Cog0 -> pass
Cog0
Cog0 * Test #39: Close read file
Cog0 ECode: SUCCESS: No error
Cog0 -> pass
Cog0
Cog0 All Files:
Cog0 rwblocks.bin, byteCount = 880, blockID = 1, BlocksUsed = 1, @Buff={binary data}
Cog0 rw2blocks.bin, byteCount = 3_960, blockID = 2, BlocksUsed = 2, @Buff={binary data}
Cog0 rw3blocks.bin, byteCount = 8_096, blockID = 4, BlocksUsed = 3, @Buff={binary data}
Cog0
Cog0 * 39 Tests - Pass: 39, Fail: 0
Cog0 * Test Complete