]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
sha512-buffer tests: New module.
authorBruno Haible <bruno@clisp.org>
Sat, 18 Sep 2021 23:42:20 +0000 (01:42 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Sep 2021 23:42:38 +0000 (01:42 +0200)
* 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.

ChangeLog
modules/crypto/sha512-buffer-tests [new file with mode: 0644]
modules/crypto/sha512-tests
tests/test-sha512-stream.c [moved from tests/test-sha512.c with 100% similarity]

index f3e77f5e4dec3e62bc63a7ce5345b109158ec776..398c8cfe717af5f29e168f950e2656f647dc49b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 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.
diff --git a/modules/crypto/sha512-buffer-tests b/modules/crypto/sha512-buffer-tests
new file mode 100644 (file)
index 0000000..0b61ec4
--- /dev/null
@@ -0,0 +1,16 @@
+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@
index fba9dc53887751cc41eacb869e1c4ff3d6b30ecf..9efe7d234e6d5b06d7eeaa1c095d092117f03556 100644 (file)
@@ -1,22 +1,14 @@
 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@