Skip to content

Commit c7d6333

Browse files
committed
SSADetector: Added functional tests
1 parent 4640be4 commit c7d6333

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

tests/functional/Makefile.am

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ TESTS=basic.sh \
1616
idpcontent.sh \
1717
bstats.sh \
1818
phists.sh \
19-
wg.sh
19+
wg.sh \
20+
ssadetector.sh
2021

2122
if WITH_QUIC
2223
TESTS+=\
@@ -44,6 +45,7 @@ EXTRA_DIST=common.sh \
4445
phists.sh \
4546
wg.sh \
4647
quic.sh \
48+
ssadetector.sh \
4749
reference/basic \
4850
reference/basicplus \
4951
reference/pstats \
@@ -63,7 +65,8 @@ EXTRA_DIST=common.sh \
6365
reference/bstats \
6466
reference/phists \
6567
reference/wg \
66-
reference/quic
68+
reference/quic \
69+
reference/ssadetector
6770

6871
clean-local:
6972
rm -rf output
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
90.178.247.107,192.168.43.91,49004,64203,0,2019-10-05T15:25:16.735147,2019-10-05T15:25:54.118079,20:39:56:43:58:45,3c:6a:a7:fc:00:67,164,166,10103,54113,0,6,1,30,26
2+
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,uint8 DIR_BIT_FIELD,uint8 PROTOCOL,uint8 SSA_CONF_LEVEL,uint8 TCP_FLAGS,uint8 TCP_FLAGS_REV

tests/functional/ssadetector.sh

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

0 commit comments

Comments
 (0)