AM_CPPFLAGS = $(ATF_CFLAGS) -I$(top_srcdir)/includes
-ATF_TESTS = alloc_unittest
+ATF_TESTS = alloc_unittest hash_unittest
check_PROGRAMS = $(ATF_TESTS)
../../omapip/libomapi.a ../../bind/lib/libdns.a \
../../bind/lib/libisc.a
+
+hash_unittest_SOURCES = hash_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
+hash_unittest_LDADD = $(ATF_LDFLAGS)
+hash_unittest_LDADD += ../libdhcp.a \
+ ../../omapip/libomapi.a ../../bind/lib/libdns.a \
+ ../../bind/lib/libisc.a
+
check: $(ATF_TESTS)
atf-run | atf-report
--- /dev/null
+/*
+ * Copyright (c) 2012 by Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Internet Systems Consortium, Inc.
+ * 950 Charter Street
+ * Redwood City, CA 94063
+ * <info@isc.org>
+ * https://www.isc.org/
+ *
+ */
+
+#include "config.h"
+#include <atf-c.h>
+#include <omapip/omapip_p.h>
+
+
+ATF_TC(hash_basic);
+
+ATF_TC_HEAD(hash_basic, tc) {
+ atf_tc_set_md_var(tc, "descr", "Basic hash functions tests");
+}
+
+ATF_TC_BODY(hash_basic, tc) {
+
+}
+
+ATF_TP_ADD_TCS(tp) {
+ ATF_TP_ADD_TC(tp, hash_basic);
+
+ return (atf_no_error());
+}