Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | File: pr/tests/readme |
michael@0 | 2 | |
michael@0 | 3 | This document describes the test cases in the NSPR directory |
michael@0 | 4 | pr/tests. |
michael@0 | 5 | |
michael@0 | 6 | ===================================================================== |
michael@0 | 7 | There is a sub-directory here: |
michael@0 | 8 | |
michael@0 | 9 | dll |
michael@0 | 10 | sources for the .dll(.so) used by test dlltest.c |
michael@0 | 11 | |
michael@0 | 12 | ===================================================================== |
michael@0 | 13 | The individual files are described here. |
michael@0 | 14 | |
michael@0 | 15 | The script 'runtests.ksh' enumerates and runs test cases that are |
michael@0 | 16 | expected to run on all platforms. |
michael@0 | 17 | |
michael@0 | 18 | |
michael@0 | 19 | accept.c |
michael@0 | 20 | Tests PR_Accept() and related socket functions. |
michael@0 | 21 | |
michael@0 | 22 | acceptread.c |
michael@0 | 23 | Tests PR_AcceptRead() |
michael@0 | 24 | |
michael@0 | 25 | alarm.c |
michael@0 | 26 | Tests alarm functions declared in obsolete/pralarm.h. |
michael@0 | 27 | The alarm functions are obsolete, so is this test. |
michael@0 | 28 | |
michael@0 | 29 | atomic.c |
michael@0 | 30 | Tests Atomic operations defined in pratom.h |
michael@0 | 31 | |
michael@0 | 32 | attach.c |
michael@0 | 33 | Test PR_AttachThread() |
michael@0 | 34 | Note: This is an NSPR private function. |
michael@0 | 35 | |
michael@0 | 36 | bigfile.c |
michael@0 | 37 | Test 64bit file offset functions declared in prio.h |
michael@0 | 38 | |
michael@0 | 39 | bug1test.c |
michael@0 | 40 | Demonstrates a bug on NT. |
michael@0 | 41 | |
michael@0 | 42 | cleanup.c |
michael@0 | 43 | Tests PR_Cleanup() declared in prinit.h |
michael@0 | 44 | |
michael@0 | 45 | cltsrv.c |
michael@0 | 46 | Tests many socket functions. |
michael@0 | 47 | |
michael@0 | 48 | concur.c |
michael@0 | 49 | Tests threading functions and concurrent operations. |
michael@0 | 50 | |
michael@0 | 51 | cvar.c |
michael@0 | 52 | Tests condition variables. |
michael@0 | 53 | |
michael@0 | 54 | cvar2.c |
michael@0 | 55 | Tests condition variables. A rather abusive test. |
michael@0 | 56 | |
michael@0 | 57 | dbmalloc.c |
michael@0 | 58 | Obsolete. Originally for testing debug builds of NSPR's malloc. |
michael@0 | 59 | |
michael@0 | 60 | dbmalloc1.c |
michael@0 | 61 | Obsolete. Originally for testing debug builds of NSPR's malloc. |
michael@0 | 62 | |
michael@0 | 63 | dceemu.c |
michael@0 | 64 | Tests special functions for DCE emulation. |
michael@0 | 65 | |
michael@0 | 66 | depend.c |
michael@0 | 67 | Obsoltet. Tests early spec for library dependency. |
michael@0 | 68 | |
michael@0 | 69 | dlltest.c |
michael@0 | 70 | Tests dynamic library functions. Used with dll/my.c |
michael@0 | 71 | |
michael@0 | 72 | dtoa.c |
michael@0 | 73 | Tests conversions of double to string. |
michael@0 | 74 | |
michael@0 | 75 | exit.c |
michael@0 | 76 | Tests PR_ProcessExit() declared in prinit.h |
michael@0 | 77 | |
michael@0 | 78 | fileio.c |
michael@0 | 79 | Tests NSPR semaphores a bit of file i/o and threading |
michael@0 | 80 | functions. |
michael@0 | 81 | |
michael@0 | 82 | foreign.c |
michael@0 | 83 | Test auto-attach of a thread created by something other than |
michael@0 | 84 | NSPR. |
michael@0 | 85 | |
michael@0 | 86 | forktest.c |
michael@0 | 87 | Limited use. Tests unix fork() and related functions. |
michael@0 | 88 | |
michael@0 | 89 | fsync.c |
michael@0 | 90 | Tests use of PR_Sync() declared in prio.h |
michael@0 | 91 | |
michael@0 | 92 | getproto.c |
michael@0 | 93 | Tests socket functions PR_GetProtoByName(), etc. |
michael@0 | 94 | |
michael@0 | 95 | i2l.c |
michael@0 | 96 | Tests LongLong functions for converting 32bit integer to 64bit |
michael@0 | 97 | integer. |
michael@0 | 98 | |
michael@0 | 99 | initclk.c |
michael@0 | 100 | Tests timing on minimal use of condition variable |
michael@0 | 101 | |
michael@0 | 102 | inrval.c |
michael@0 | 103 | Tests interval timing functions. |
michael@0 | 104 | |
michael@0 | 105 | instrumt.c |
michael@0 | 106 | Tests instrumentation functions. prcountr.h prtrace.h |
michael@0 | 107 | |
michael@0 | 108 | intrupt.c |
michael@0 | 109 | Tests PR_Interrupt() |
michael@0 | 110 | |
michael@0 | 111 | ioconthr.c |
michael@0 | 112 | Tests i/o continuation mechanism in pthreads. |
michael@0 | 113 | |
michael@0 | 114 | io_timeout.c |
michael@0 | 115 | Test socket i/o timeouts. |
michael@0 | 116 | |
michael@0 | 117 | io_timeoutk.c |
michael@0 | 118 | Obsolete. Subsumed in io_timeout.c |
michael@0 | 119 | |
michael@0 | 120 | io_timeoutu.c |
michael@0 | 121 | Obsolete. Subsumed in io_timeout.c |
michael@0 | 122 | |
michael@0 | 123 | ipv6.c |
michael@0 | 124 | Tests IPv6. IPv6 is not used by NSPR clients. |
michael@0 | 125 | |
michael@0 | 126 | join.c |
michael@0 | 127 | Tests PR_JoinThread() |
michael@0 | 128 | |
michael@0 | 129 | joinkk.c |
michael@0 | 130 | Tests PR_JoinThread() |
michael@0 | 131 | |
michael@0 | 132 | joinku.c |
michael@0 | 133 | Tests PR_JoinThread() |
michael@0 | 134 | |
michael@0 | 135 | joinuk.c |
michael@0 | 136 | Tests PR_JoinThread() |
michael@0 | 137 | |
michael@0 | 138 | joinuu.c |
michael@0 | 139 | Tests PR_JoinThread() |
michael@0 | 140 | |
michael@0 | 141 | layer.c |
michael@0 | 142 | Tests layered I/O. |
michael@0 | 143 | |
michael@0 | 144 | lazyinit.c |
michael@0 | 145 | Tests implicit initialization. |
michael@0 | 146 | |
michael@0 | 147 | lltest.c |
michael@0 | 148 | Tests LongLong (64bit integer) arithmentic and conversions. |
michael@0 | 149 | |
michael@0 | 150 | lock.c |
michael@0 | 151 | Tests PR_Lock() in heavily threaded environment. |
michael@0 | 152 | |
michael@0 | 153 | lockfile.c |
michael@0 | 154 | Test PR_Lockfile(). |
michael@0 | 155 | |
michael@0 | 156 | logger.c |
michael@0 | 157 | Tests PR_LOG() |
michael@0 | 158 | |
michael@0 | 159 | makefile |
michael@0 | 160 | The makefile that builds all the tests |
michael@0 | 161 | |
michael@0 | 162 | many_cv.c |
michael@0 | 163 | Tests aquiring a large number of condition variables. |
michael@0 | 164 | |
michael@0 | 165 | multiwait.c |
michael@0 | 166 | ??? |
michael@0 | 167 | |
michael@0 | 168 | nbconn.c |
michael@0 | 169 | Test non-blocking connect. |
michael@0 | 170 | |
michael@0 | 171 | nblayer.c |
michael@0 | 172 | Tests NSPR's layered I/O capability. |
michael@0 | 173 | |
michael@0 | 174 | nonblock.c |
michael@0 | 175 | Tests operations on non-blocking socket. |
michael@0 | 176 | |
michael@0 | 177 | op_2long.c |
michael@0 | 178 | Tests PR_Open() where filename is too long. |
michael@0 | 179 | |
michael@0 | 180 | op_filnf.c |
michael@0 | 181 | Tests PR_Open() where filename is NotFound. |
michael@0 | 182 | |
michael@0 | 183 | op_filok.c |
michael@0 | 184 | Tests PR_Open() where filename is accessable. |
michael@0 | 185 | |
michael@0 | 186 | op_noacc.c |
michael@0 | 187 | Tests PR_Open() where file permissions are wrong. |
michael@0 | 188 | Limited use. Windows has no concept of Unix style file permissions. |
michael@0 | 189 | |
michael@0 | 190 | op_nofil.c |
michael@0 | 191 | Tests PR_Open() where filename does not exist. |
michael@0 | 192 | |
michael@0 | 193 | parent.c |
michael@0 | 194 | Test parent/child process capability |
michael@0 | 195 | |
michael@0 | 196 | perf.c |
michael@0 | 197 | Tests and measures context switch times for various thread |
michael@0 | 198 | syncronization functions. |
michael@0 | 199 | |
michael@0 | 200 | pipeping.c |
michael@0 | 201 | Tests inter-process pipes. Run with pipepong.c |
michael@0 | 202 | |
michael@0 | 203 | pipepong.c |
michael@0 | 204 | Tests inter-process pipes. Run with pipeping.c |
michael@0 | 205 | |
michael@0 | 206 | pipeself.c |
michael@0 | 207 | Tests inter-thread pipes. |
michael@0 | 208 | |
michael@0 | 209 | pollable.c |
michael@0 | 210 | Tests pollable events. prio.h |
michael@0 | 211 | |
michael@0 | 212 | poll_er.c |
michael@0 | 213 | Tests PR_Poll() where an error is expected. |
michael@0 | 214 | |
michael@0 | 215 | poll_nm.c |
michael@0 | 216 | Tests PR_Poll() where normal operation is expected. |
michael@0 | 217 | |
michael@0 | 218 | poll_to.c |
michael@0 | 219 | Tests PR_Poll() where timeout is expected. |
michael@0 | 220 | |
michael@0 | 221 | prftest.c |
michael@0 | 222 | Tests printf-like formatting. |
michael@0 | 223 | |
michael@0 | 224 | prftest1.c |
michael@0 | 225 | Obsolete. Subsumed in prftest.c |
michael@0 | 226 | |
michael@0 | 227 | prftest2.c |
michael@0 | 228 | Obsolete. Subsumed in prftest.c |
michael@0 | 229 | |
michael@0 | 230 | priotest.c |
michael@0 | 231 | Limited use. Tests NSPR thread dispatching priority. |
michael@0 | 232 | |
michael@0 | 233 | provider.c |
michael@0 | 234 | |
michael@0 | 235 | prpoll.c |
michael@0 | 236 | Tests PR_Poll(). |
michael@0 | 237 | |
michael@0 | 238 | prselect.c |
michael@0 | 239 | Obsolete. PR_Select() is obsolete. |
michael@0 | 240 | |
michael@0 | 241 | prttools.h |
michael@0 | 242 | Unused file. |
michael@0 | 243 | |
michael@0 | 244 | ranfile.c |
michael@0 | 245 | Tests random file access. |
michael@0 | 246 | |
michael@0 | 247 | readme |
michael@0 | 248 | This file. |
michael@0 | 249 | |
michael@0 | 250 | runtests.ksh |
michael@0 | 251 | A korn shell script that runs a set of tests that should run |
michael@0 | 252 | on any of the NSPR supported platforms. |
michael@0 | 253 | |
michael@0 | 254 | runtests.pl |
michael@0 | 255 | A perl script to run the test cases. This srcipt runs tests |
michael@0 | 256 | common to all platforms and runs tests applicable to specific |
michael@0 | 257 | platforms. Uses file runtests.txt to control execution. |
michael@0 | 258 | |
michael@0 | 259 | runtests.txt |
michael@0 | 260 | Control file for perl script: runtests.pl |
michael@0 | 261 | |
michael@0 | 262 | rwlocktest.c |
michael@0 | 263 | Tests Reader/Writer lock |
michael@0 | 264 | |
michael@0 | 265 | selct_er.c |
michael@0 | 266 | Obsolete. PR_Select() is obsolete. |
michael@0 | 267 | |
michael@0 | 268 | selct_nm.c |
michael@0 | 269 | Obsolete. PR_Select() is obsolete. |
michael@0 | 270 | |
michael@0 | 271 | selct_to.c |
michael@0 | 272 | Obsolete. PR_Select() is obsolete. |
michael@0 | 273 | |
michael@0 | 274 | select2.c |
michael@0 | 275 | Obsolete. PR_Select() is obsolete. |
michael@0 | 276 | |
michael@0 | 277 | sel_spd.c |
michael@0 | 278 | Obsolete. PR_Select() is obsolete. |
michael@0 | 279 | |
michael@0 | 280 | sem.c |
michael@0 | 281 | Obsolete. Semaphores are not supported. |
michael@0 | 282 | |
michael@0 | 283 | server_test.c |
michael@0 | 284 | Tests sockets by simulating a server in loopback mode. |
michael@0 | 285 | Makes its own client threads. |
michael@0 | 286 | |
michael@0 | 287 | servr_kk.c |
michael@0 | 288 | Tests client/server sockets, threads using system threads. |
michael@0 | 289 | |
michael@0 | 290 | servr_ku.c |
michael@0 | 291 | Tests client/server sockets, threads using system and user threads. |
michael@0 | 292 | |
michael@0 | 293 | servr_uk.c |
michael@0 | 294 | Tests client/server sockets, threads using system and user threads. |
michael@0 | 295 | |
michael@0 | 296 | servr_uu.c |
michael@0 | 297 | Tests client/server sockets, threads user threads. |
michael@0 | 298 | |
michael@0 | 299 | short_thread.c |
michael@0 | 300 | Tests short-running threads. Useful for testing for race conditions. |
michael@0 | 301 | |
michael@0 | 302 | sigpipe.c |
michael@0 | 303 | Tests NSPR's SIGPIPE handler. Unix only. |
michael@0 | 304 | |
michael@0 | 305 | sleep.c |
michael@0 | 306 | Limited use. Tests sleep capability of platform. |
michael@0 | 307 | |
michael@0 | 308 | socket.c |
michael@0 | 309 | Tests many socket functions. |
michael@0 | 310 | |
michael@0 | 311 | sockopt.c |
michael@0 | 312 | Tests setting and getting socket options. |
michael@0 | 313 | |
michael@0 | 314 | sprintf.c |
michael@0 | 315 | Tests sprintf. |
michael@0 | 316 | |
michael@0 | 317 | sproc_ch.c |
michael@0 | 318 | Obsolete. Tests IRIX sproc-based threads. |
michael@0 | 319 | |
michael@0 | 320 | sproc_p.c |
michael@0 | 321 | Obsolete. Tests IRIX sproc-based threads. |
michael@0 | 322 | |
michael@0 | 323 | stack.c |
michael@0 | 324 | Test atomic stack operations. |
michael@0 | 325 | |
michael@0 | 326 | stat.c |
michael@0 | 327 | Tests performance of getfileinfo() vs. stat() |
michael@0 | 328 | |
michael@0 | 329 | stdio.c |
michael@0 | 330 | Tests NSPR's handling of stdin, stdout, stderr. |
michael@0 | 331 | |
michael@0 | 332 | strod.c |
michael@0 | 333 | Tests formatting of double precision floating point. |
michael@0 | 334 | |
michael@0 | 335 | suspend.c |
michael@0 | 336 | Private interfaces PR_SuspendAll(), PR_ResumeAll(), etc. |
michael@0 | 337 | |
michael@0 | 338 | switch.c |
michael@0 | 339 | Tests thread switching |
michael@0 | 340 | |
michael@0 | 341 | system.c |
michael@0 | 342 | Tests PR_GetSystemInfo() |
michael@0 | 343 | |
michael@0 | 344 | testbit.c |
michael@0 | 345 | Tests bit arrays. |
michael@0 | 346 | |
michael@0 | 347 | testfile.c |
michael@0 | 348 | Tests many file I/O functions. |
michael@0 | 349 | |
michael@0 | 350 | threads.c |
michael@0 | 351 | Tests thread caching. |
michael@0 | 352 | |
michael@0 | 353 | thruput.c |
michael@0 | 354 | Tests socket thruput. Must be run by hand as client/server. |
michael@0 | 355 | Does not self terminate. |
michael@0 | 356 | |
michael@0 | 357 | time.c |
michael@0 | 358 | Incomplete. Limited use. |
michael@0 | 359 | |
michael@0 | 360 | timemac.c |
michael@0 | 361 | Test time and date functions. Originally for Mac. |
michael@0 | 362 | |
michael@0 | 363 | timetest.c |
michael@0 | 364 | Tests time conversion over a wide range of dates. |
michael@0 | 365 | |
michael@0 | 366 | tmoacc.c |
michael@0 | 367 | Server to tmocon.c and writev.c |
michael@0 | 368 | Do not run it by itself. |
michael@0 | 369 | |
michael@0 | 370 | tmocon.c |
michael@0 | 371 | Client thread to tmoacc.c |
michael@0 | 372 | |
michael@0 | 373 | tpd.c |
michael@0 | 374 | Tests thread private data. |
michael@0 | 375 | |
michael@0 | 376 | udpsrv.c |
michael@0 | 377 | Tests UDP socket functions. |
michael@0 | 378 | |
michael@0 | 379 | ut_ttools.h |
michael@0 | 380 | unused file. |
michael@0 | 381 | |
michael@0 | 382 | version.c |
michael@0 | 383 | Extract and print library version data. |
michael@0 | 384 | |
michael@0 | 385 | vercheck.c |
michael@0 | 386 | Test PR_VersionCheck(). |
michael@0 | 387 | |
michael@0 | 388 | writev.c |
michael@0 | 389 | Tests gather-write on a socket. Requires tmoacc.c |
michael@0 | 390 | |
michael@0 | 391 | xnotify.c |
michael@0 | 392 | Tests cached monitors. |
michael@0 | 393 | |
michael@0 | 394 | yield.c |
michael@0 | 395 | Limited use |
michael@0 | 396 | |
michael@0 | 397 | y2k.c |
michael@0 | 398 | Test to verify NSPR's date functions as Y2K compliant. |
michael@0 | 399 | |
michael@0 | 400 | dll\Makefile |
michael@0 | 401 | makefile for mygetval.c, mysetval.c |
michael@0 | 402 | |
michael@0 | 403 | dll\mygetval.c |
michael@0 | 404 | Dynamic library test. See also dlltest.c |
michael@0 | 405 | |
michael@0 | 406 | dll\mysetval.c |
michael@0 | 407 | Dynamic library test. See also dlltest.c |