2021-09-18 Bruno Haible <bruno@clisp.org>
+ sha512-buffer tests: New module.
+ * tests/test-sha512-stream.c: Renamed from tests/test-sha512.c.
+ * modules/crypto/sha512-buffer-tests: New file, based on
+ modules/crypto/sha512-tests.
+ * modules/crypto/sha512-tests: Remove tests that are now in
+ modules/crypto/sha512-buffer-tests. Test tests/test-sha512-stream.c
+ instead of tests/test-sha512.c.
+
sha512: Clarify module to source relation.
* lib/sha512-stream.c: New file, extracted from lib/sha512.c.
* lib/sha512.c: Don't include stdlib.h, unlocked-io.h.
--- /dev/null
+Files:
+tests/bench-sha384.c
+tests/bench-sha512.c
+tests/bench-digest.h
+
+Depends-on:
+c99
+getrusage
+gettimeofday
+
+configure.ac:
+
+Makefile.am:
+noinst_PROGRAMS += bench-sha384 bench-sha512
+bench_sha384_LDADD = $(LDADD) @LIB_CRYPTO@
+bench_sha512_LDADD = $(LDADD) @LIB_CRYPTO@
Files:
-tests/test-sha512.c
+tests/test-sha512-stream.c
tests/test-digest.h
-tests/bench-sha384.c
-tests/bench-sha512.c
-tests/bench-digest.h
tests/macros.h
Depends-on:
c99
-getrusage
-gettimeofday
configure.ac:
Makefile.am:
-TESTS += test-sha512
-check_PROGRAMS += test-sha512
-noinst_PROGRAMS += bench-sha384 bench-sha512
-test_sha512_LDADD = $(LDADD) @LIB_CRYPTO@
-bench_sha384_LDADD = $(LDADD) @LIB_CRYPTO@
-bench_sha512_LDADD = $(LDADD) @LIB_CRYPTO@
+TESTS += test-sha512-stream
+check_PROGRAMS += test-sha512-stream
+test_sha512_stream_LDADD = $(LDADD) @LIB_CRYPTO@