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