Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # |
michael@0 | 2 | # This file defines the tests for multiple initialization of NSS in |
michael@0 | 3 | # different libraries. |
michael@0 | 4 | # |
michael@0 | 5 | # Test description lines control the parameters for the multinit test program. |
michael@0 | 6 | # |
michael@0 | 7 | # Init order: Upper case/digits indicate an init call, lower case indicate |
michael@0 | 8 | # a shutdown call. |
michael@0 | 9 | # M,m-Main 1,i-lib1, 2,z-lib2 |
michael@0 | 10 | # Main calls the traditional NSS init calls (simulating the main application) |
michael@0 | 11 | # lib1 and lib2 call NSS_InitContext(). |
michael@0 | 12 | # |
michael@0 | 13 | # All functions call NSS_ShutdownContext unless 'main shutdown type' is set to |
michael@0 | 14 | # 'old', in which case main will call the traditional NSS_Shutdown(). |
michael@0 | 15 | # |
michael@0 | 16 | # Commands: comma separated list of commands to execute. These simulate |
michael@0 | 17 | # executing commands from either a library or main. In each cycle, multinit |
michael@0 | 18 | # will do one initialize or shutdown, then execute all the commands |
michael@0 | 19 | # for any of the libraries or main that is currently initialized. The same |
michael@0 | 20 | # command is executed in each cycle that it's library is initialized. |
michael@0 | 21 | # |
michael@0 | 22 | # Commands are given in order or 'main','lib1','lib2'. Valid commands are: |
michael@0 | 23 | # none - don't execute any commands for this library (or main). |
michael@0 | 24 | # list_certs - list all the visible certs in the system. |
michael@0 | 25 | # list_slots - list all the slots in the system. |
michael@0 | 26 | # key_slot - list the current default key slot. |
michael@0 | 27 | # |
michael@0 | 28 | # Main Shutdown Type - which kind of shutdown does main call. See Init order. |
michael@0 | 29 | # |
michael@0 | 30 | # Directories - which directory should each init open. Listed in order of: |
michael@0 | 31 | # (main init directory),(lib1 init directory),(lib2 init directory). |
michael@0 | 32 | # |
michael@0 | 33 | # RO - Which databases to open up read only, valid values are: |
michael@0 | 34 | # all - main, lib1, and lib2 |
michael@0 | 35 | # none - open all directories R/W |
michael@0 | 36 | # libs - lib1 & lib2 |
michael@0 | 37 | # main, lib1, lib2 - their respective directories only. |
michael@0 | 38 | # |
michael@0 | 39 | # Test description lines are followed by their expected summary output. |
michael@0 | 40 | # output lines are of the form: |
michael@0 | 41 | # |
michael@0 | 42 | # tag expected output. |
michael@0 | 43 | # |
michael@0 | 44 | # where tag is one of |
michael@0 | 45 | # all - applies to all database types |
michael@0 | 46 | # sql - expected output for sql databases |
michael@0 | 47 | # dbm - expected output for dbm databases |
michael@0 | 48 | # |
michael@0 | 49 | # if you do not specify all, you must have one line each for sql and dbm |
michael@0 | 50 | # |
michael@0 | 51 | # main |
michael@0 | 52 | # init main,lib1,lib2 shutdown main,lib1,lib2 Test Case name |
michael@0 | 53 | # order commands type directories RO |
michael@0 | 54 | # ------ ------------------------ --- ----------- ----- -------------- |
michael@0 | 55 | 1M2zmi list_slots,list_certs,none new dir1,dir2,dir3 all Progressive init |
michael@0 | 56 | 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 |
michael@0 | 57 | 1M2zmi list_certs,none,none old dir1,dir2,dir3 all Progressive init - oldStyle |
michael@0 | 58 | 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 |
michael@0 | 59 | 12Mizm none,list_certs,none new dir1,dir2,dir3 all Sequenced init |
michael@0 | 60 | 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 |
michael@0 | 61 | 12Mizm none,list_certs,none old dir1,dir2,dir3 all Sequenced init - old Style |
michael@0 | 62 | 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 |
michael@0 | 63 | 1Mi2mz none,list_certs,list_slots new dir1,dir2,dir3 all Overlap shutdown |
michael@0 | 64 | 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 |
michael@0 | 65 | 1Mi2mz none,key_slot,none new dir1,dir2,dir3 all Keyslot test |
michael@0 | 66 | all 1S<Lib1>ttMS<Main>ttI2NZ |
michael@0 | 67 | M12miz none,key_slot,none new dir1,dir2,dir3 all Main init first |
michael@0 | 68 | all M1S<Main>tt2S<Main>ttNS<Main>ttIZ |
michael@0 | 69 | M12miz key_slot,none,none old dir1,dir2,dir3 all Main init first - old Style |
michael@0 | 70 | all MS<Main>tt1S<Main>tt2S<Main>ttNIE0xffffe09aZE0xffffe09a |
michael@0 | 71 | M12miz list_slots,none,none new dir1,dir1,dir2 all Loading the same directory twice |
michael@0 | 72 | 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 |
michael@0 | 73 | M12miz list_slots,none,none new dir1,dir1,dir2 libs Loading the same directory twice - r/w then ro |
michael@0 | 74 | 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 |
michael@0 | 75 | M12miz list_slots,none,none new dir1,dir1,dir2 main Loading the same directory twice - ro then r/w |
michael@0 | 76 | 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 |
michael@0 | 77 | 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 |
michael@0 | 78 | M12miM1zim key_slot,none,none old dir1,dir2,dir3 all Properly detect shutdown of a closed handle |
michael@0 | 79 | all MS<Main>tt1S<Main>tt2S<Main>ttNIE0xffffe09aMS<Main>tt1S<Main>ttZE0xffffe09aS<Main>ttIS<Main>ttN |