Add erasure and compression self-tests (#11918)

Ensure that we don't use potentially broken algorithms for critical functions, whether it be a runtime problem or implementation problem for a specific platform.
This commit is contained in:
Klaus Post
2021-03-31 18:11:37 +02:00
committed by GitHub
parent 6b484f45c6
commit 0d8c74358d
4 changed files with 116 additions and 0 deletions

View File

@@ -412,6 +412,10 @@ func serverMain(ctx *cli.Context) {
globalConsoleSys = NewConsoleLogger(GlobalContext)
logger.AddTarget(globalConsoleSys)
// Perform any self-tests
erasureSelfTest()
compressSelfTest()
// Handle all server command args.
serverHandleCmdArgs(ctx)