Skip to content

Commit

Permalink
Add MACsecAttr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik committed Aug 23, 2021
1 parent b14b598 commit 8ed6e36
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unittest/vslib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ tests_SOURCES = main.cpp \
TestSaiAttrWrap.cpp \
TestLaneMap.cpp \
TestLaneMapContainer.cpp \
TestLaneMapFileParser.cpp
TestLaneMapFileParser.cpp \
TestMACsecAttr.cpp

tests_CXXFLAGS = $(DBGFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS_COMMON)
tests_LDADD = $(LDADD_GTEST) $(top_srcdir)/vslib/libSaiVS.a -lhiredis -lswsscommon -lpthread -L$(top_srcdir)/meta/.libs -lsaimetadata -lsaimeta -lzmq $(CODE_COVERAGE_LIBS)
Expand Down
15 changes: 15 additions & 0 deletions unittest/vslib/TestMACsecAttr.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "MACsecAttr.h"

#include <gtest/gtest.h>

using namespace saivs;

TEST(MACsecAttr, ctr)
{
MACsecAttr sec;
}

TEST(MACsecAttr, dtr)
{
MACsecAttr sec;
}

0 comments on commit 8ed6e36

Please sign in to comment.