README.TXT 7.1 KB

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