Mypal/nsprpub/pr/tests
Fedor f4ea1dde41 Update to a later NSS version. 2021-02-04 16:54:22 +02:00
..
dll Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
.cvsignore basic source 2019-03-11 13:26:37 +03:00
Makefile.in Update to a later NSS version. 2021-02-04 16:54:22 +02:00
README.TXT Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
abstract.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
accept.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
acceptread.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
acceptreademu.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
addrstr.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
affinity.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
alarm.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
anonfm.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
append.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
atomic.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
attach.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
bigfile.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
bigfile2.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
bigfile3.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
bug1test.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
cleanup.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
cltsrv.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
concur.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
cvar.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
cvar2.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
dbmalloc.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
dbmalloc1.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
dceemu.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
depend.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
dlltest.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
dtoa.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
env.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
errcodes.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
errset.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
exit.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
fdcach.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
fileio.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
foreign.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
forktest.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
formattm.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
freeif.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
fsync.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
getai.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
gethost.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
getproto.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
i2l.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
initclk.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
inrval.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
instrumt.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
intrio.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
intrupt.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
io_timeout.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
io_timeoutk.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
io_timeoutu.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
ioconthr.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
ipv6.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
join.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
joinkk.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
joinku.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
joinuk.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
joinuu.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
layer.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
lazyinit.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
libfilename.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
lltest.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
lock.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
lockfile.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
logfile.c basic source 2019-03-11 13:26:37 +03:00
logger.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
makedir.c basic source 2019-03-11 13:26:37 +03:00
many_cv.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
mbcs.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
monref.c basic source 2019-03-11 13:26:37 +03:00
multiacc.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
multiwait.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
nameshm1.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
nbconn.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
nblayer.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
nonblock.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
ntioto.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
ntoh.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
obsints.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
op_2long.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
op_excl.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
op_filnf.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
op_filok.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
op_noacc.c basic source 2019-03-11 13:26:37 +03:00
op_nofil.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
openfile.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
parent.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
parsetm.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
peek.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
perf.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
pipeping.c basic source 2019-03-11 13:26:37 +03:00
pipeping2.c basic source 2019-03-11 13:26:37 +03:00
pipepong.c basic source 2019-03-11 13:26:37 +03:00
pipepong2.c basic source 2019-03-11 13:26:37 +03:00
pipeself.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
poll_er.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
poll_nm.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
poll_to.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
pollable.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
prfdbl.c basic source 2019-03-11 13:26:37 +03:00
prftest.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
prftest1.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
prftest2.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
prfz.c basic source 2019-03-11 13:26:37 +03:00
primblok.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
priotest.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
provider.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
prpoll.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
prpollml.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
prselect.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
prttools.h basic source 2019-03-11 13:26:37 +03:00
pushtop.c basic source 2019-03-11 13:26:37 +03:00
randseed.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
ranfile.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
reinit.c basic source 2019-03-11 13:26:37 +03:00
rmdir.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
runtests.pl Update to a later NSS version. 2021-02-04 16:54:22 +02:00
runtests.sh Update to a later NSS version. 2021-02-04 16:54:22 +02:00
runy2ktests.ksh basic source 2019-03-11 13:26:37 +03:00
rwlockrank.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
rwlocktest.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
sel_spd.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
selct_er.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
selct_nm.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
selct_to.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
select2.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
selintr.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
sem.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
sema.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
semaerr.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
semaerr1.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
semaping.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
semapong.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
sendzlf.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
server_test.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
servr_kk.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
servr_ku.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
servr_uk.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
servr_uu.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
short_thread.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
sigpipe.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
sleep.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
socket.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
sockopt.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
sockping.c basic source 2019-03-11 13:26:37 +03:00
sockpong.c basic source 2019-03-11 13:26:37 +03:00
sprintf.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
stack.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
stat.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
stdio.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
str2addr.c basic source 2019-03-11 13:26:37 +03:00
strod.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
suspend.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
switch.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
system.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
testbit.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
testfile.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
threads.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
thrpool_client.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
thrpool_server.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
thruput.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
time.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
timemac.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
timetest.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
tmoacc.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
tmocon.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
tpd.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
udpsrv.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
ut_ttools.h basic source 2019-03-11 13:26:37 +03:00
vercheck.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
version.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
writev.c Update to a later NSS version. 2021-02-04 16:54:22 +02:00
xnotify.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
y2k.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
y2ktmo.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
yield.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00
zerolen.c Update NSS to a Goldilocks version. 2020-04-03 20:44:39 +03:00

README.TXT

File: pr/tests/readme

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

=====================================================================
There is a sub-directory here:

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

=====================================================================
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 functions. 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

prfz.c
	Tests printf handling of (s)size_t formats

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.

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