From 8ed6e365a83767c8a7e74dc57aeae528c8e65e30 Mon Sep 17 00:00:00 2001 From: kcudnik Date: Wed, 18 Aug 2021 19:15:47 +0200 Subject: [PATCH] Add MACsecAttr tests --- unittest/vslib/Makefile.am | 3 ++- unittest/vslib/TestMACsecAttr.cpp | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 unittest/vslib/TestMACsecAttr.cpp diff --git a/unittest/vslib/Makefile.am b/unittest/vslib/Makefile.am index 3ddd0b57d08c..9939dd012a4f 100644 --- a/unittest/vslib/Makefile.am +++ b/unittest/vslib/Makefile.am @@ -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) diff --git a/unittest/vslib/TestMACsecAttr.cpp b/unittest/vslib/TestMACsecAttr.cpp new file mode 100644 index 000000000000..1caa5d78cfe3 --- /dev/null +++ b/unittest/vslib/TestMACsecAttr.cpp @@ -0,0 +1,15 @@ +#include "MACsecAttr.h" + +#include + +using namespace saivs; + +TEST(MACsecAttr, ctr) +{ + MACsecAttr sec; +} + +TEST(MACsecAttr, dtr) +{ + MACsecAttr sec; +}