Commit 0e577b14 authored by Niels Möller's avatar Niels Möller

Progress indicator for test_hash_large.

parent 7e9b73e0
2013-09-28 Niels Möller <nisse@lysator.liu.se> 2013-09-28 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c (test_hash_large): Added simple progress
indicator.
* macros.h (MD_PAD): Use size argument, don't depend on * macros.h (MD_PAD): Use size argument, don't depend on
sizeof of the count field(s). sizeof of the count field(s).
......
...@@ -592,7 +592,13 @@ test_hash_large(const struct nettle_hash *hash, ...@@ -592,7 +592,13 @@ test_hash_large(const struct nettle_hash *hash,
hash->init(ctx); hash->init(ctx);
for (i = 0; i < count; i++) for (i = 0; i < count; i++)
hash->update(ctx, length, data); {
hash->update(ctx, length, data);
if (i % (count / 50) == 0)
fprintf (stderr, ".");
}
fprintf (stderr, "\n");
hash->digest(ctx, hash->digest_size, buffer); hash->digest(ctx, hash->digest_size, buffer);
print_hex(hash->digest_size, buffer); print_hex(hash->digest_size, buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment