aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/test_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/test_cli.py')
-rwxr-xr-xsrc/scripts/test_cli.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py
index c891d5ffb..2683bbd2f 100755
--- a/src/scripts/test_cli.py
+++ b/src/scripts/test_cli.py
@@ -322,6 +322,14 @@ def cli_pbkdf_tune_tests():
if expected_pbkdf2.match(line) is None:
logging.error("Unexpected line '%s'" % (line))
+ expected_argon2 = re.compile(r'For (default|[1-9][0-9]*) ms selected Argon2id\([0-9]+,[0-9]+,[0-9]+\)')
+
+ output = test_cli("pbkdf_tune", ["--algo=Argon2id", "--check", "1", "10", "50", "default"], None).split('\n')
+
+ for line in output:
+ if expected_argon2.match(line) is None:
+ logging.error("Unexpected line '%s'" % (line))
+
def cli_psk_db_tests():
if not check_for_command("psk_get"):
return