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