Invoke callbacks under make check
Add a simple test that invokes all the callbacks. There
are no assertions but there is some value in ensuring
the application will at least run without crashing.
Change-Id: I117bff261202ae7e642094a659a954328351eac1
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/test/callbacktest.cpp b/src/test/callbacktest.cpp
new file mode 100644
index 0000000..1152e12
--- /dev/null
+++ b/src/test/callbacktest.cpp
@@ -0,0 +1,15 @@
+#include <gtest/gtest.h>
+
+#include "generated.hpp"
+
+using namespace phosphor::dbus::monitoring;
+
+TEST(JournalTest, Test)
+{
+ // No assertions here, but the least we can do
+ // make sure the program runs without crashing...
+ for (auto& c : ConfigPropertyCallbacks::get())
+ {
+ (*c)();
+ }
+}