From 5458401020459af0cfdf51c283d792c4c50b484c Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 14 Dec 2011 10:55:19 -0800 Subject: [PATCH] Added MD4, MD5, SHA hash tests --- tests/include.am | 3 ++- tests/unit.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/include.am b/tests/include.am index 19d107240..ea35063b1 100644 --- a/tests/include.am +++ b/tests/include.am @@ -8,7 +8,8 @@ noinst_PROGRAMS += tests/unit tests_unit_SOURCES = \ tests/unit.c \ tests/api.c \ - tests/suites.c + tests/suites.c \ + tests/hash.c tests_unit_CFLAGS = $(AM_CFLAGS) tests_unit_LDADD = src/libcyassl.la tests_unit_DEPENDENCIES = src/libcyassl.la diff --git a/tests/unit.c b/tests/unit.c index 42f5377a7..0d81f113d 100644 --- a/tests/unit.c +++ b/tests/unit.c @@ -9,5 +9,8 @@ int main(int argc, char** argv) if (ApiTest() != 0) printf("api test failed\n"); + if (HashTest() != 0) + printf("hash test failed\n"); + return 0; }