Commit 58725df 1 parent 6842d92 commit 58725df Copy full SHA for 58725df
File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ tests_SOURCES = \
18
18
TestZeroMQChannel.cpp \
19
19
TestSwitchContainer.cpp \
20
20
TestSwitchConfigContainer.cpp \
21
- TestSkipRecordAttrContainer.cpp
21
+ TestSkipRecordAttrContainer.cpp \
22
+ TestServerConfig.cpp
22
23
23
24
tests_CXXFLAGS = $(DBGFLAGS ) $(AM_CXXFLAGS ) $(CXXFLAGS_COMMON )
24
25
tests_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