Skip to content

Conversation

@nonoo
Copy link
Contributor

@nonoo nonoo commented Oct 13, 2021

No description provided.

@vodolaz095
Copy link

+1

@vodolaz095
Copy link

i executed unit tests on actual Arm device (RPi with Broadcom BCM2835 700MHz processor and https://archlinuxarm.org/platforms/armv6/raspberry-pi as OS), they seems to be passing properly.

I'll be gratefull, if this PR is accepted.

=== RUN   TestRandomKey256
    key_test.go:76: added 256 byte random value key as: 811506829 ([130 4 133 49 108 178 125 95 35 126 41 129 229 48 6 94 69 20 194 236 79 156 67 100 239 152 149 93 91 56 8 183 42 148 114 59 57 5 112 151 54 97 109 145 228 196 250 104 169 107 86 64 98 181 200 58 199 70 138 179 60 249 34 123 30 22 124 240 201 132 218 21 74 83 39 223 73 88 136 27 0 10 89 51 215 251 255 3 235 241 19 102 71 38 166 220 110 23 232 25 172 210 142 211 121 242 75 208 195 203 226 253 176 17 66 158 231 237 99 254 173 221 117 139 213 90 85 45 187 84 92 44 164 247 122 32 127 177 170 155 111 185 171 61 76 184 234 192 16 106 160 204 153 161 186 131 28 137 37 216 248 55 72 50 26 46 53 224 7 217 189 120 219 167 119 11 252 65 135 96 222 68 144 214 227 101 207 103 212 175 157 141 168 82 163 47 52 15 113 230 245 116 43 80 246 33 198 197 146 193 13 31 24 143 12 18 118 14 62 154 78 81 134 162 105 63 244 77 190 209 150 233 159 202 191 40 87 180 188 36 238 9 140 128 147 174 1 2 182 243 29 115 205 225 165 206])
--- PASS: TestRandomKey256 (0.01s)
=== RUN   TestRandomKey700
    key_test.go:92: added 700 byte random value key as: 805534687 ([243 211 174 173 4 227 113 231 23 204 201 89 26 224 62 142 45 220 76 197 66 139 240 128 223 68 158 160 15 34 115 109 238 185 84 12 222 144 245 106 246 210 30 32 190 249 195 8 5 208 183 92 236 170 217 235 35 178 79 176 97 192 191 104 154 38 87 42 237 29 253 199 125 230 149 216 41 138 140 69 46 150 156 18 151 148 187 145 117 184 58 229 127 221 2 99 95 57 9 39 24 110 120 102 225 14 124 179 55 43 207 49 129 118 59 250 56 196 135 70 171 52 251 93 112 205 215 177 44 146 247 0 16 98 71 114 193 96 194 21 159 25 255 72 241 167 161 73 20 233 100 203 10 212 189 13 101 132 126 163 103 186 48 119 67 53 17 3 28 165 152 157 94 116 213 78 244 130 155 50 218 180 200 61 162 181 105 164 206 121 137 188 6 85 123 86 37 27 36 31 214 209 22 64 88 33 60 111 153 77 63 90 11 81 168 175 1 182 248 252 198 254 219 141 232 54 122 47 80 74 51 75 169 19 107 228 82 234 7 83 131 136 134 239 202 147 40 108 65 133 172 226 91 242 143 166 252 58 39 94 23 195 149 166 217 224 146 118 154 251 61 161 190 93 100 206 120 42 17 44 34 238 172 123 90 7 163 8 165 65 52 177 210 33 133 82 80 221 63 55 119 31 218 170 153 205 186 132 54 104 228 155 60 198 246 27 142 181 140 89 176 207 50 151 233 164 216 84 35 15 139 184 137 160 179 167 117 112 242 144 241 173 125 243 75 209 255 244 145 199 196 79 222 236 225 101 20 18 159 107 231 193 1 115 86 226 250 47 72 70 150 85 127 136 64 62 56 204 175 215 202 194 192 239 88 235 248 21 188 29 158 2 182 45 229 36 69 26 81 183 30 141 14 162 168 128 135 43 227 109 25 234 200 169 213 223 185 219 178 96 245 51 237 57 16 40 174 91 73 253 5 9 87 108 113 114 13 148 59 138 203 212 46 95 116 0 134 48 156 66 41 171 71 122 77 10 220 32 28 197 240 191 67 208 111 68 11 254 201 214 129 124 126 157 24 22 19 78 98 4 247 103 92 230 110 147 189 12 83 180 211 121 187 38 143 76 106 249 105 232 102 74 6 152 130 131 97 49 3 53 37 99 157 23 96 75 182 90 156 103 64 184 110 74 78 109 136 176 87 42 62 137 163 15 106 0 160 73 54 57 127 83 166 86 165 35 175 150 67 72 101 7 47 34 168 129 170 77 162 46 80 38 167 32 45 148 24 120 118 65 11 178 104 141 52 20 154 151 171 82 68 124 29 84 139 97 92 95 49 59 51 131 71 186 115 8 123 98 161 27 172 130 1 180 85 187 113 81 152 158 55 134 36 114 43 121 122 119 14 142 177 16 37 13 63 3 146 100 60 93 31 66 179 70 147 89 144 125 145 50 94 185 149 91 117 108 143 181 140 33 111 76 6 153 2 58 116 56 169 155 19 135 22 173 39 107 128 41 21 30 12 18 44 112 138 133 69 159 25 9 126 183 88 5 79 174 48 102 53 61 17 132 4 10 99 164 28 105 26 40])
    key_test.go:99: key 805534687 expired after five seconds
--- PASS: TestRandomKey700 (5.02s)
=== RUN   TestAdd100BytesToSessionKeyring
    keyring_test.go:17: added 100 byte empty key as: 808482289
    keyring_test.go:24: read 100 octets from key: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
--- PASS: TestAdd100BytesToSessionKeyring (0.02s)
=== RUN   TestAdd128BytesToSessionExpireAfter10Seconds
    keyring_test.go:37: added 128 byte empty key as: 1058981993
--- PASS: TestAdd128BytesToSessionExpireAfter10Seconds (0.01s)
=== RUN   TestFetchKey
    keyring_test.go:56: read 100 octets from key: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
--- PASS: TestFetchKey (0.01s)
=== RUN   TestFetchKeyFail
--- PASS: TestFetchKeyFail (0.00s)
=== RUN   TestUnlinkKey
--- PASS: TestUnlinkKey (0.00s)
=== RUN   TestCreateKeyring
    keyring_test.go:102: created keyring 14562667 named "testring"
--- PASS: TestCreateKeyring (0.01s)
=== RUN   TestCreateNestedKeyring
    keyring_test.go:102: created keyring 699047455 named "testring"
    keyring_test.go:102: created keyring 776827049 named "testring2"
    keyring_test.go:124: created nested keyring 776827049 named "testring2"
    keyring_test.go:102: created keyring 442446911 named "testring3"
    keyring_test.go:126: created nested keyring 442446911 named "testring3"
--- PASS: TestCreateNestedKeyring (0.02s)
=== RUN   TestOpenNestedKeyring
    keyring_test.go:102: created keyring 62899420 named "testring"
    keyring_test.go:102: created keyring 281710537 named "testring2"
    keyring_test.go:142: created nested keyring 281710537 named "testring2"
    keyring_test.go:102: created keyring 148982161 named "testring3"
    keyring_test.go:144: created nested keyring 148982161 named "testring3"
    keyring_test.go:150: successfully reopened keyring 148982161 named "testring3"
--- PASS: TestOpenNestedKeyring (0.03s)
=== RUN   TestUnlinkKeyring
    keyring_test.go:164: created keyring 246854122 named "testring"
    keyring_test.go:171: unlinked keyring 246854122 [testring]
--- PASS: TestUnlinkKeyring (0.02s)
=== RUN   TestStreamReader
    reader_test.go:39: compared key 471635595 128 bytes: [56 23 190 99 42 240 60 119 91 69 202 4 9 21 70 96 53 174 206 82 12 11 180 85 144 114 247 90 102 89 248 16 189 198 246 73 161 191 141 20 58 100 160 226 162 107 133 170 44 200 37 40 10 25 17 225 30 164 31 252 62 151 78 41 167 185 219 24 166 59 71 186 142 205 249 86 92 143 208 46 124 79 159 36 95 157 81 101 213 212 33 153 195 201 136 233 55 227 242 0 138 32 94 68 19 232 127 15 128 6 126 146 88 231 84 169 51 110 216 49 111 112 115 75 209 217 45 39]
    reader_test.go:39: compared key 471635595 128 bytes: [236 76 158 229 239 67 230 83 7 147 97 64 13 66 223 22 50 72 3 129 172 182 203 125 220 131 34 210 163 52 77 179 215 2 29 228 188 135 224 116 137 140 183 61 175 171 121 65 196 43 113 187 104 181 26 156 18 243 27 165 87 204 134 199 211 154 1 193 207 148 54 80 38 222 250 235 221 48 255 35 120 108 149 197 8 57 123 139 176 194 132 237 28 63 106 168 109 178 218 184 105 14 5 130 245 150 238 244 152 98 74 173 251 155 47 122 234 118 214 192 177 117 103 241 254 93 145 253]
    reader_test.go:39: compared key 471635595 128 bytes: [145 78 184 10 30 146 232 181 121 174 217 137 40 233 129 196 128 53 238 36 231 219 46 113 209 95 14 156 52 154 84 204 139 229 182 160 149 3 115 18 59 165 251 159 175 12 124 221 99 15 109 144 92 48 82 254 16 212 191 57 44 9 119 80 87 49 255 210 83 107 213 167 22 101 54 75 13 61 50 222 63 42 150 170 138 244 41 114 252 239 108 43 133 11 152 247 166 88 93 64 111 86 245 56 132 39 216 187 102 155 203 31 235 26 194 8 38 47 185 161 253 91 208 227 198 23 178 202]
    reader_test.go:39: compared key 471635595 128 bytes: [147 126 180 81 230 27 130 5 192 242 200 55 205 122 112 94 20 171 25 163 136 77 104 127 249 85 100 193 32 0 123 246 97 24 70 34 207 131 189 7 69 223 21 45 125 51 224 28 179 29 234 151 65 228 90 226 140 35 37 225 1 79 72 67 143 6 199 214 116 110 71 141 215 66 76 197 106 250 206 157 60 186 103 19 2 169 153 211 4 74 237 33 240 73 177 183 162 96 201 188 17 218 236 142 220 120 164 172 118 168 117 89 158 248 148 135 241 195 105 173 243 98 190 176 68 58 62 134]
    reader_test.go:39: compared key 471635595 128 bytes: [187 108 136 12 45 101 150 14 10 190 129 51 23 93 186 65 184 138 60 46 104 177 0 156 173 39 148 140 70 193 18 85 205 36 35 24 202 11 88 28 99 175 115 29 160 96 41 22 128 98 154 3 102 50 19 178 48 74 127 197 53 69 201 56 68 164 73 2 121 83 143 134 162 57 147 114 206 84 92 59 170 131 142 8 125 54 33 66 195 181 105 204 44 194 189 27 5 72 199 67 118 123 116 176 180 132 47 89 144 9 82 64 172 152 107 149 117 87 167 25 75 188 38 63 55 34 141 159]
    reader_test.go:39: compared key 471635595 79 bytes: [113 1 42 49 76 182 71 37 40 145 166 157 91 124 43 185 62 137 146 130 32 21 81 6 174 203 15 90 119 198 183 139 110 135 169 196 120 165 133 86 79 155 163 77 80 7 78 171 122 200 16 94 30 13 95 109 103 168 111 153 31 100 20 97 161 106 191 52 112 17 179 192 126 61 58 158 4 26 151]
--- PASS: TestStreamReader (0.05s)
=== RUN   TestSessionKeyringRefs
    ref_test.go:33: 1059937275: {Type:keyring Name:_uid.1001 Uid:1001 Gid:65534 Perm:-lswrvalswrv------------ valid:true} [--alswrv]
    ref_test.go:33: 1058981993: {Type:key Name:expire-test Uid:1001 Gid:1001 Perm:alswrv-----v------------ valid:true} [-------v]
    ref_test.go:33: 471635595: {Type:key Name:test1544bytestream Uid:1001 Gid:1001 Perm:alswrv-----v------------ valid:true} [-------v]
    ref_test.go:33: 805534687: {Type: Name:key has expired Uid:0 Gid:0 Perm:------------------------ valid:false} [--------]
    ref_test.go:33: 811506829: {Type: Name:key has expired Uid:0 Gid:0 Perm:------------------------ valid:false} [--------]
    ref_test.go:65: keyring 1059937275: "_uid.1001", parent -3
    ref_test.go:71: key 1058981993: "expire-test", keyring -3
    ref_test.go:76:    1058981993: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    ref_test.go:71: key 471635595: "test1544bytestream", keyring -3
    ref_test.go:76:    471635595: [56 23 190 99 42 240 60 119 91 69 202 4 9 21 70 96 53 174 206 82 12 11 180 85 144 114 247 90 102 89 248 16 189 198 246 73 161 191 141 20 58 100 160 226 162 107 133 170 44 200 37 40 10 25 17 225 30 164 31 252 62 151 78 41 167 185 219 24 166 59 71 186 142 205 249 86 92 143 208 46 124 79 159 36 95 157 81 101 213 212 33 153 195 201 136 233 55 227 242 0 138 32 94 68 19 232 127 15 128 6 126 146 88 231 84 169 51 110 216 49 111 112 115 75 209 217 45 39 236 76 158 229 239 67 230 83 7 147 97 64 13 66 223 22 50 72 3 129 172 182 203 125 220 131 34 210 163 52 77 179 215 2 29 228 188 135 224 116 137 140 183 61 175 171 121 65 196 43 113 187 104 181 26 156 18 243 27 165 87 204 134 199 211 154 1 193 207 148 54 80 38 222 250 235 221 48 255 35 120 108 149 197 8 57 123 139 176 194 132 237 28 63 106 168 109 178 218 184 105 14 5 130 245 150 238 244 152 98 74 173 251 155 47 122 234 118 214 192 177 117 103 241 254 93 145 253 145 78 184 10 30 146 232 181 121 174 217 137 40 233 129 196 128 53 238 36 231 219 46 113 209 95 14 156 52 154 84 204 139 229 182 160 149 3 115 18 59 165 251 159 175 12 124 221 99 15 109 144 92 48 82 254 16 212 191 57 44 9 119 80 87 49 255 210 83 107 213 167 22 101 54 75 13 61 50 222 63 42 150 170 138 244 41 114 252 239 108 43 133 11 152 247 166 88 93 64 111 86 245 56 132 39 216 187 102 155 203 31 235 26 194 8 38 47 185 161 253 91 208 227 198 23 178 202 147 126 180 81 230 27 130 5 192 242 200 55 205 122 112 94 20 171 25 163 136 77 104 127 249 85 100 193 32 0 123 246 97 24 70 34 207 131 189 7 69 223 21 45 125 51 224 28 179 29 234 151 65 228 90 226 140 35 37 225 1 79 72 67 143 6 199 214 116 110 71 141 215 66 76 197 106 250 206 157 60 186 103 19 2 169 153 211 4 74 237 33 240 73 177 183 162 96 201 188 17 218 236 142 220 120 164 172 118 168 117 89 158 248 148 135 241 195 105 173 243 98 190 176 68 58 62 134 187 108 136 12 45 101 150 14 10 190 129 51 23 93 186 65 184 138 60 46 104 177 0 156 173 39 148 140 70 193 18 85 205 36 35 24 202 11 88 28 99 175 115 29 160 96 41 22 128 98 154 3 102 50 19 178 48 74 127 197 53 69 201 56 68 164 73 2 121 83 143 134 162 57 147 114 206 84 92 59 170 131 142 8 125 54 33 66 195 181 105 204 44 194 189 27 5 72 199 67 118 123 116 176 180 132 47 89 144 9 82 64 172 152 107 149 117 87 167 25 75 188 38 63 55 34 141 159 113 1 42 49 76 182 71 37 40 145 166 157 91 124 43 185 62 137 146 130 32 21 81 6 174 203 15 90 119 198 183 139 110 135 169 196 120 165 133 86 79 155 163 77 80 7 78 171 122 200 16 94 30 13 95 109 103 168 111 153 31 100 20 97 161 106 191 52 112 17 179 192 126 61 58 158 4 26 151]
--- PASS: TestSessionKeyringRefs (0.07s)
=== RUN   TestListKeyring
    sys_test.go:20: id 1059937275
--- PASS: TestListKeyring (0.01s)
=== RUN   TestFSGID
    sys_test.go:32: fsgid = 1001
--- PASS: TestFSGID (0.00s)
=== RUN   TestStreamWriter
    writer_test.go:32: compared 1544 random block key in common session ring: [53 58 213 131 73 161 109 6 43 18 120 11 205 12 47 89 67 173 69 241 167 27 112 191 222 182 214 192 34 159 197 128 243 106 152 100 63 50 200 88 115 91 30 82 142 202 78 85 104 235 234 139 187 194 172 134 148 1 184 126 37 220 177 242 157 16 175 57 21 183 206 153 245 26 44 3 193 14 156 60 154 0 145 249 151 68 196 114 178 124 146 48 231 203 20 103 116 135 76 36 227 144 174 204 75 86 111 74 169 87 223 51 101 247 41 62 217 23 190 110 189 251 125 180 252 25 107 248 83 162 122 224 4 228 254 64 84 132 226 35 123 118 136 219 61 39 19 255 230 199 2 5 129 117 253 24 130 102 155 66 208 232 95 119 225 79 211 212 9 168 31 143 171 56 59 188 244 10 133 150 185 15 201 113 181 32 210 98 216 176 70 186 164 22 246 97 149 92 7 72]
--- PASS: TestStreamWriter (0.01s)
=== RUN   TestStreamWriterUpdate
    writer_test.go:70: [flushed] compared 218 random block key in "test" ring: [150 48 79 37 199 105 8 29 93 75 41 65 147 45 179 137 76 43 118 209 59 158 131 89 122 166 126 194 134 115 97 46 64 168 183 99 15 151 101 72 38 71 172 213 121 133 125 136 120 217 191 42 87 157 208 129 54 142 108 35 114 55 84 207 190 27 164 193 51 19 7 44 189 49 74 52 104 146 178 58 215 154 69 177 149 140 171 211 106 88 36 30 81 16 197 39 47 112 116 162 148 188 169 28 167 40 143 70 163 62 34 186 159 80 212 2 152 176 192 66 6 182 135 53 1 200 95 31 102 173 12 117 32 127 94 153 98 50 141 216 113 85 156 138 82 174 5 18 61 67 68 196 111 145 109 128 26 10 63 184 180 201 92 175 13 124 185 57 198 165 11 144 33 25 56 73 187 206 0 21 110 96 170 86 60 205 130 77 103 203 14 91 20 161 9 195 83 4 119 139 204 90 210 17 160 23 22 155 132 123 181 202 3 100 214 78 24 107]
--- PASS: TestStreamWriterUpdate (0.02s)
=== RUN   TestStreamWriterFlush
    writer_test.go:98: [flushed] compared 218 random block key in common session ring: [70 110 89 12 48 103 18 24 173 106 145 126 105 49 188 37 39 134 198 129 8 108 22 204 13 41 29 199 43 181 109 100 1 197 217 161 97 87 78 21 54 17 14 34 147 196 177 19 172 16 128 124 62 80 171 98 164 144 150 166 77 130 143 107 93 148 189 56 53 175 186 99 113 7 182 211 195 191 104 36 174 213 0 68 185 152 133 117 141 111 58 121 157 52 115 131 168 90 101 65 72 190 216 149 71 179 47 118 212 42 194 61 96 76 165 2 205 6 81 84 32 154 142 63 140 95 23 82 209 114 155 57 184 60 55 127 201 208 5 67 146 11 187 170 74 15 159 116 30 10 28 162 69 139 88 9 75 51 153 169 40 138 123 50 120 44 160 135 73 136 4 26 132 102 86 193 163 207 151 85 64 200 183 20 180 25 158 45 206 33 83 94 79 167 210 112 27 3 203 119 35 91 178 59 202 156 31 137 215 122 192 46 125 176 214 38 66 92]
--- PASS: TestStreamWriterFlush (0.01s)
PASS
ok  	github.com/jsipprell/keyctl	5.545s

vodolaz095 added a commit to vodolaz095/keyctl that referenced this pull request Oct 16, 2021
2. typos fixed
3. Processor changed to Possessor, like they explain in man documentation
4. Backported ARM uniptr's from jsipprell#8
5. Generate better documentation for https://pkg.go.dev/github.com/jsipprell/keyctl
6. UPD travis config to include newer golang versions
@vodolaz095 vodolaz095 mentioned this pull request Oct 16, 2021
@jsipprell jsipprell merged commit 561117a into jsipprell:master Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants