Commit 17082d27 authored by Linus Nordberg's avatar Linus Nordberg

Add support for 'make check' and a dummy test.

parent af81fa74
AUTOMAKE_OPTIONS = foreign
SUBDIRS = tests
sbin_PROGRAMS = radsecproxy
bin_PROGRAMS = catgconf
noinst_LIBRARIES = librsp.a
......
......@@ -92,4 +92,7 @@ AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, test "$DOCBOOK2X_MAN" = "yes")
AC_SUBST(TARGET_CFLAGS)
AC_SUBST(TARGET_LDFLAGS)
AX_CHECK_SSL
AC_OUTPUT(Makefile)
AC_OUTPUT([
Makefile
tests/Makefile
])
check_PROGRAMS = t_fticks
AM_CFLAGS = -g -Wall -Werror @TARGET_CFLAGS@
AM_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
LDADD = $(top_builddir)/librsp.a @SSL_LIBS@
TESTS = $(check_PROGRAMS)
#include "../radsecproxy.h"
#include "../fticks.h"
int
main (int argc, char *argv[])
{
uint8_t buf[128];
fticks_hashmac((const uint8_t *) "xyzzy", NULL, sizeof(buf), buf);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment