Skip to content

Commit baba9a4

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
OutputConfigurationParser - Add tests
1 parent 5920adc commit baba9a4

File tree

13 files changed

+251
-0
lines changed

13 files changed

+251
-0
lines changed

tests/unit/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_subdirectory(outputFieldConfigurationParser)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
add_executable(testOutputFieldConfigurationParser
2+
testOutputFieldConfigurationParser.cpp
3+
)
4+
5+
target_include_directories(testOutputFieldConfigurationParser PUBLIC
6+
${CMAKE_SOURCE_DIR}/include
7+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/processPlugin
8+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/outputPlugin
9+
${CMAKE_BINARY_DIR}/src
10+
${adaptmon_SOURCE_DIR}/lib/include/public/
11+
)
12+
13+
target_link_libraries(testOutputFieldConfigurationParser PRIVATE
14+
GTest::gtest
15+
GTest::gtest_main
16+
ipfixprobe-core
17+
)
18+
19+
add_test(NAME testOutputFieldConfigurationParser COMMAND testOutputFieldConfigurationParser)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fields: '
2+
*,
3+
quic,
4+
tls
5+
'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fields: '
2+
tls,
3+
quic,
4+
'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fields: '
2+
*
3+
'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fields: ''
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fields: '
2+
3+
'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fields: '
2+
*,
3+
-*,
4+
'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fields: '
2+
*,
3+
-tls,
4+
-quic
5+
'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fields: '
2+
*,
3+
-tls.TLS_F1,
4+
-tls.TLS_F2,
5+
-quic.QUIC_F1,
6+
-quic.QUIC_F2
7+
'

0 commit comments

Comments
 (0)