Load the associations definitions

Parse the JSON file to load in the _associations
data structures.  Any failures will cause an exception
to be thrown that will crash the app.

The JSON looks like:

[
    {
        "path": "The relative path of the inventory object to create the
                 org.openbmc.Associations interface on."
        "endpoints":
        [
            {
                "types":
                {
                    "fType": "The forward association type."
                    "rType": "The reverse association type."
                },
                "paths":
                [
                    "The list of association endpoints for this
                     inventory path and association type."
                ]
            }
        ]
    }
]

Change-Id: I098fdc607f0c3ab2861f9b33e3e0d46e4989bd7a
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/test/Makefile.am b/test/Makefile.am
index 393ff0a..a53747b 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -39,6 +39,18 @@
 manager_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS}
 check_PROGRAMS += manager-test
 
+associations_test_SOURCES = associations_test.cpp
+associations_test_CFLAGS = \
+	${GTEST_CFLAGS} ${GMOCK_CFLAGS} $(SDBUSPLUS_CFLAGS) \
+	$(PHOSPHOR_DBUS_INTERACES_CFLAGS)
+associations_test_LDADD = \
+	${GTEST_LIBS} ${GMOCK_LIBS} ${SDBUSPLUS_LIBS} -lstdc++fs \
+	$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
+	$(top_builddir)/association_manager.o
+
+associations_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS}
+check_PROGRAMS += associations-test
+
 extra_yamldir=$(top_srcdir)/example/extra_interfaces.d
 
 phosphor_inventory_test_SOURCES = test.cpp