From 12ea1c594ea60cdb899f384d034270b83755919c Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Thu, 13 Dec 2018 12:39:06 -0500 Subject: manager: Add build testcase Add a basic compile time test that ensures manager.hpp can build on its own. Change-Id: Id10cdd8135fd4a41ebf2a76bc1e0da2d1916c6fa Signed-off-by: Brad Bishop --- test/Makefile.am | 6 ++++++ test/manager_test.cpp | 1 + 2 files changed, 7 insertions(+) create mode 100644 test/manager_test.cpp diff --git a/test/Makefile.am b/test/Makefile.am index f213b4f..36f2b4f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -33,6 +33,12 @@ interface_ops_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} interface_ops_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} check_PROGRAMS += interface-ops-test +manager_test_SOURCES = manager_test.cpp +manager_test_CFLAGS = ${GTEST_CFLAGS} ${GMOCK_CFLAGS} +manager_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} +manager_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} +check_PROGRAMS += manager-test + extra_yamldir=$(top_srcdir)/example/extra_interfaces.d phosphor_inventory_test_SOURCES = test.cpp diff --git a/test/manager_test.cpp b/test/manager_test.cpp new file mode 100644 index 0000000..712e9cf --- /dev/null +++ b/test/manager_test.cpp @@ -0,0 +1 @@ +#include "../manager.hpp" -- cgit v1.2.1