diff options
author | Bruno Haible <bruno@clisp.org> | 2021-09-19 01:37:51 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-09-19 01:38:06 +0200 |
commit | 517b9f77086d38cb1409194576cab40fb3f714d5 (patch) | |
tree | 61ce223aa24da572fe9e1589a2de012971e54564 /modules | |
parent | ecf145d277937c22f28294ef573f5a2cfb58fa30 (diff) | |
download | gnulib-517b9f77086d38cb1409194576cab40fb3f714d5.tar.gz |
sha1-buffer tests: New module.
* tests/test-sha1-buffer.c: New file, based on tests/test-sha1.c.
* tests/test-sha1-stream.c: Renamed from tests/test-sha1.c.
(main): Remove sha1-buffer tests.
* modules/crypto/sha1-buffer-tests: New file, based on
modules/crypto/sha1-tests.
* modules/crypto/sha1-tests: Remove tests that are now in
modules/crypto/sha1-buffer-tests. Test tests/test-sha1-stream.c instead
of tests/test-sha1.c.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/crypto/sha1-buffer-tests | 18 | ||||
-rw-r--r-- | modules/crypto/sha1-tests | 14 |
2 files changed, 22 insertions, 10 deletions
diff --git a/modules/crypto/sha1-buffer-tests b/modules/crypto/sha1-buffer-tests new file mode 100644 index 0000000000..7420378c82 --- /dev/null +++ b/modules/crypto/sha1-buffer-tests @@ -0,0 +1,18 @@ +Files: +tests/test-sha1-buffer.c +tests/bench-sha1.c +tests/bench-digest.h + +Depends-on: +c99 +getrusage +gettimeofday + +configure.ac: + +Makefile.am: +TESTS += test-sha1-buffer +check_PROGRAMS += test-sha1-buffer +noinst_PROGRAMS += bench-sha1 +test_sha1_buffer_LDADD = $(LDADD) @LIB_CRYPTO@ +bench_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ diff --git a/modules/crypto/sha1-tests b/modules/crypto/sha1-tests index 366e4aade7..b774ffcee5 100644 --- a/modules/crypto/sha1-tests +++ b/modules/crypto/sha1-tests @@ -1,20 +1,14 @@ Files: -tests/test-sha1.c +tests/test-sha1-stream.c tests/test-digest.h -tests/bench-sha1.c -tests/bench-digest.h tests/macros.h Depends-on: c99 -getrusage -gettimeofday configure.ac: Makefile.am: -TESTS += test-sha1 -check_PROGRAMS += test-sha1 -noinst_PROGRAMS += bench-sha1 -test_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ -bench_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ +TESTS += test-sha1-stream +check_PROGRAMS += test-sha1-stream +test_sha1_stream_LDADD = $(LDADD) @LIB_CRYPTO@ |