From: levill_r <levill_r@4aad255d-cdde-0310-9447-f3009e2ae8c0>
* libmd5/results: New.
* libmd5/Makefile.am (EXTRA_DIST): Add results.
(check-local): New target.
git-svn-id:
https://svn.lrde.epita.fr/svn/oln/trunk@4658
4aad255d-cdde-0310-9447-f3009e2ae8c0
---
dynamic-use-of-static-c++/ChangeLog | 8 ++++++++
dynamic-use-of-static-c++/libmd5/Makefile.am | 5 +++++
dynamic-use-of-static-c++/libmd5/results | 8 ++++++++
3 files changed, 21 insertions(+), 0 deletions(-)
create mode 100644 dynamic-use-of-static-c++/libmd5/results
diff --git a/dynamic-use-of-static-c++/ChangeLog b/dynamic-use-of-static-c++/ChangeLog
index a9dec35..eeaff70 100644
--- a/dynamic-use-of-static-c++/ChangeLog
+++ b/dynamic-use-of-static-c++/ChangeLog
@@ -1,5 +1,13 @@
2009-10-20 Roland Levillain <roland(a)lrde.epita.fr>
+ Exercise libmd5.
+
+ * libmd5/results: New.
+ * libmd5/Makefile.am (EXTRA_DIST): Add results.
+ (check-local): New target.
+
+2009-10-20 Roland Levillain <roland(a)lrde.epita.fr>
+
Have libmd5 compile.
* libmd5/md5.hh, libmd5/driver.cc: Use modern C++ header names.
diff --git a/dynamic-use-of-static-c++/libmd5/Makefile.am
b/dynamic-use-of-static-c++/libmd5/Makefile.am
index 300b0ba..a445800 100644
--- a/dynamic-use-of-static-c++/libmd5/Makefile.am
+++ b/dynamic-use-of-static-c++/libmd5/Makefile.am
@@ -31,3 +31,8 @@ md5_SOURCES = driver.cc
md5_LDADD = libmd5.la
EXTRA_DIST = README test-suite
+
+# Test.
+EXTRA_DIST += results
+check-local:
+ ./md5$(EXEEXT) -x | cmp $(srcdir)/results -
diff --git a/dynamic-use-of-static-c++/libmd5/results
b/dynamic-use-of-static-c++/libmd5/results
new file mode 100644
index 0000000..971f4cf
--- /dev/null
+++ b/dynamic-use-of-static-c++/libmd5/results
@@ -0,0 +1,8 @@
+MD5 test suite:
+MD5 ("") = d41d8cd98f00b204e9800998ecf8427e
+MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661
+MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72
+MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0
+MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b
+MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") =
d174ab98d277d9f5a5611c2c9f419d9f
+MD5
("12345678901234567890123456789012345678901234567890123456789012345678901234567890")
= 57edf4a22be3c955ac49da2e2107b67a
--
1.6.5