pjs/nsprpub/pr/tests
wtc%netscape.com 51bd621930 Bugsplat bug #345296: added a test program that have multiple
threads accepting on the same listening socket.
1999-04-15 01:11:31 +00:00
..
dll Removed all the autoconf *.in files in mozilla/nsprpub. 1998-10-05 19:19:56 +00:00
macbuild First Checked In. 1999-01-27 04:12:38 +00:00
w16gui Removed all the autoconf *.in files in mozilla/nsprpub. 1998-10-05 19:19:56 +00:00
Makefile Bugsplat bug #345296: added a test program that have multiple 1999-04-15 01:11:31 +00:00
README.TXT Another update from the internal CVS repository /m/src. 1999-03-05 22:32:56 +00:00
accept.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
acceptread.c New test file acceptread.c. 1999-02-26 20:38:30 +00:00
alarm.c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00
atomic.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
attach.c Checked in second batch of BeOS port patches contributed by 1999-01-28 00:19:40 +00:00
bigfile.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
bug1test.c Free the lizard 1998-03-28 02:44:41 +00:00
cleanup.c Free the lizard 1998-03-28 02:44:41 +00:00
cltsrv.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
concur.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
cvar.c Free the lizard 1998-03-28 02:44:41 +00:00
cvar2.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
dbmalloc.c Free the lizard 1998-03-28 02:44:41 +00:00
dbmalloc1.c Free the lizard 1998-03-28 02:44:41 +00:00
dceemu.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
depend.c Free the lizard 1998-03-28 02:44:41 +00:00
dlltest.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
dtoa.c Added new test files. 1998-05-08 23:07:27 +00:00
errcodes.c Another update from the internal CVS repository /m/src to mozilla.org. 1999-03-02 00:58:34 +00:00
exit.c Free the lizard 1998-03-28 02:44:41 +00:00
fileio.c Free the lizard 1998-03-28 02:44:41 +00:00
foreign.c Changed /usr/tmp/ to /tmp/. BSD/OS does not have /usr/tmp/. 1999-02-01 19:55:48 +00:00
forktest.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
fsync.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
getproto.c Free the lizard 1998-03-28 02:44:41 +00:00
i2l.c Free the lizard 1998-03-28 02:44:41 +00:00
initclk.c print elapsed and expected times. 1999-02-26 18:33:19 +00:00
inrval.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
instrumt.c add coverage for functions that should be called by this test case 1999-04-13 22:58:40 +00:00
intrupt.c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00
io_timeout.c print thread scope. 1999-02-26 18:34:31 +00:00
io_timeoutk.c Free the lizard 1998-03-28 02:44:41 +00:00
io_timeoutu.c Free the lizard 1998-03-28 02:44:41 +00:00
ioconthr.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
ipv6.c Checked in second batch of BeOS port patches contributed by 1999-01-28 00:19:40 +00:00
join.c Eliminated compiler warnings. Fixed by Rick Osborne <rick@spacey.net>. 1998-04-20 19:04:42 +00:00
joinkk.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
joinku.c Free the lizard 1998-03-28 02:44:41 +00:00
joinuk.c Free the lizard 1998-03-28 02:44:41 +00:00
joinuu.c Free the lizard 1998-03-28 02:44:41 +00:00
layer.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
lazyinit.c Free the lizard 1998-03-28 02:44:41 +00:00
lltest.c Free the lizard 1998-03-28 02:44:41 +00:00
lock.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
lockfile.c Free the lizard 1998-03-28 02:44:41 +00:00
logger.c add coverage for functions that should be called by this test case 1999-04-13 22:58:40 +00:00
many_cv.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
multiacc.c Bugsplat bug #345296: added a test program that have multiple 1999-04-15 01:11:31 +00:00
multiwait.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
nbconn.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
nblayer.c Another update of the latest stuff from the internal CVS repository /m/src. 1999-03-02 22:23:14 +00:00
nonblock.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
op_2long.c changed value of TOO_LONG to 5000 1999-01-28 00:26:30 +00:00
op_filnf.c Free the lizard 1998-03-28 02:44:41 +00:00
op_filok.c Another update of the latest stuff from the internal CVS repository /m/src. 1999-03-02 22:23:14 +00:00
op_noacc.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
op_nofil.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
parent.c Run the default test program 'cvar -c 2000" if no command-line 1999-02-01 19:26:56 +00:00
perf.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
pipeping.c Minor improvements. 1999-02-12 18:41:52 +00:00
pipepong.c Minor improvements. 1999-02-12 18:41:52 +00:00
pipeself.c Completely rewrote the test. 1999-02-12 18:41:36 +00:00
poll_er.c Checked in second batch of BeOS port patches contributed by 1999-01-28 00:19:40 +00:00
poll_nm.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
poll_to.c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00
pollable.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
prftest.c Code cleanup. 1999-02-08 20:27:02 +00:00
prftest1.c Free the lizard 1998-03-28 02:44:41 +00:00
prftest2.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
priotest.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
provider.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
prpoll.c The file type PR_DESC_SOCKET_POLL is not defined by NSPR. 1999-04-05 23:24:11 +00:00
prselect.c Free the lizard 1998-03-28 02:44:41 +00:00
prttools.h Free the lizard 1998-03-28 02:44:41 +00:00
ranfile.c Reduce default values of counters. 1999-02-08 20:28:30 +00:00
runtests.ksh Another update from the internal CVS repository /m/src. 1999-03-05 22:32:56 +00:00
rwlocktest.c Another update from the internal CVS repository /m/src to mozilla.org. 1999-03-02 00:58:34 +00:00
sel_spd.c Reduce default thread count. 1999-02-09 03:29:40 +00:00
selct_er.c Checked in second batch of BeOS port patches contributed by 1999-01-28 00:19:40 +00:00
selct_nm.c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00
selct_to.c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00
select2.c fix compile error introduced with OS/2 port 1998-11-20 23:56:29 +00:00
sem.c Free the lizard 1998-03-28 02:44:41 +00:00
server_test.c Declare Test_Result as returning void. Changed AF_INET and INADDR_XXX 1999-02-11 00:43:30 +00:00
servr_kk.c Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx). 1998-11-19 22:20:31 +00:00
servr_ku.c Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx). 1998-11-19 22:20:31 +00:00
servr_uk.c Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx). 1998-11-19 22:20:31 +00:00
servr_uu.c Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx). 1998-11-19 22:20:31 +00:00
short_thread.c Added new test files. 1998-05-08 23:07:27 +00:00
sigpipe.c Free the lizard 1998-03-28 02:44:41 +00:00
sleep.c Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx). 1998-11-19 22:20:31 +00:00
socket.c Fix thread-type rotation for Win95 1999-04-09 16:38:11 +00:00
sockopt.c More mozilla/nsprpub updates, including: 1998-10-05 18:58:25 +00:00
sockping.c Minor improvements. 1999-02-12 18:41:52 +00:00
sockpong.c Minor improvements. 1999-02-12 18:41:52 +00:00
sprintf.c Free the lizard 1998-03-28 02:44:41 +00:00
sproc_ch.c Free the lizard 1998-03-28 02:44:41 +00:00
sproc_p.c Free the lizard 1998-03-28 02:44:41 +00:00
stack.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
stat.c Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx). 1998-11-19 22:20:31 +00:00
stdio.c Free the lizard 1998-03-28 02:44:41 +00:00
strod.c Landing of miscellaneous changes, including the new error code to 1999-02-26 20:41:06 +00:00
suspend.c Checked in second batch of BeOS port patches contributed by 1999-01-28 00:19:40 +00:00
switch.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
system.c Free the lizard 1998-03-28 02:44:41 +00:00
testbit.c Added new test files. 1998-05-08 23:07:27 +00:00
testfile.c Fix thread-type rotation for Win95 1999-04-09 16:38:11 +00:00
threads.c Free the lizard 1998-03-28 02:44:41 +00:00
thruput.c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00
time.c Merged NSPRPUB_19980508_BRANCH to the main trunk. The 19980508 1998-05-14 18:09:56 +00:00
timemac.c Free the lizard 1998-03-28 02:44:41 +00:00
timetest.c Another update from the internal CVS repository /m/src. 1999-03-05 22:32:56 +00:00
tmoacc.c Free the lizard 1998-03-28 02:44:41 +00:00
tmocon.c Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx). 1998-11-19 22:20:31 +00:00
tpd.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
udpsrv.c NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
ut_ttools.h Free the lizard 1998-03-28 02:44:41 +00:00
vercheck.c Another update of the latest stuff from the internal CVS repository /m/src. 1999-03-02 22:23:14 +00:00
version.c Display nspr version info. by default. 1999-02-09 03:34:09 +00:00
writev.c Free the lizard 1998-03-28 02:44:41 +00:00
xnotify.c Free the lizard 1998-03-28 02:44:41 +00:00
y2k.c Update from the internal CVS repository /m/src. Includes: first 1999-03-19 22:47:21 +00:00
yield.c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00

README.TXT

File: pr/tests/readme

This document describes the test cases in the NSPR directory
pr/tests.

=====================================================================
There are some sub-directories here:

dll
	sources for the .dll(.so) used by test dlltest.c

macbuild
	MacIntosh project files

server
	an empty directory. Does anyone remember why?

w16gui
	Sources for a modified version of the poppad application from
	Charles Petzold's book "Programming Windows 3.1". These
	sources were modified to test the library lib/ds/PLEvent.
	These files are obsolete and will not be maintained.
	
	This test was superceded by lib/tests/windows/winevent.c and
	lib/event.c and is now owned by CPD.

=====================================================================
The individual files are described here.

The script 'runtests.ksh' enumerates and runs test cases that are
expected to run on all platforms.


accept.c
	Tests PR_Accept() and related socket functions.

acceptread.c
	Tests PR_AcceptRead()

alarm.c
	Tests alarm functions declared in obsolete/pralarm.h.
	The alarm functions are obsolete, so is this test.

atomic.c
	Tests Atomic operations defined in pratom.h

attach.c
	Test PR_AttachThread()
	Note: This is an NSPR private function.

bigfile.c
	Test 64bit file offset functions declared in prio.h

bug1test.c
	Demonstrates a bug on NT.

cleanup.c
	Tests PR_Cleanup() declared in prinit.h

cltsrv.c
	Tests many socket functions.

concur.c
	Tests threading functions and concurrent operations.

cvar.c
	Tests condition variables.

cvar2.c
	Tests condition variables. A rather abusive test.

dbmalloc.c
	Obsolete. Originally for testing debug builds of NSPR's malloc.

dbmalloc1.c
	Obsolete. Originally for testing debug builds of NSPR's malloc.

dceemu.c
	Tests special functions for DCE emulation.

depend.c
	Obsoltet. Tests early spec for library dependency.

dlltest.c
	Tests dynamic library fucntions. Used with dll/my.c

dtoa.c
	Tests conversions of double to string.

exit.c
	Tests PR_ProcessExit() declared in prinit.h

fileio.c
	Tests NSPR semaphores a bit of file i/o and threading
	functions.

foreign.c
	Test auto-attach of a thread created by something other than
	NSPR.

forktest.c
	Limited use. Tests unix fork() and related functions.

fsync.c
	Tests use of PR_Sync() declared in prio.h

getproto.c
	Tests socket functions PR_GetProtoByName(), etc.

i2l.c
	Tests LongLong functions for converting 32bit integer to 64bit
	integer.

initclk.c
	Tests timing on minimal use of condition variable

inrval.c
	Tests interval timing functions.

instrumt.c
	Tests instrumentation functions. prcountr.h prtrace.h

intrupt.c
	Tests PR_Interrupt()

ioconthr.c
	Tests i/o continuation mechanism in pthreads.

io_timeout.c
	Test socket i/o timeouts.

io_timeoutk.c
	Obsolete. Subsumed in io_timeout.c

io_timeoutu.c
	Obsolete. Subsumed in io_timeout.c

ipv6.c
	Tests IPv6. IPv6 is not used by NSPR clients.

join.c
	Tests PR_JoinThread()

joinkk.c
	Tests PR_JoinThread()

joinku.c
	Tests PR_JoinThread()

joinuk.c
	Tests PR_JoinThread()

joinuu.c
	Tests PR_JoinThread()

layer.c
	Tests layered I/O.

lazyinit.c
	Tests implicit initialization.

lltest.c
	Tests LongLong (64bit integer) arithmentic and conversions.

lock.c
	Tests PR_Lock() in heavily threaded environment.

lockfile.c
	Test PR_Lockfile().

logger.c
	Tests PR_LOG()

makefile
	The makefile that builds all the tests

many_cv.c
	Tests aquiring a large number of condition variables.

multiwait.c
	???

nbconn.c
	Test non-blocking connect.

nblayer.c
	Tests NSPR's layered I/O capability.

nonblock.c
	Tests operations on non-blocking socket.

op_2long.c
	Tests PR_Open() where filename is too long.

op_filnf.c
	Tests PR_Open() where filename is NotFound.

op_filok.c
	Tests PR_Open() where filename is accessable.

op_noacc.c
	Tests PR_Open() where file permissions are wrong.
	Limited use. Windows has no concept of Unix style file permissions.

op_nofil.c
	Tests PR_Open() where filename does not exist.

parent.c
	Test parent/child process capability

perf.c
	Tests and measures context switch times for various thread
	syncronization functions.

pipeping.c
	Tests inter-process pipes. Run with pipepong.c

pipepong.c
	Tests inter-process pipes. Run with pipeping.c

pipeself.c
	Tests inter-thread pipes.

pollable.c
	Tests pollable events. prio.h

poll_er.c
	Tests PR_Poll() where an error is expected.

poll_nm.c
	Tests PR_Poll() where normal operation is expected.

poll_to.c
	Tests PR_Poll() where timeout is expected.

prftest.c
	Tests printf-like formatting.

prftest1.c
	Obsolete. Subsumed in prftest.c

prftest2.c
	Obsolete. Subsumed in prftest.c

priotest.c
	Limited use. Tests NSPR thread dispatching priority.

provider.c

prpoll.c
	Tests PR_Poll().

prselect.c
	Obsolete. PR_Select() is obsolete.

prttools.h
	Unused file.

ranfile.c
	Tests random file access.

readme
	This file.

runtests.ksh
	A korn shell script that runs a set of tests that should run
	on any of the NSPR supported platforms.

runtests.pl
	A perl script to run the test cases. This srcipt runs tests
	common to all platforms and runs tests applicable to specific
	platforms. Uses file runtests.txt to control execution.

runtests.txt
	Control file for perl script: runtests.pl

rwlocktest.c
	Tests Reader/Writer lock

selct_er.c
	Obsolete. PR_Select() is obsolete.

selct_nm.c
	Obsolete. PR_Select() is obsolete.

selct_to.c
	Obsolete. PR_Select() is obsolete.

select2.c
	Obsolete. PR_Select() is obsolete.

sel_spd.c
	Obsolete. PR_Select() is obsolete.

sem.c
	Obsolete. Semaphores are not supported.

server_test.c
	Tests sockets by simulating a server in loopback mode.
	Makes its own client threads.

servr_kk.c
	Tests client/server sockets, threads using system threads.

servr_ku.c
	Tests client/server sockets, threads using system and user threads.

servr_uk.c
	Tests client/server sockets, threads using system and user threads.

servr_uu.c
	Tests client/server sockets, threads user threads.

short_thread.c
	Tests short-running threads. Useful for testing for race conditions.

sigpipe.c
	Tests NSPR's SIGPIPE handler. Unix only.

sleep.c
	Limited use. Tests sleep capability of platform.

socket.c
	Tests many socket functions.

sockopt.c
	Tests setting and getting socket options.

sprintf.c
	Tests sprintf.

sproc_ch.c
	Obsolete. Tests IRIX sproc-based threads.

sproc_p.c
	Obsolete. Tests IRIX sproc-based threads.

stack.c
	Test atomic stack operations.

stat.c
	Tests performance of getfileinfo() vs. stat()

stdio.c
	Tests NSPR's handling of stdin, stdout, stderr.

strod.c
	Tests formatting of double precision floating point.

suspend.c
	Private interfaces PR_SuspendAll(), PR_ResumeAll(), etc.

switch.c
	Tests thread switching

system.c
	Tests PR_GetSystemInfo()

testbit.c
	Tests bit arrays.

testfile.c
	Tests many file I/O functions.

threads.c
	Tests thread caching.

thruput.c
	Tests socket thruput. Must be run by hand as client/server.
	Does not self terminate.

time.c
	Incomplete. Limited use.

timemac.c
	Test time and date functions. Originally for Mac.

timetest.c
	Tests time conversion over a wide range of dates.

tmoacc.c
	Server to tmocon.c and writev.c
	Do not run it by itself.

tmocon.c
	Client thread to tmoacc.c

tpd.c
	Tests thread private data.

udpsrv.c
	Tests UDP socket functions.

ut_ttools.h
	unused file.

version.c
	Extract and print library version data.

vercheck.c
	Test PR_VersionCheck().

writev.c
	Tests gather-write on a socket. Requires tmoacc.c

xnotify.c
	Tests cached monitors.

yield.c
	Limited use

y2k.c
	Test to verify NSPR's date functions as Y2K compliant.

dll\Makefile
	makefile for mygetval.c, mysetval.c

dll\mygetval.c
	Dynamic library test. See also dlltest.c

dll\mysetval.c
	Dynamic library test. See also dlltest.c

w16gui\Makefile
	Obsolete. Tests for lib/ds/PLEvent on Windows 3.1.
w16gui\popfile.c
w16gui\popfind.c
w16gui\popfont.c
w16gui\poppad.c
w16gui\poppad.h
w16gui\poppad.ico
w16gui\poppad.rc
w16gui\popprnt0.c
w16gui\readme.1st