unit tests configure

This commit is contained in:
toddouska 2011-12-14 09:20:46 -08:00
parent 8d514b23b6
commit 9307d4a40d
5 changed files with 26 additions and 1 deletions

1
.gitignore vendored
View File

@ -31,6 +31,7 @@ examples/server/server
snifftest snifftest
output output
testsuite/testsuite testsuite/testsuite
tests/unit
testsuite/*.der testsuite/*.der
testsuite/*.pem testsuite/*.pem
testsuite/*.raw testsuite/*.raw

View File

@ -51,6 +51,7 @@ include examples/server/include.am
include examples/echoclient/include.am include examples/echoclient/include.am
include examples/echoserver/include.am include examples/echoserver/include.am
include testsuite/include.am include testsuite/include.am
include tests/include.am
include sslSniffer/sslSnifferTest/include.am include sslSniffer/sslSnifferTest/include.am
TESTS += $(check_PROGRAMS) TESTS += $(check_PROGRAMS)

View File

@ -6,7 +6,7 @@
# #
# #
AC_INIT([cyassl],[2.0.3],[http://www.yassl.com]) AC_INIT([cyassl],[2.0.4],[http://www.yassl.com])
AC_CONFIG_AUX_DIR(config) AC_CONFIG_AUX_DIR(config)

14
tests/include.am Normal file
View File

@ -0,0 +1,14 @@
# vim:ft=automake
# included from Top Level Makefile.am
# All paths should be given relative to the root
check_PROGRAMS += tests/unit
noinst_PROGRAMS += tests/unit
tests_unit_SOURCES = \
tests/unit.c \
tests/api.c \
tests/suites.c
tests_unit_CFLAGS = $(AM_CFLAGS)
tests_unit_LDADD = src/libcyassl.la
tests_unit_DEPENDENCIES = src/libcyassl.la

9
tests/unit.c Normal file
View File

@ -0,0 +1,9 @@
/* unit.c unit tests driver */
#include <stdio.h>
int main(int argc, char** argv)
{
printf("hello unit tests\n");
return 0;
}