1 #DESCRIPTION:A small subset of the syscalls 2 access01 access01 3 # Basic test for access(2) using F_OK, R_OK, W_OK and X_OK arguments. 4 access03 access03 5 # EFAULT error testing for access(2) 6 alarm01 alarm01 7 # Basic test for alarm(2) 8 alarm02 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. 20 alarm03 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. 25 asyncio02 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 40 brk01 brk01 41 # Basic test for brk() 42 # TEST CASES 43 # 1.) brk(2) returns... 44 chdir02 chdir02 45 # Basic test for chdir(2) 46 # TEST CASES 47 # 1.) chdir(2) returns... 48 chmod02 chmod02 49 # Basic test for chmod(2) 50 # TEST CASES 51 # 1.) chmod(2) returns... 52 chown01 chown01 53 # Basic test for chown(2) 54 # TEST CASES 55 # 1.) chown(2) returns... 56 close08 close08 57 # Basic test for close(2) 58 # TEST CASES 59 # 1.) close(2) returns... 60 dup01 dup01 61 # Basic test for dup(2) 62 # TEST CASES 63 # 1.) dup(2) returns...(See Description) 64 dup02 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) 68 dup03 dup03 69 # Negative test for dup(2) (too many fds) 70 dup04 dup04 71 # Basic test for dup(2) of a system pipe descriptor 72 dup05 dup05 73 # Basic test for dup(2) of a named pipe descriptor 74 execl01 execl01 75 # Basic test for execl(2) 76 execle01 execle01 77 # Basic test for execle(2) 78 execlp01 execlp01 79 # Basic test for execlp(2 80 execv01 execv01 81 # Basic test for execv(2) 82 execve01 execve01 83 # Basic test for execve(2) 84 execvp01 execvp01 85 # Basic test for execvp(2) 86 f00f 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. 90 fchmod01 fchmod01 91 # Basic test for fchmod(2) using 0700 argument. 92 fchown01 fchown01 93 # Basic test for fchown(2) 94 fcntl02 fcntl02 95 # Basic test for fcntl(2) using F_DUPFD argument 96 fcntl03 fcntl03 97 # Basic test for fcntl(2) using F_GETFD argument 98 fcntl04 fcntl04 99 # Basic test for fcntl(2) using F_GETFL argument 100 fcntl05 fcntl05 101 # Basic test for fcntl(2) using F_GETLK argument 102 fcntl07 fcntl07 103 # Close-On-Exec of named pipe functional test 104 fcntl08 fcntl08 105 # Basic test for fcntl(2) using F_SETFL argument 106 fcntl09 fcntl09 107 # Basic test for fcntl(2) using F_SETLK argument 108 fcntl10 fcntl10 109 # Basic test for fcntl(2) using F_SETLKW argument 110 fork01 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 115 fork04 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 122 fork05 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 125 fpathconf01 fpathconf01 126 # Basic test for fpathconf(2) 127 fstat01 fstat01 128 # Basic test for fstat(2) 129 fstatfs01 fstatfs01 130 # Basic test for fstatfs(2) 131 fsync01 fsync01 132 # Basic test for fsync(2) 133 getegid01 getegid01 134 # Basic test for getegid(2) 135 geteuid01 geteuid01 136 # Basic test for geteuid(2) 137 getgid01 getgid01 138 # Basic test for getgid(2) 139 getgroups01 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(). 149 gethostid01 gethostid01 150 # Basic test for gethostid(2) 151 gethostname01 gethostname01 152 # Basic test for gethostname(2) 153 getpgrp01 getpgrp01 154 # Basic test for getpgrp(2) 155 getpid01 getpid01 156 # Basic test for getpid(2) 157 getppid01 getppid01 158 # Basic test for getppid(2) 159 getuid01 getuid01 160 # Basic test for getuid(2) 161 kill02 kill02 162 # Sending a signal to processes with the same process group ID. 163 kill09 kill09 164 # Basic test for kill(2) 165 link02 link02 166 # Basic test for link(2) 167 link03 link03 168 # multi links tests 169 link04 link04 170 # Negative test cases for link(2) 171 link05 link05 172 # multi links (EMLINK) negative test 173 lseek01 lseek01 174 # Basic test for lseek(2) 175 lseek02 lseek02 176 # Negative test for lseek(2) 177 lseek03 lseek03 178 # Negative test for lseek(2) whence 179 lseek04 lseek04 180 # Negative test for lseek(2) of a fifo 181 lseek05 lseek05 182 # Negative test for lseek(2) of a pipe 183 lstat02 lstat02 184 # Basic test for lstat(2) 185 mkdir01 mkdir01 186 # Basic errno test for mkdir(2) 187 mkdir08 mkdir08 188 # Basic test for mkdir(2) 189 qmm01 mmap001 -m 1 190 # Basic mmap() test. 191 open03 open03 192 # Basic test for open(2) 193 pathconf01 pathconf01 194 # Basic test for pathconf(2) 195 pause01 pause01 196 # Basic test for pause(2) 197 read01 read01 198 # Basic test for read(2) 199 readdir01 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 203 readlink02 readlink02 204 # Basic test for readlink(2) 205 rename02 rename02 206 # Basic test for rename(2) 207 rmdir04 rmdir04 208 # Basic test for rmdir(2) 209 rmdir05 rmdir05 210 # rmdir(2) test for errno(s) EINVAL, EMLINK, EFAULT 211 sbrk01 sbrk01 212 # Basic test for sbrk(2) 213 select01 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 217 select02 select02 218 # select of system pipe fds 219 select03 select03 220 select04 select04 221 # select of fd of a named-pipe (FIFO) 222 setgid01 setgid01 223 # Basic test for setgid(2) 224 setpgid01 setpgid01 225 # Basic test for setpgid(2) 226 setpgrp01 setpgrp01 227 # Basic test for setpgrp(2) 228 setregid01 setregid01 229 # Basic test for setregid(2) 230 setreuid01 setreuid01 231 # Basic test for setreuid(2) 232 setuid01 setuid01 233 # Basic test for setuid(2) 234 sighold02 sighold02 235 # Holding all signals 236 signal03 signal03 237 # Boundary value and other invalid value checking of signal setup 238 # and signal sending. 239 sigrelse01 sigrelse01 240 # Releasing held signals 241 stat05 stat05 242 # Basic test for stat(2) 243 stat06 stat06 244 # Negative tests for stat(2) 245 statfs01 statfs01 246 # Basic test for statfs(2) mounted filesys 247 statvfs01 statvfs01 248 # Basic test for statvfs(2) mounted filesys 249 sync01 sync01 250 # Basic test for sync(2) 251 time01 time01 252 # Basic test for time(2) 253 times01 times01 254 # Basic test for times(2) 255 ulimit01 ulimit01 256 # Basic test for ulimit(2) 257 umask01 umask01 258 # Basic test for umask(2) 259 uname01 uname01 260 # Basic test for uname(2) 261 unlink05 unlink05 262 # Basic test for unlink(2) 263 unlink06 unlink06 264 # unlink(2) of a FIFO 265 unlink07 unlink07 266 # unlink(2) negative testcases 267 unlink08 unlink08 268 # unlink(2) negative testcases 269 wait02 wait02 270 # Basic test for wait(2) 271 write01 write01 272 # Basic test for write(2) 273 symlink01 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 281 symlink02 symlink02 282 # Basic test for symlink(2) 283 readlink01A 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. 291 stat04 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 297 lstat01A 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. 304 mkdir05A 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 308 rmdir03A 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 312 chdir01A 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 318 link01 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 324 unlink01 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 328 chmod01A 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 334 utime01A 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 340 rename01A 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 346 open01A 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