diff --git a/tests/include.am b/tests/include.am index 1801fe3a1..9cd40bd6c 100644 --- a/tests/include.am +++ b/tests/include.am @@ -16,4 +16,4 @@ tests_unit_CFLAGS = -DNO_MAIN_DRIVER $(AM_CFLAGS) $(PTHREAD_CFLAGS) tests_unit_LDADD = src/libcyassl.la $(PTHREAD_LIBS) tests_unit_DEPENDENCIES = src/libcyassl.la EXTRA_DIST += tests/unit.h -EXTRA_DIST += tests/test.conf tests/test-openssl.conf +EXTRA_DIST += tests/test.conf tests/test-openssl.conf tests/test-hc128.conf diff --git a/tests/suites.c b/tests/suites.c index 7726f36ef..34dea9e80 100644 --- a/tests/suites.c +++ b/tests/suites.c @@ -247,6 +247,17 @@ int SuiteTest(void) } #endif +#ifdef HAVE_HC128 + /* add hc128 extra suites */ + strcpy(argv0[1], "tests/test-hc128.conf"); + printf("starting hc128 extra cipher suite tests\n"); + test_harness(&args); + if (args.return_code != 0) { + printf("error from script %d\n", args.return_code); + exit(EXIT_FAILURE); + } +#endif + printf(" End Cipher Suite Tests\n"); return args.return_code; diff --git a/tests/test-hc128.conf b/tests/test-hc128.conf new file mode 100644 index 000000000..feb0b1228 --- /dev/null +++ b/tests/test-hc128.conf @@ -0,0 +1,48 @@ +# server TLSv1 HC128-SHA +-v 1 +-l HC128-SHA + +# client TLSv1 HC128-SHA +-v 1 +-l HC128-SHA + +# server TLSv1 HC128-MD5 +-v 1 +-l HC128-MD5 + +# client TLSv1 HC128-MD5 +-v 1 +-l HC128-MD5 + +# server TLSv1.1 HC128-SHA +-v 2 +-l HC128-SHA + +# client TLSv1.1 HC128-SHA +-v 2 +-l HC128-SHA + +# server TLSv1.1 HC128-MD5 +-v 2 +-l HC128-MD5 + +# client TLSv1.1 HC128-MD5 +-v 2 +-l HC128-MD5 + +# server TLSv1.2 HC128-SHA +-v 3 +-l HC128-SHA + +# client TLSv1.2 HC128-SHA +-v 3 +-l HC128-SHA + +# server TLSv1.2 HC128-MD5 +-v 3 +-l HC128-MD5 + +# client TLSv1.2 HC128-MD5 +-v 3 +-l HC128-MD5 +