summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-09-19 01:43:02 +0200
committerBruno Haible <bruno@clisp.org>2021-09-19 01:50:19 +0200
commitc63728b59f5916bb62e0053d8211f4d07dbaa771 (patch)
tree3339fa70cbe184791d3fa68b93632645253c5da6
parent81ca30b0dedb08c6ef54c308cd264bc234a060c4 (diff)
downloadgnulib-c63728b59f5916bb62e0053d8211f4d07dbaa771.tar.gz
sm3-buffer tests: New module.
* tests/test-sm3-buffer.c: Renamed from tests/test-sm3.c. * modules/crypto/sm3-buffer-tests: Renamed from modules/crypto/sm3-tests. Test tests/test-sm3-buffer.c instead of tests/test-sm3.c.
-rw-r--r--ChangeLog6
-rw-r--r--modules/crypto/sm3-buffer-tests11
-rw-r--r--modules/crypto/sm3-tests11
-rw-r--r--tests/test-sm3-buffer.c (renamed from tests/test-sm3.c)0
4 files changed, 17 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 074bd3caf7..154678293e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2021-09-18 Bruno Haible <bruno@clisp.org>
+ sm3-buffer tests: New module.
+ * tests/test-sm3-buffer.c: Renamed from tests/test-sm3.c.
+ * modules/crypto/sm3-buffer-tests: Renamed from
+ modules/crypto/sm3-tests. Test tests/test-sm3-buffer.c instead of
+ tests/test-sm3.c.
+
sm3-buffer: New module.
* lib/sm3-stream.c: New file, extracted from lib/sm3.c.
* lib/sm3.c: Don't include stdlib.h, unlocked-io.h.
diff --git a/modules/crypto/sm3-buffer-tests b/modules/crypto/sm3-buffer-tests
new file mode 100644
index 0000000000..983a22d46d
--- /dev/null
+++ b/modules/crypto/sm3-buffer-tests
@@ -0,0 +1,11 @@
+Files:
+tests/test-sm3-buffer.c
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-sm3-buffer
+check_PROGRAMS += test-sm3-buffer
+test_sm3_buffer_LDADD = $(LDADD) @LIB_CRYPTO@
diff --git a/modules/crypto/sm3-tests b/modules/crypto/sm3-tests
deleted file mode 100644
index fac6ca6c21..0000000000
--- a/modules/crypto/sm3-tests
+++ /dev/null
@@ -1,11 +0,0 @@
-Files:
-tests/test-sm3.c
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-sm3
-check_PROGRAMS += test-sm3
-test_sm3_LDADD = $(LDADD) @LIB_CRYPTO@
diff --git a/tests/test-sm3.c b/tests/test-sm3-buffer.c
index df4476f150..df4476f150 100644
--- a/tests/test-sm3.c
+++ b/tests/test-sm3-buffer.c