• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#DESCRIPTION:A small subset of the syscalls
2access01 access01
3# Basic test for access(2) using F_OK, R_OK, W_OK and X_OK arguments.
4access03 access03
5# EFAULT error testing for access(2)
6alarm02 alarm02
7# Boundary Value Test for alarm(2)
8#    TEST CASES
9#      Test Case One - A call to alarm() shall not return an error if
10#       seconds is a -1.
11#       Test FAILS if a non-zero value is returned.
12#      Test Case Two - A call to alarm() shall not return an error if
13#       seconds is the maximum unsigned integer (2**63).
14#       Test FAILS if a non-zero value is returned.
15#      Test Case Three - A call to alarm() shall not return an error if
16#       seconds is the maximum unsigned integer plus 1 ((2**63)+1).
17#       Test FAILS if a non-zero value is returned.
18alarm03 alarm03
19# alarm(2) cleared by a fork
20#    TEST CASES
21# 	1.) alarm(100), fork, child's alarm(0) shall return 0;
22#	2.) alarm(100), fork, parent's alarm(0) shall return non-zero.
23brk01 brk01
24# Basic test for brk()
25#    TEST CASES
26# 	1.) brk(2) returns...
27chdir02 chdir02
28# Basic test for chdir(2)
29#    TEST CASES
30# 	1.) chdir(2) returns...
31chmod02 chmod02
32# Basic test for chmod(2)
33#    TEST CASES
34# 	1.) chmod(2) returns...
35chown01 chown01
36# Basic test for chown(2)
37#    TEST CASES
38# 	1.) chown(2) returns...
39close08 close08
40# Basic test for close(2)
41#    TEST CASES
42# 	1.) close(2) returns...
43dup01 dup01
44# Basic test for dup(2)
45#    TEST CASES
46# 	1.) dup(2) returns...(See Description)
47dup02 dup02
48#  Negative test for dup(2) with bad fd
49#    TEST CASES
50# 	1-?.) dup(2) returns -1 with errno set to EBADF...(See Description)
51dup03 dup03
52# Negative test for dup(2) (too many fds)
53dup04 dup04
54# Basic test for dup(2) of a system pipe descriptor
55dup05 dup05
56# Basic test for dup(2) of a named pipe descriptor
57execl01 execl01
58# Basic test for execl(2)
59execle01 execle01
60# Basic test for execle(2)
61execlp01 execlp01
62# Basic test for execlp(2
63execv01 execv01
64# Basic test for execv(2)
65execve01 execve01
66# Basic test for execve(2)
67execvp01 execvp01
68# Basic test for execvp(2)
69f00f f00f
70# This is a simple test for handling of the pentium f00f bug.
71# It is an example of a catistrophic test case.  If the system
72# doesn't correctly handle this test, it will likely lockup.
73fchmod01 fchmod01
74# Basic test for fchmod(2) using 0700 argument.
75fchown01 fchown01
76# Basic test for fchown(2)
77fcntl02 fcntl02
78# Basic test for fcntl(2) using F_DUPFD argument
79fcntl03 fcntl03
80# Basic test for fcntl(2) using F_GETFD argument
81fcntl04 fcntl04
82# Basic test for fcntl(2) using F_GETFL argument
83fcntl05 fcntl05
84# Basic test for fcntl(2) using F_GETLK argument
85fcntl07 fcntl07
86# Close-On-Exec of named pipe functional test
87fcntl08 fcntl08
88# Basic test for fcntl(2) using F_SETFL argument
89fcntl09 fcntl09
90# Basic test for fcntl(2) using F_SETLK argument
91fcntl10 fcntl10
92# Basic test for fcntl(2) using F_SETLKW argument
93fork01 fork01
94# Basic test for fork(2)
95#    TEST CASES
96# 	1.) fork returns without error
97# 	2.) fork returns the pid of the child
98fork04 fork04
99# Child inheritance of Environment Variables after fork()
100#    TEST CASES
101#       Test these environment variables correctly inherited by child:
102#       1. TERM
103#       2. NoTSetzWq
104#       3. TESTPROG
105fork05 fork05
106# This is a test sent in my Ulrich Drepper to test for a bug in fork() where
107# %gs is not handled correctly.  See fork05.c for a copy of Ulrich's email
108fpathconf01 fpathconf01
109# Basic test for fpathconf(2)
110fstatfs01 fstatfs01
111# Basic test for fstatfs(2)
112fsync01 fsync01
113# Basic test for fsync(2)
114getegid01 getegid01
115# Basic test for getegid(2)
116geteuid01 geteuid01
117# Basic test for geteuid(2)
118getgid01 getgid01
119# Basic test for getgid(2)
120getgroups01 getgroups01
121# Getgroups system call critical test
122#    TEST CASES
123# 	1. Check to see if getgroups(-1, gidset) fails and sets errno to EINVAL
124# 	2. Check to see if getgroups(0, gidset) does not return -1 and gidset is
125# 	not modified.
126# 	3. Check to see if getgroups(x, gigset) fails and sets errno to EINVAL,
127# 	where x is one less then what is returned by getgroups(0, gidset).
128# 	4. Check to see if getgroups() succeeds and gidset contains
129# 	group id returned from getgid().
130gethostid01 gethostid01
131# Basic test for gethostid(2)
132gethostname01 gethostname01
133# Basic test for gethostname(2)
134getpgrp01 getpgrp01
135# Basic test for getpgrp(2)
136getpid01 getpid01
137# Basic test for getpid(2)
138getppid01 getppid01
139# Basic test for getppid(2)
140getuid01 getuid01
141# Basic test for getuid(2)
142kill02 kill02
143# Sending a signal to processes with the same process group ID.
144kill09 kill09
145# Basic test for kill(2)
146link02 link02
147# Basic test for link(2)
148link03 link03
149# multi links tests
150link04 link04
151# Negative test cases for link(2)
152link05 link05
153# multi links (EMLINK) negative test
154lseek01 lseek01
155lseek02 lseek02
156lseek07 lseek07
157lseek11 lseek11
158# Negative test for lseek(2) of a pipe
159lstat02 lstat02
160# Basic test for lstat(2)
161qmm01 mmap001 -m 1
162# Basic mmap() test.
163open03 open03
164# Basic test for open(2)
165pathconf01 pathconf01
166# Basic test for pathconf(2)
167pause01 pause01
168# Basic test for pause(2)
169read01 read01
170# Basic test for read(2)
171readdir01 readdir01
172# write multiple files and try to find them with readdir
173#    TEST CASES
174# 	1.) Create n files and check that readdir() finds n files
175readlink01 readlink01
176# Basic test for readlink(2)
177rename02 rename02
178# Basic test for rename(2)
179sbrk01 sbrk01
180# Basic test for sbrk(2)
181select01 select01
182# select to a file
183#    TEST CASES
184#      1.) select(2) to a fd of regular file with no I/O and small timeout
185select02 select02
186# select of system pipe fds
187select03 select03
188select04 select04
189# select of fd of a named-pipe (FIFO)
190setgid01 setgid01
191# Basic test for setgid(2)
192setpgid01 setpgid01
193# Basic test for setpgid(2)
194setpgrp01 setpgrp01
195# Basic test for setpgrp(2)
196setregid01 setregid01
197# Basic test for setregid(2)
198setreuid01 setreuid01
199# Basic test for setreuid(2)
200setuid01 setuid01
201# Basic test for setuid(2)
202sighold02 sighold02
203# Holding all signals
204signal03 signal03
205# Boundary value and other invalid value checking of signal setup
206# and signal sending.
207sigrelse01 sigrelse01
208# Releasing held signals
209statfs01 statfs01
210# Basic test for statfs(2) mounted filesys
211statvfs01 statvfs01
212# Basic test for statvfs(2) mounted filesys
213sync01 sync01
214# Basic test for sync(2)
215time01 time01
216# Basic test for time(2)
217times01 times01
218# Basic test for times(2)
219ulimit01 ulimit01
220# Basic test for ulimit(2)
221umask01 umask01
222# Basic test for umask(2)
223uname01 uname01
224# Basic test for uname(2)
225unlink05 unlink05
226# Basic test for unlink(2)
227unlink07 unlink07
228# unlink(2) negative testcases
229unlink08 unlink08
230# unlink(2) negative testcases
231wait02 wait02
232# Basic test for wait(2)
233write01 write01
234# Basic test for write(2)
235symlink01 symlink01
236# Make a Symbolic Link to a File
237#    TEST CASES
238# 	1. Create symbolic link with abnormal object name path
239# 	2. Create symbolic link with normal object name path
240# 	3. Create symbolic link with path to an existing object file
241# 	4. Receive EEXIST error when creating an already existing symbolic link file.
242# 	5. Receive ENAMETOOLONG error when creating symbolic link which exceeds PATH_MAX in length
243symlink02 symlink02
244# Basic test for symlink(2)
245readlink01A symlink01 -T readlink01
246# Reads Value of a Symbolic Link
247#    TEST CASES
248# 	1. Read a symbolic link file which points at no object file
249# 	2. Read a symbolic link file which points at an object file
250# 	3. Receive ENAMETOOLONG error when reading symbolic link which exceeds PATH_MAX in length
251# 	4. Receive an EINVAL error when reading a file which is not a symbolic
252# link file.
253stat04 symlink01 -T stat04
254# Gets File Status Indirectly From a Symbolic Link File
255#    TEST CASES
256# 	1. Get object file status through symbolic link file
257# 	2. Receive ENOENT error when accessing non-existent object file through symbolic link file
258# 	3. Receive ELOOP error when nesting of symbolic links exceed maximum
259lstat01A symlink01 -T lstat01
260# Get file Status About a Symbolic Link File
261#    TEST CASES
262# 	1. Get symbolic link file status when pointing at no object file
263# 	2. Get symbolic link file status when pointing at an object file
264# 	3. Get object file status when argument is not a symbolic link
265# file.
266mkdir05A symlink01 -T mkdir05
267# Fail When Making a Directory File Indirectly From a Symbolic Link File
268#    TEST CASES
269# 	1. Receive EEXIST error when creating a directory through a symbolic link file
270rmdir03A symlink01 -T rmdir03
271# Fail When Removing a Directory File Indirectly From a Symbolic Link File
272#    TEST CASES
273# 	1. Receive ENOTDIR error when removing an existing directory through a symbolic link file
274chdir01A symlink01 -T chdir01
275# Changes Current Working DIrectory Location Indirectly From a Symbolic Link File
276#    TEST CASES
277# 	1. Change current working directory through a symbolic link file
278# 	2. Receive ENOENT error when accessing non-existent directory through symbolic link file
279# 	3. Receive ELOOP error when nesting of symbolic links exceed maximum
280link01 symlink01 -T link01
281# Creates a Link To a File Indirectly From a Symbolic Link File
282#    TEST CASES
283# 	1. Link an object file to a new file through symbolic link file
284# 	2. Receive ENOENT error when accessing non-existent object file through symbolic link file
285# 	3. Receive ELOOP error when nesting of symbolic links exceed maximum
286unlink01 symlink01 -T unlink01
287# Removes a Link To a File And Not Any Object File Which Maybe Pointed At
288#    TEST CASES
289# 	1. Delete a symbolic link file and not the object file which it points at
290chmod01A symlink01 -T chmod01
291# Change Object File Permissions Indirectly From a Symbolic Link File
292#    TEST CASES
293# 	1. Change file permissions of object file through a symbolic link file
294# 	2. Receive ENOENT error when accessing non-existent directory through symbolic link file
295# 	3. Receive ELOOP error when nesting of symbolic links exceed maximum
296utime01A symlink01 -T utime01
297# Set File Access And Modify Object File Times Indirectly From a Symbolic Link File
298#    TEST CASES
299# 	1. Change inode times of object file through a symbolic link file
300# 	2. Receive ENOENT error when accessing non-existent directory through symbolic link file
301# 	3. Receive ELOOP error when nesting of symbolic links exceed maximum
302rename01A symlink01 -T rename01
303# Rename a Symbolic Link File And Not Any Object File
304#    TEST CASES
305# 	1. Rename a symbolic link file which points at no object file
306# 	2. Rename a symbolic link file which points at an object file without any object file alterations.
307# 	3. Receive EXDEV when trying to rename a symbolic link file to an address outside of current file system
308open01A symlink01 -T open01
309# Create/Open a File For Reading Or Writing Indirectly From a Symbolic Link File
310#    TEST CASES
311#  	1. Create an object file through a symbolic link file
312#  	2. Open an object file through a symbolic link file
313#  	3. Receive EEXIST error when exclusively creating an object file through a symbolic link file
314#  	4. Receive ENOENT error when accessing non-existent object file through symbolic link file
315#  	5. Receive ELOOP error when nesting of symbolic links exceed maximum
316
317