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. 191open03 open03 192# Basic test for open(2) 193pathconf01 pathconf01 194# Basic test for pathconf(2) 195pause01 pause01 196# Basic test for pause(2) 197read01 read01 198# Basic test for read(2) 199readdir01 readdir01 200# write multiple files and try to find them with readdir 201# TEST CASES 202# 1.) Create n files and check that readdir() finds n files 203readlink02 readlink02 204# Basic test for readlink(2) 205rename02 rename02 206# Basic test for rename(2) 207rmdir04 rmdir04 208# Basic test for rmdir(2) 209rmdir05 rmdir05 210# rmdir(2) test for errno(s) EINVAL, EMLINK, EFAULT 211sbrk01 sbrk01 212# Basic test for sbrk(2) 213select01 select01 214# select to a file 215# TEST CASES 216# 1.) select(2) to a fd of regular file with no I/O and small timeout 217select02 select02 218# select of system pipe fds 219select03 select03 220select04 select04 221# select of fd of a named-pipe (FIFO) 222setgid01 setgid01 223# Basic test for setgid(2) 224setpgid01 setpgid01 225# Basic test for setpgid(2) 226setpgrp01 setpgrp01 227# Basic test for setpgrp(2) 228setregid01 setregid01 229# Basic test for setregid(2) 230setreuid01 setreuid01 231# Basic test for setreuid(2) 232setuid01 setuid01 233# Basic test for setuid(2) 234sighold02 sighold02 235# Holding all signals 236signal03 signal03 237# Boundary value and other invalid value checking of signal setup 238# and signal sending. 239sigrelse01 sigrelse01 240# Releasing held signals 241stat05 stat05 242# Basic test for stat(2) 243stat06 stat06 244# Negative tests for stat(2) 245statfs01 statfs01 246# Basic test for statfs(2) mounted filesys 247statvfs01 statvfs01 248# Basic test for statvfs(2) mounted filesys 249sync01 sync01 250# Basic test for sync(2) 251time01 time01 252# Basic test for time(2) 253times01 times01 254# Basic test for times(2) 255ulimit01 ulimit01 256# Basic test for ulimit(2) 257umask01 umask01 258# Basic test for umask(2) 259uname01 uname01 260# Basic test for uname(2) 261unlink05 unlink05 262# Basic test for unlink(2) 263unlink06 unlink06 264# unlink(2) of a FIFO 265unlink07 unlink07 266# unlink(2) negative testcases 267unlink08 unlink08 268# unlink(2) negative testcases 269wait02 wait02 270# Basic test for wait(2) 271write01 write01 272# Basic test for write(2) 273symlink01 symlink01 274# Make a Symbolic Link to a File 275# TEST CASES 276# 1. Create symbolic link with abnormal object name path 277# 2. Create symbolic link with normal object name path 278# 3. Create symbolic link with path to an existing object file 279# 4. Receive EEXIST error when creating an already existing symbolic link file. 280# 5. Receive ENAMETOOLONG error when creating symbolic link which exceeds PATH_MAX in length 281symlink02 symlink02 282# Basic test for symlink(2) 283readlink01A symlink01 -T readlink01 284# Reads Value of a Symbolic Link 285# TEST CASES 286# 1. Read a symbolic link file which points at no object file 287# 2. Read a symbolic link file which points at an object file 288# 3. Receive ENAMETOOLONG error when reading symbolic link which exceeds PATH_MAX in length 289# 4. Receive an EINVAL error when reading a file which is not a symbolic 290# link file. 291stat04 symlink01 -T stat04 292# Gets File Status Indirectly From a Symbolic Link File 293# TEST CASES 294# 1. Get object file status through symbolic link file 295# 2. Receive ENOENT error when accessing non-existent object file through symbolic link file 296# 3. Receive ELOOP error when nesting of symbolic links exceed maximum 297lstat01A symlink01 -T lstat01 298# Get file Status About a Symbolic Link File 299# TEST CASES 300# 1. Get symbolic link file status when pointing at no object file 301# 2. Get symbolic link file status when pointing at an object file 302# 3. Get object file status when argument is not a symbolic link 303# file. 304mkdir05A symlink01 -T mkdir05 305# Fail When Making a Directory File Indirectly From a Symbolic Link File 306# TEST CASES 307# 1. Receive EEXIST error when creating a directory through a symbolic link file 308rmdir03A symlink01 -T rmdir03 309# Fail When Removing a Directory File Indirectly From a Symbolic Link File 310# TEST CASES 311# 1. Receive ENOTDIR error when removing an existing directory through a symbolic link file 312chdir01A symlink01 -T chdir01 313# Changes Current Working DIrectory Location Indirectly From a Symbolic Link File 314# TEST CASES 315# 1. Change current working directory through a symbolic link file 316# 2. Receive ENOENT error when accessing non-existent directory through symbolic link file 317# 3. Receive ELOOP error when nesting of symbolic links exceed maximum 318link01 symlink01 -T link01 319# Creates a Link To a File Indirectly From a Symbolic Link File 320# TEST CASES 321# 1. Link an object file to a new file through symbolic link file 322# 2. Receive ENOENT error when accessing non-existent object file through symbolic link file 323# 3. Receive ELOOP error when nesting of symbolic links exceed maximum 324unlink01 symlink01 -T unlink01 325# Removes a Link To a File And Not Any Object File Which Maybe Pointed At 326# TEST CASES 327# 1. Delete a symbolic link file and not the object file which it points at 328chmod01A symlink01 -T chmod01 329# Change Object File Permissions Indirectly From a Symbolic Link File 330# TEST CASES 331# 1. Change file permissions of object file through a symbolic link file 332# 2. Receive ENOENT error when accessing non-existent directory through symbolic link file 333# 3. Receive ELOOP error when nesting of symbolic links exceed maximum 334utime01A symlink01 -T utime01 335# Set File Access And Modify Object File Times Indirectly From a Symbolic Link File 336# TEST CASES 337# 1. Change inode times of object file through a symbolic link file 338# 2. Receive ENOENT error when accessing non-existent directory through symbolic link file 339# 3. Receive ELOOP error when nesting of symbolic links exceed maximum 340rename01A symlink01 -T rename01 341# Rename a Symbolic Link File And Not Any Object File 342# TEST CASES 343# 1. Rename a symbolic link file which points at no object file 344# 2. Rename a symbolic link file which points at an object file without any object file alterations. 345# 3. Receive EXDEV when trying to rename a symbolic link file to an address outside of current file system 346open01A symlink01 -T open01 347# Create/Open a File For Reading Or Writing Indirectly From a Symbolic Link File 348# TEST CASES 349# 1. Create an object file through a symbolic link file 350# 2. Open an object file through a symbolic link file 351# 3. Receive EEXIST error when exclusively creating an object file through a symbolic link file 352# 4. Receive ENOENT error when accessing non-existent object file through symbolic link file 353# 5. Receive ELOOP error when nesting of symbolic links exceed maximum 354 355