summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am7
-rw-r--r--tests/t_fticks.c11
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
new file mode 100644
index 0000000..9c0ce94
--- /dev/null
+++ b/tests/Makefile.am
@@ -0,0 +1,7 @@
+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)
diff --git a/tests/t_fticks.c b/tests/t_fticks.c
new file mode 100644
index 0000000..71a015e
--- /dev/null
+++ b/tests/t_fticks.c
@@ -0,0 +1,11 @@
+#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;
+}