1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/tests/multinit/multinit.txt Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,79 @@ 1.4 +# 1.5 +# This file defines the tests for multiple initialization of NSS in 1.6 +# different libraries. 1.7 +# 1.8 +# Test description lines control the parameters for the multinit test program. 1.9 +# 1.10 +# Init order: Upper case/digits indicate an init call, lower case indicate 1.11 +# a shutdown call. 1.12 +# M,m-Main 1,i-lib1, 2,z-lib2 1.13 +# Main calls the traditional NSS init calls (simulating the main application) 1.14 +# lib1 and lib2 call NSS_InitContext(). 1.15 +# 1.16 +# All functions call NSS_ShutdownContext unless 'main shutdown type' is set to 1.17 +# 'old', in which case main will call the traditional NSS_Shutdown(). 1.18 +# 1.19 +# Commands: comma separated list of commands to execute. These simulate 1.20 +# executing commands from either a library or main. In each cycle, multinit 1.21 +# will do one initialize or shutdown, then execute all the commands 1.22 +# for any of the libraries or main that is currently initialized. The same 1.23 +# command is executed in each cycle that it's library is initialized. 1.24 +# 1.25 +# Commands are given in order or 'main','lib1','lib2'. Valid commands are: 1.26 +# none - don't execute any commands for this library (or main). 1.27 +# list_certs - list all the visible certs in the system. 1.28 +# list_slots - list all the slots in the system. 1.29 +# key_slot - list the current default key slot. 1.30 +# 1.31 +# Main Shutdown Type - which kind of shutdown does main call. See Init order. 1.32 +# 1.33 +# Directories - which directory should each init open. Listed in order of: 1.34 +# (main init directory),(lib1 init directory),(lib2 init directory). 1.35 +# 1.36 +# RO - Which databases to open up read only, valid values are: 1.37 +# all - main, lib1, and lib2 1.38 +# none - open all directories R/W 1.39 +# libs - lib1 & lib2 1.40 +# main, lib1, lib2 - their respective directories only. 1.41 +# 1.42 +# Test description lines are followed by their expected summary output. 1.43 +# output lines are of the form: 1.44 +# 1.45 +# tag expected output. 1.46 +# 1.47 +# where tag is one of 1.48 +# all - applies to all database types 1.49 +# sql - expected output for sql databases 1.50 +# dbm - expected output for dbm databases 1.51 +# 1.52 +# if you do not specify all, you must have one line each for sql and dbm 1.53 +# 1.54 +# main 1.55 +# init main,lib1,lib2 shutdown main,lib1,lib2 Test Case name 1.56 +# order commands type directories RO 1.57 +# ------ ------------------------ --- ----------- ----- -------------- 1.58 + 1M2zmi list_slots,list_certs,none new dir1,dir2,dir3 all Progressive init 1.59 +all 1C<Bob>uuuC<Dave>pppC<Eve>pppC<NSS Test CA>CTCCMS<NSS Generic Crypto Services>ttS<Main>ttS<Lib1>ttC<Alice>uuuC<Bob>pupupuC<Dave>pppC<Eve>pppC<NSS Test CA>CTCC2S<NSS Generic Crypto Services>ttS<Lib2>ttS<Main>ttS<Lib1>ttC<Alice>uuuC<Bob>pupupuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCZS<NSS Generic Crypto Services>ttS<Lib2>ttS<Main>ttS<Lib1>ttC<Alice>uuuC<Bob>pupupuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCNC<Alice>uuuC<Bob>pupupuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCI 1.60 + 1M2zmi list_certs,none,none old dir1,dir2,dir3 all Progressive init - oldStyle 1.61 +all 1MC<Alice>uuuC<Bob>pupupuC<Dave>pppC<Eve>pppC<NSS Test CA>CTCC2C<Alice>uuuC<Bob>pupupuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCZC<Alice>uuuC<Bob>pupupuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCNIE0xffffe09a 1.62 + 12Mizm none,list_certs,none new dir1,dir2,dir3 all Sequenced init 1.63 +all 1C<Bob>uuuC<Dave>pppC<Eve>pppC<NSS Test CA>CTCC2C<Bob>uuuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCMC<Alice>uuuC<Bob>pupupuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCIZN 1.64 + 12Mizm none,list_certs,none old dir1,dir2,dir3 all Sequenced init - old Style 1.65 +all 1C<Bob>uuuC<Dave>pppC<Eve>pppC<NSS Test CA>CTCC2C<Bob>uuuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCMC<Alice>uuuC<Bob>pupupuC<Dave>pupupuC<Eve>pppC<NSS Test CA>CTCCIZN 1.66 + 1Mi2mz none,list_certs,list_slots new dir1,dir2,dir3 all Overlap shutdown 1.67 +all 1C<Bob>uuuC<Dave>pppC<Eve>pppC<NSS Test CA>CTCCMC<Alice>uuuC<Bob>pupupuC<Dave>pppC<Eve>pppC<NSS Test CA>CTCCI2S<NSS Generic Crypto Services>ttS<Lib2>ttS<Main>ttS<Lib1>ttNS<NSS Generic Crypto Services>ttS<Lib2>ttS<Main>ttS<Lib1>ttZ 1.68 + 1Mi2mz none,key_slot,none new dir1,dir2,dir3 all Keyslot test 1.69 +all 1S<Lib1>ttMS<Main>ttI2NZ 1.70 + M12miz none,key_slot,none new dir1,dir2,dir3 all Main init first 1.71 +all M1S<Main>tt2S<Main>ttNS<Main>ttIZ 1.72 + M12miz key_slot,none,none old dir1,dir2,dir3 all Main init first - old Style 1.73 +all MS<Main>tt1S<Main>tt2S<Main>ttNIE0xffffe09aZE0xffffe09a 1.74 + M12miz list_slots,none,none new dir1,dir1,dir2 all Loading the same directory twice 1.75 +all MS<NSS Generic Crypto Services>ttS<Main>tt1S<NSS Generic Crypto Services>ttS<Main>tt2S<NSS Generic Crypto Services>ttS<Lib2>ttS<Main>ttNIZ 1.76 + M12miz list_slots,none,none new dir1,dir1,dir2 libs Loading the same directory twice - r/w then ro 1.77 +all MS<NSS Generic Crypto Services>ttS<Main>tf1S<NSS Generic Crypto Services>ttS<Main>tf2S<NSS Generic Crypto Services>ttS<Lib2>ttS<Main>tfNIZ 1.78 + M12miz list_slots,none,none new dir1,dir1,dir2 main Loading the same directory twice - ro then r/w 1.79 +sql MS<NSS Generic Crypto Services>ttS<Main>tt1S<NSS Generic Crypto Services>ttS<Lib1>tfS<Main>tt2S<NSS Generic Crypto Services>ttS<Lib2>tfS<Lib1>tfS<Main>ttNIZ 1.80 +dbm MS<NSS Generic Crypto Services>ttS<Main>tt1S<NSS Generic Crypto Services>ttS<Main>tt2S<NSS Generic Crypto Services>ttS<Lib2>tfS<Main>ttNIZ 1.81 + M12miM1zim key_slot,none,none old dir1,dir2,dir3 all Properly detect shutdown of a closed handle 1.82 +all MS<Main>tt1S<Main>tt2S<Main>ttNIE0xffffe09aMS<Main>tt1S<Main>ttZE0xffffe09aS<Main>ttIS<Main>ttN