File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ tests_SOURCES = \
1818 TestZeroMQChannel.cpp \
1919 TestSwitchContainer.cpp \
2020 TestSwitchConfigContainer.cpp \
21- TestSkipRecordAttrContainer.cpp
21+ TestSkipRecordAttrContainer.cpp \
22+ TestServerConfig.cpp
2223
2324tests_CXXFLAGS = $(DBGFLAGS ) $(AM_CXXFLAGS ) $(CXXFLAGS_COMMON )
2425tests_LDADD = $(LDADD_GTEST ) $(top_srcdir ) /lib/libSaiRedis.a -lhiredis -lswsscommon -lpthread -L$(top_srcdir ) /meta/.libs -lsaimetadata -lsaimeta -lzmq $(CODE_COVERAGE_LIBS )
Original file line number Diff line number Diff line change 1+ #include " ServerConfig.h"
2+
3+ #include < gtest/gtest.h>
4+
5+ #include < memory>
6+
7+ using namespace sairedis ;
8+
9+ TEST (ServerConfig, loadFromFile)
10+ {
11+ EXPECT_NE (ServerConfig::loadFromFile (" /not_existing" ), nullptr );
12+
13+ EXPECT_NE (ServerConfig::loadFromFile (" files/server_config_ok.json" ), nullptr );
14+ EXPECT_NE (ServerConfig::loadFromFile (" files/server_config_bad.json" ), nullptr );
15+ }
You can’t perform that action at this time.
0 commit comments