Skip to content

Commit

Permalink
flex counter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shiraez committed Dec 12, 2024
1 parent df39c57 commit 3b4c917
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions unittest/syncd/TestFlexCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,18 @@ TEST(FlexCounter, queryCounterCapability)
{},
counterVerifyFunc,
false);

testAddRemoveCounter(
{sai_object_id_t(0x12000000000000)},
SAI_OBJECT_TYPE_POLICER,
POLICER_COUNTER_ID_LIST,
{"SAI_POLICER_STAT_PACKETS", "SAI_POLICER_STAT_ATTR_BYTES",
"SAI_POLICER_STAT_GREEN_PACKETS", "SAI_POLICER_STAT_GREEN_BYTES",
"SAI_POLICER_STAT_YELLOW_PACKETS", "SAI_POLICER_STAT_YELLOW_BYTES",
"SAI_POLICER_STAT_RED_PACKETS", "SAI_POLICER_STAT_RED_BYTES"},
{"100", "200", "300", "400", "500", "600", "700", "800"},
counterVerifyFunc,
false);
}

TEST(FlexCounter, noSupportedCounters)
Expand Down

0 comments on commit 3b4c917

Please sign in to comment.