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 nice05 nice05 192 # Basic test for nice(2) 193 open03 open03 194 # Basic test for open(2) 195 pathconf01 pathconf01 196 # Basic test for pathconf(2) 197 pause01 pause01 198 # Basic test for pause(2) 199 read01 read01 200 # Basic test for read(2) 201 readdir01 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 205 readlink02 readlink02 206 # Basic test for readlink(2) 207 rename02 rename02 208 # Basic test for rename(2) 209 rmdir04 rmdir04 210 # Basic test for rmdir(2) 211 rmdir05 rmdir05 212 # rmdir(2) test for errno(s) EINVAL, EMLINK, EFAULT 213 sbrk01 sbrk01 214 # Basic test for sbrk(2) 215 select01 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 219 select02 select02 220 # select of system pipe fds 221 select03 select03 222 select04 select04 223 # select of fd of a named-pipe (FIFO) 224 setgid01 setgid01 225 # Basic test for setgid(2) 226 setpgid01 setpgid01 227 # Basic test for setpgid(2) 228 setpgrp01 setpgrp01 229 # Basic test for setpgrp(2) 230 setregid01 setregid01 231 # Basic test for setregid(2) 232 setreuid01 setreuid01 233 # Basic test for setreuid(2) 234 setuid01 setuid01 235 # Basic test for setuid(2) 236 sighold02 sighold02 237 # Holding all signals 238 signal03 signal03 239 # Boundary value and other invalid value checking of signal setup 240 # and signal sending. 241 sigrelse01 sigrelse01 242 # Releasing held signals 243 stat05 stat05 244 # Basic test for stat(2) 245 stat06 stat06 246 # Negative tests for stat(2) 247 statfs01 statfs01 248 # Basic test for statfs(2) mounted filesys 249 statvfs01 statvfs01 250 # Basic test for statvfs(2) mounted filesys 251 sync01 sync01 252 # Basic test for sync(2) 253 time01 time01 254 # Basic test for time(2) 255 times01 times01 256 # Basic test for times(2) 257 ulimit01 ulimit01 258 # Basic test for ulimit(2) 259 umask01 umask01 260 # Basic test for umask(2) 261 uname01 uname01 262 # Basic test for uname(2) 263 unlink05 unlink05 264 # Basic test for unlink(2) 265 unlink06 unlink06 266 # unlink(2) of a FIFO 267 unlink07 unlink07 268 # unlink(2) negative testcases 269 unlink08 unlink08 270 # unlink(2) negative testcases 271 wait02 wait02 272 # Basic test for wait(2) 273 write01 write01 274 # Basic test for write(2) 275 symlink01 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 283 symlink02 symlink02 284 # Basic test for symlink(2) 285 readlink01A 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. 293 stat04 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 299 lstat01A 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. 306 mkdir05A 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 310 rmdir03A 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 314 chdir01A 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 320 link01 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 326 unlink01 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 330 chmod01A 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 336 utime01A 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 342 rename01A 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 348 open01A 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