summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2019-06-20 10:45:44 -0400
committerThomas Markwalder <tmark@isc.org>2019-06-20 10:45:44 -0400
commit0bb4f37335d4d8db34fd31f768a6326c19fc3999 (patch)
treecb44a4cf5d7ec27444efac8c8ae4fea3a963ec2a
parent4584b794bed3b54df1b065db165e0f01696670d1 (diff)
downloadisc-dhcp-0bb4f37335d4d8db34fd31f768a6326c19fc3999.tar.gz
[v4_1_esv_r15_pl] Added unit tests for CVE patches
common/tests/Makefile.am common/tests/option_unittest.c
-rw-r--r--common/tests/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/tests/Makefile.am b/common/tests/Makefile.am
index 107a9295..cc8f42f5 100644
--- a/common/tests/Makefile.am
+++ b/common/tests/Makefile.am
@@ -8,7 +8,7 @@ ATF_TESTS =
if HAVE_ATF
-ATF_TESTS += alloc_unittest ns_name_unittest
+ATF_TESTS += alloc_unittest ns_name_unittest option_unittest
alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
alloc_unittest_LDADD = $(ATF_LDFLAGS)
@@ -20,6 +20,11 @@ ns_name_unittest_LDADD = $(ATF_LDFLAGS)
ns_name_unittest_LDADD += ../libdhcp.a \
../../omapip/libomapi.a ../../dst/libdst.a ../../minires/libres.a
+option_unittest_SOURCES = option_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
+option_unittest_LDADD = $(ATF_LDFLAGS)
+option_unittest_LDADD += ../libdhcp.a \
+ ../../omapip/libomapi.a ../../dst/libdst.a ../../minires/libres.a
+
check: $(ATF_TESTS)
sh ${top_srcdir}/tests/unittest.sh