>From 9dbf2816fd77fbd502b58d03f9f67e4894f8d78f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 19 Sep 2021 01:42:20 +0200 Subject: [PATCH 12/14] 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. --- ChangeLog | 8 ++++++++ modules/crypto/sha512-buffer-tests | 16 ++++++++++++++++ modules/crypto/sha512-tests | 16 ++++------------ tests/{test-sha512.c => test-sha512-stream.c} | 0 4 files changed, 28 insertions(+), 12 deletions(-) create mode 100644 modules/crypto/sha512-buffer-tests rename tests/{test-sha512.c => test-sha512-stream.c} (100%) diff --git a/ChangeLog b/ChangeLog index f3e77f5e4..398c8cfe7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2021-09-18 Bruno Haible + 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 index 000000000..0b61ec444 --- /dev/null +++ b/modules/crypto/sha512-buffer-tests @@ -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@ diff --git a/modules/crypto/sha512-tests b/modules/crypto/sha512-tests index fba9dc538..9efe7d234 100644 --- a/modules/crypto/sha512-tests +++ b/modules/crypto/sha512-tests @@ -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@ diff --git a/tests/test-sha512.c b/tests/test-sha512-stream.c similarity index 100% rename from tests/test-sha512.c rename to tests/test-sha512-stream.c -- 2.25.1