OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [tests/] [psxtests/] [psxreaddir/] [psxreaddir.scn] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
*** 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                          17        0    268   0x010c
64
b                          18      268    268   0x010c
65
c                          19      536    268   0x010c
66
d                          20      804    268   0x010c
67
e                          21     1072    268   0x010c
68
f                          22     1340    268   0x010c
69
g                          23     1608    268   0x010c
70
h                          24     1876    268   0x010c
71
i                          25     2144    268   0x010c
72
j                          26     2412    268   0x010c
73
k                          27     2680    268   0x010c
74
l                          28     2948    268   0x010c
75
m                          29     3216    268   0x010c
76
n                          30     3484    268   0x010c
77
o                          31     3752    268   0x010c
78
p                          32     4020    268   0x010c
79
q                          33     4288    268   0x010c
80
r                          34     4556    268   0x010c
81
s                          35     4824    268   0x010c
82
t                          36     5092    268   0x010c
83
u                          37     5360    268   0x010c
84
v                          38     5628    268   0x010c
85
w                          39     5896    268   0x010c
86
x                          40     6164    268   0x010c
87
y                          41     6432    268   0x010c
88
z                          42     6700    268   0x010c
89
aa                         43     6968    268   0x010c
90
ab                         44     7236    268   0x010c
91
ac                         45     7504    268   0x010c
92
ad                         46     7772    268   0x010c
93
ae                         47     8040    268   0x010c
94
af                         48     8308    268   0x010c
95
ag                         49     8576    268   0x010c
96
ah                         50     8844    268   0x010c
97
ai                         51     9112    268   0x010c
98
aj                         52     9380    268   0x010c
99
ak                         53     9648    268   0x010c
100
al                         54     9916    268   0x010c
101
am                         55    10184    268   0x010c
102
an                         56    10452    268   0x010c
103
ao                         57    10720    268   0x010c
104
ap                         58    10988    268   0x010c
105
aq                         59    11256    268   0x010c
106
ar                         60    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 0x1208
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                         2        0    268   0x010c
133
a                           5      268    268   0x010c
134
b                           6      536    268   0x010c
135
c                           7      804    268   0x010c
136
d                           8     1072    268   0x010c
137
e                           9     1340    268   0x010c
138
f                          10     1608    268   0x010c
139
many                       16     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                          11        0    268   0x010c
147
z                          12      268    268   0x010c
148
x                          13      536    268   0x010c
149
Opening directory /c/y
150
name               inode   offset   reclen  type
151
a3333                      14        0    268   0x010c
152
j123                       15      268    268   0x010c
153
LSEEK to the start of the open directory
154
name               inode   offset   reclen  type
155
dev                         2        0    268   0x010c
156
a                           5      268    268   0x010c
157
b                           6      536    268   0x010c
158
c                           7      804    268   0x010c
159
d                           8     1072    268   0x010c
160
e                           9     1340    268   0x010c
161
f                          10     1608    268   0x010c
162
many                       16     1876    268   0x010c
163
Rewinding directory
164
name               inode   offset   reclen  type
165
dev                         2        0    268   0x010c
166
a                           5      268    268   0x010c
167
b                           6      536    268   0x010c
168
c                           7      804    268   0x010c
169
d                           8     1072    268   0x010c
170
e                           9     1340    268   0x010c
171
f                          10     1608    268   0x010c
172
many                       16     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
Validate readdir across mount point
222
name               inode   offset   reclen  type
223
should_be_hidden           65        0    268   0x010c
224
Attempting to mount IMFS file system at /imfs
225
create /imfs/testdir and /imfs/testdir/testsubdir
226
name               inode   offset   reclen  type
227
testdir                     2        0    268   0x010c
228
name               inode   offset   reclen  type
229
testdir                     2        0    268   0x010c
230
name               inode   offset   reclen  type
231
testdir                     2        0    268   0x010c
232
name               inode   offset   reclen  type
233
testsubdir                  3        0    268   0x010c
234
name               inode   offset   reclen  type
235
testdir                     2        0    268   0x010c
236
*** END OF READDIR TEST ***

powered by: WebSVN 2.1.0

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