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