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