Skip to content

Commit bacc7c0

Browse files
committed
VLAN: Update tests
1 parent 005d7ed commit bacc7c0

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,16 @@ ipfixprobe_stats
9999
ipfixprobe-*.tar.gz
100100

101101
# Test Outputs
102-
tests/*.log
103-
tests/*.trs
102+
tests/*/*.log
103+
tests/*/*.trs
104104
tests/output/
105+
tests/functional/output
106+
# Unit test binaries
107+
tests/unit/byte_utils
108+
tests/unit/flowifc
109+
tests/unit/options
110+
tests/unit/unirec
111+
tests/unit/utils
105112

106113
# Mac Finder metafile
107114
**/.DS_Store

pcaps/vlan.pcap

1.41 KB
Binary file not shown.

tests/functional/Makefile.am

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ TESTS=basic.sh \
1717
bstats.sh \
1818
phists.sh \
1919
wg.sh \
20-
ssadetector.sh
20+
ssadetector.sh \
21+
vlan.sh
2122

2223
if WITH_QUIC
2324
TESTS+=\
@@ -46,6 +47,7 @@ EXTRA_DIST=common.sh \
4647
wg.sh \
4748
quic.sh \
4849
ssadetector.sh \
50+
vlan.sh \
4951
reference/basic \
5052
reference/basicplus \
5153
reference/pstats \
@@ -66,7 +68,8 @@ EXTRA_DIST=common.sh \
6668
reference/phists \
6769
reference/wg \
6870
reference/quic \
69-
reference/ssadetector
71+
reference/ssadetector \
72+
reference/vlan
7073

7174
clean-local:
7275
rm -rf output

tests/functional/reference/vlan

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
192.168.170.20,192.168.170.8,56,284,0,2000-01-01T07:47:50.501268,2000-01-01T07:47:51.333401,00:c0:9f:32:41:8c,00:e0:18:b1:0c:ad,1,1,53,32795,123,0,17,0,0
2+
192.168.170.20,192.168.170.8,56,284,0,2000-01-01T07:47:52.501268,2000-01-01T07:47:53.333401,00:c0:9f:32:41:8c,00:e0:18:b1:0c:ad,1,1,53,32795,0,0,17,0,0
3+
192.168.170.20,192.168.170.8,56,284,0,2000-01-01T07:47:52.501268,2000-01-01T07:47:53.333401,00:c0:9f:32:41:8c,00:e0:18:b1:0c:ad,1,1,53,32795,150,0,17,0,0
4+
ipaddr DST_IP,ipaddr SRC_IP,uint64 BYTES,uint64 BYTES_REV,uint64 LINK_BIT_FIELD,time TIME_FIRST,time TIME_LAST,macaddr DST_MAC,macaddr SRC_MAC,uint32 PACKETS,uint32 PACKETS_REV,uint16 DST_PORT,uint16 SRC_PORT,uint16 VLAN_ID,uint8 DIR_BIT_FIELD,uint8 PROTOCOL,uint8 TCP_FLAGS,uint8 TCP_FLAGS_REV

tests/functional/vlan.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
test -z "$srcdir" && export srcdir=.
4+
5+
. $srcdir/common.sh
6+
7+
run_plugin_test vlan "$pcap_dir/vlan.pcap"

0 commit comments

Comments
 (0)