OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [psxtests/] [psxreaddir/] [psxreaddir.scn] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
*** READDIR TEST ***
2
chdir to the root directory
3
chdir() status : 0
4
Creating a series of directories under /
5
Creating directory: a      0 0    Success
6
Creating directory: b      0 0    Success
7
Creating directory: c      0 0    Success
8
Creating directory: d      0 0    Success
9
Creating directory: e      0 0    Success
10
Creating directory: f      0 0    Success
11
Creating directory: c/y      0 0    Success
12
Creating directory: c/z      0 0    Success
13
Creating directory: c/x      0 0    Success
14
Creating directory: c/y/a3333      0 0    Success
15
Creating directory: c/y/j123      0 0    Success
16
Create a lot of files
17
Create a
18
Create b
19
Create c
20
Create d
21
Create e
22
Create f
23
Create g
24
Create h
25
Create i
26
Create j
27
Create k
28
Create l
29
Create m
30
Create n
31
Create o
32
Create p
33
Create q
34
Create r
35
Create s
36
Create t
37
Create u
38
Create v
39
Create w
40
Create x
41
Create y
42
Create z
43
Create aa
44
Create ab
45
Create ac
46
Create ad
47
Create ae
48
Create af
49
Create ag
50
Create ah
51
Create ai
52
Create aj
53
Create ak
54
Create al
55
Create am
56
Create an
57
Create ao
58
Create ap
59
Create aq
60
Create ar
61
Open /many and print the directory
62
name               inode   offset   reclen  type
63
a                           1        0    268   0x010c
64
b                           1      268    268   0x010c
65
c                           1      536    268   0x010c
66
d                           1      804    268   0x010c
67
e                           1     1072    268   0x010c
68
f                           1     1340    268   0x010c
69
g                           1     1608    268   0x010c
70
h                           1     1876    268   0x010c
71
i                           1     2144    268   0x010c
72
j                           1     2412    268   0x010c
73
k                           1     2680    268   0x010c
74
l                           1     2948    268   0x010c
75
m                           1     3216    268   0x010c
76
n                           1     3484    268   0x010c
77
o                           1     3752    268   0x010c
78
p                           1     4020    268   0x010c
79
q                           1     4288    268   0x010c
80
r                           1     4556    268   0x010c
81
s                           1     4824    268   0x010c
82
t                           1     5092    268   0x010c
83
u                           1     5360    268   0x010c
84
v                           1     5628    268   0x010c
85
w                           1     5896    268   0x010c
86
x                           1     6164    268   0x010c
87
y                           1     6432    268   0x010c
88
z                           1     6700    268   0x010c
89
aa                          1     6968    268   0x010c
90
ab                          1     7236    268   0x010c
91
ac                          1     7504    268   0x010c
92
ad                          1     7772    268   0x010c
93
ae                          1     8040    268   0x010c
94
af                          1     8308    268   0x010c
95
ag                          1     8576    268   0x010c
96
ah                          1     8844    268   0x010c
97
ai                          1     9112    268   0x010c
98
aj                          1     9380    268   0x010c
99
ak                          1     9648    268   0x010c
100
al                          1     9916    268   0x010c
101
am                          1    10184    268   0x010c
102
an                          1    10452    268   0x010c
103
ao                          1    10720    268   0x010c
104
ap                          1    10988    268   0x010c
105
aq                          1    11256    268   0x010c
106
ar                          1    11524    268   0x010c
107
open /b/myfile
108
scandir a file status: -1
109
Open /b/new_file
110
fcntl F_SETFD should return 0
111
fcntl F_SETFD should return 1
112
fcntl F_DUPFD should return 0 -- skip until implemented
113
fcntl F_GETFL returns current flags
114
fcntl F_GETFL returned 0x200
115
fcntl F_SETFL to add O_APPEND and O_NONBLOCK
116
fcntl F_GETFL return current flags to see changes
117
fcntl F_GETFL returned 0x208
118
fcntl F_GETLK should return -1
119
fcntl F_SETLK should return -1
120
fcntl F_SETLKW should return -1
121
fcntl F_SETOWN should return -1
122
fcntl F_GETOWN should return -1
123
fcntl invalid argument should return -1
124
Status -1
125
opendir and readdir /b/myfile
126
opendir and readdir
127
chdir to /b/myfile
128
Performing stat of directory /
129
status for stat : 0, size of directory: 2144
130
Open and print directory /
131
name               inode   offset   reclen  type
132
dev                         1        0    268   0x010c
133
a                           1      268    268   0x010c
134
b                           1      536    268   0x010c
135
c                           1      804    268   0x010c
136
d                           1     1072    268   0x010c
137
e                           1     1340    268   0x010c
138
f                           1     1608    268   0x010c
139
many                        1     1876    268   0x010c
140
mkdir /d/my_dir
141
Open /d/my_dir
142
remove /d/my_dir.
143
close /d/my_dir.
144
Opening directory /c
145
name               inode   offset   reclen  type
146
y                           1        0    268   0x010c
147
z                           1      268    268   0x010c
148
x                           1      536    268   0x010c
149
Opening directory /c/y
150
name               inode   offset   reclen  type
151
a3333                       1        0    268   0x010c
152
j123                        1      268    268   0x010c
153
LSEEK to the start of the open directory
154
name               inode   offset   reclen  type
155
dev                         1        0    268   0x010c
156
a                           1      268    268   0x010c
157
b                           1      536    268   0x010c
158
c                           1      804    268   0x010c
159
d                           1     1072    268   0x010c
160
e                           1     1340    268   0x010c
161
f                           1     1608    268   0x010c
162
many                        1     1876    268   0x010c
163
Rewinding directory
164
name               inode   offset   reclen  type
165
dev                         1        0    268   0x010c
166
a                           1      268    268   0x010c
167
b                           1      536    268   0x010c
168
c                           1      804    268   0x010c
169
d                           1     1072    268   0x010c
170
e                           1     1340    268   0x010c
171
f                           1     1608    268   0x010c
172
many                        1     1876    268   0x010c
173
Send rewinddir a NULL pointer
174
Seek directory
175
telldir() should report only sizeof(struct dirent) increments
176
in position. Sizeof(struct dirent): 268
177
seeked to  0 -- currently at  0
178
seeked to 67 -- currently at  0
179
seeked to 134 -- currently at  0
180
Send seekdir a NULL pointer
181
Closing directory
182
SCANDIR TEST
183
selection rule 1
184
scanning for any entry under directory /c
185
SCANDIR SELECT1 accepts  nodename: y
186
SCANDIR SELECT1 accepts  nodename: z
187
SCANDIR SELECT1 accepts  nodename: x
188
scandir status: 3
189
Selected Node Name: y
190
Selected Node Name: z
191
Selected Node Name: x
192
selection rule 2
193
scanning for any entry under directory /c whose name = y
194
SCANDIR SELECT accepted nodename: y
195
SCANDIR SELECT rejected nodename: z
196
SCANDIR SELECT rejected nodename: x
197
scandir status: 1
198
Selected Node Name: y
199
SCANDIR with sorting
200
selection rule 1
201
scanning for any entry under directory /c
202
sort in ascending order
203
SCANDIR SELECT1 accepts  nodename: y
204
SCANDIR SELECT1 accepts  nodename: z
205
SCANDIR SELECT1 accepts  nodename: x
206
scandir status: 3
207
Selected and Sorted Node Name: x
208
Selected and Sorted Node Name: y
209
Selected and Sorted Node Name: z
210
SCANDIR with sorting
211
selection rule 1
212
scanning for any entry under directory /c
213
sort in descending order
214
SCANDIR SELECT1 accepts  nodename: y
215
SCANDIR SELECT1 accepts  nodename: z
216
SCANDIR SELECT1 accepts  nodename: x
217
scandir status: 3
218
Selected and Sorted Node Name: z
219
Selected and Sorted Node Name: y
220
Selected and Sorted Node Name: x
221
*** END OF READDIR TEST ***
222
 
223
 
224
 
225
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.