test: add unit-tests for the crc module
Copied the unit-tests from phosphor-ipmi-blobs. The CRC module there
will be dropped in favor of this one.
Change-Id: I875ec67820218c7b9d1feec8aee84cdbbe84df54
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/test/Makefile.am b/test/Makefile.am
index 05d9b1d..1fa4ced 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -23,3 +23,9 @@
tools_ipmi_error_unittest_SOURCES = tools_ipmi_error_unittest.cpp
tools_ipmi_error_unittest_CPPFLAGS = $(gtest_cppflags)
tools_ipmi_error_unittest_LDADD = $(gtest_ldadd)
+
+check_PROGRAMS += crc_unittest
+crc_unittest_SOURCES = crc_unittest.cpp
+crc_unittest_CPPFLAGS = $(gtest_cppflags)
+crc_unittest_LDADD = $(gtest_ldadd)
+crc_unittest_LDADD += $(top_builddir)/src/ipmiblob/crc.o