1#! /usr/bin/perl -w 2# MD5: 54436bc7690728a9154a04f047ae1231 3# TEST: ./rwstats --python-file=../../tests/pysilk-plugin.py --fields=lower_port_simple --values=large_packet_flows,largest_packets,smallest_packets --count=5 --no-percent ../../tests/data.rwf 4 5use strict; 6use SiLKTests; 7 8my $rwstats = check_silk_app('rwstats'); 9my %file; 10$file{data} = get_data_or_exit77('data'); 11$file{pysilk_plugin} = get_data_or_exit77('pysilk_plugin'); 12$ENV{PYTHONPATH} = $SiLKTests::testsdir.((defined $ENV{PYTHONPATH}) ? ":$ENV{PYTHONPATH}" : ""); 13add_plugin_dirs('/src/pysilk'); 14 15check_python_plugin($rwstats); 16my $cmd = "$rwstats --python-file=$file{pysilk_plugin} --fields=lower_port_simple --values=large_packet_flows,largest_packets,smallest_packets --count=5 --no-percent $file{data}"; 17my $md5 = "54436bc7690728a9154a04f047ae1231"; 18 19check_md5_output($md5, $cmd); 20