3 This document describes the test cases in the NSPR directory
6 =====================================================================
7 There is a sub-directory here:
10 sources for the .dll(.so) used by test dlltest.c
12 =====================================================================
13 The individual files are described here.
15 The script 'runtests.ksh' enumerates and runs test cases that are
16 expected to run on all platforms.
20 Tests PR_Accept() and related socket functions.
26 Tests alarm functions declared in obsolete/pralarm.h.
27 The alarm functions are obsolete, so is this test.
30 Tests Atomic operations defined in pratom.h
33 Test PR_AttachThread()
34 Note: This is an NSPR private function.
37 Test 64bit file offset functions declared in prio.h
40 Demonstrates a bug on NT.
43 Tests PR_Cleanup() declared in prinit.h
46 Tests many socket functions.
49 Tests threading functions and concurrent operations.
52 Tests condition variables.
55 Tests condition variables. A rather abusive test.
58 Obsolete. Originally for testing debug builds of NSPR's malloc.
61 Obsolete. Originally for testing debug builds of NSPR's malloc.
64 Tests special functions for DCE emulation.
67 Obsoltet. Tests early spec for library dependency.
70 Tests dynamic library fucntions. Used with dll/my.c
73 Tests conversions of double to string.
76 Tests PR_ProcessExit() declared in prinit.h
79 Tests NSPR semaphores a bit of file i/o and threading
83 Test auto-attach of a thread created by something other than
87 Limited use. Tests unix fork() and related functions.
90 Tests use of PR_Sync() declared in prio.h
93 Tests socket functions PR_GetProtoByName(), etc.
96 Tests LongLong functions for converting 32bit integer to 64bit
100 Tests timing on minimal use of condition variable
103 Tests interval timing functions.
106 Tests instrumentation functions. prcountr.h prtrace.h
112 Tests i/o continuation mechanism in pthreads.
115 Test socket i/o timeouts.
118 Obsolete. Subsumed in io_timeout.c
121 Obsolete. Subsumed in io_timeout.c
124 Tests IPv6. IPv6 is not used by NSPR clients.
127 Tests PR_JoinThread()
130 Tests PR_JoinThread()
133 Tests PR_JoinThread()
136 Tests PR_JoinThread()
139 Tests PR_JoinThread()
145 Tests implicit initialization.
148 Tests LongLong (64bit integer) arithmentic and conversions.
151 Tests PR_Lock() in heavily threaded environment.
160 The makefile that builds all the tests
163 Tests aquiring a large number of condition variables.
169 Test non-blocking connect.
172 Tests NSPR's layered I/O capability.
175 Tests operations on non-blocking socket.
178 Tests PR_Open() where filename is too long.
181 Tests PR_Open() where filename is NotFound.
184 Tests PR_Open() where filename is accessable.
187 Tests PR_Open() where file permissions are wrong.
188 Limited use. Windows has no concept of Unix style file permissions.
191 Tests PR_Open() where filename does not exist.
194 Test parent/child process capability
197 Tests and measures context switch times for various thread
198 syncronization functions.
201 Tests inter-process pipes. Run with pipepong.c
204 Tests inter-process pipes. Run with pipeping.c
207 Tests inter-thread pipes.
210 Tests pollable events. prio.h
213 Tests PR_Poll() where an error is expected.
216 Tests PR_Poll() where normal operation is expected.
219 Tests PR_Poll() where timeout is expected.
222 Tests printf-like formatting.
225 Obsolete. Subsumed in prftest.c
228 Obsolete. Subsumed in prftest.c
231 Limited use. Tests NSPR thread dispatching priority.
239 Obsolete. PR_Select() is obsolete.
245 Tests random file access.
251 A korn shell script that runs a set of tests that should run
252 on any of the NSPR supported platforms.
255 A perl script to run the test cases. This srcipt runs tests
256 common to all platforms and runs tests applicable to specific
257 platforms. Uses file runtests.txt to control execution.
260 Control file for perl script: runtests.pl
263 Tests Reader/Writer lock
266 Obsolete. PR_Select() is obsolete.
269 Obsolete. PR_Select() is obsolete.
272 Obsolete. PR_Select() is obsolete.
275 Obsolete. PR_Select() is obsolete.
278 Obsolete. PR_Select() is obsolete.
281 Obsolete. Semaphores are not supported.
284 Tests sockets by simulating a server in loopback mode.
285 Makes its own client threads.
288 Tests client/server sockets, threads using system threads.
291 Tests client/server sockets, threads using system and user threads.
294 Tests client/server sockets, threads using system and user threads.
297 Tests client/server sockets, threads user threads.
300 Tests short-running threads. Useful for testing for race conditions.
303 Tests NSPR's SIGPIPE handler. Unix only.
306 Limited use. Tests sleep capability of platform.
309 Tests many socket functions.
312 Tests setting and getting socket options.
318 Obsolete. Tests IRIX sproc-based threads.
321 Obsolete. Tests IRIX sproc-based threads.
324 Test atomic stack operations.
327 Tests performance of getfileinfo() vs. stat()
330 Tests NSPR's handling of stdin, stdout, stderr.
333 Tests formatting of double precision floating point.
336 Private interfaces PR_SuspendAll(), PR_ResumeAll(), etc.
339 Tests thread switching
342 Tests PR_GetSystemInfo()
348 Tests many file I/O functions.
351 Tests thread caching.
354 Tests socket thruput. Must be run by hand as client/server.
355 Does not self terminate.
358 Incomplete. Limited use.
361 Test time and date functions. Originally for Mac.
364 Tests time conversion over a wide range of dates.
367 Server to tmocon.c and writev.c
368 Do not run it by itself.
371 Client thread to tmoacc.c
374 Tests thread private data.
377 Tests UDP socket functions.
383 Extract and print library version data.
386 Test PR_VersionCheck().
389 Tests gather-write on a socket. Requires tmoacc.c
392 Tests cached monitors.
398 Test to verify NSPR's date functions as Y2K compliant.
401 makefile for mygetval.c, mysetval.c
404 Dynamic library test. See also dlltest.c
407 Dynamic library test. See also dlltest.c