5 Usage: test_traffic_summary.sh
14 .
`dirname $0`/..
/..
/testprogs
/blackbox
/subunit.sh
16 script_dir
=`dirname $0`/..
17 input
="$script_dir/testdata/traffic_summary.pdml"
18 expected
="$script_dir/testdata/traffic_summary.expected"
19 output
="$(mktemp $TMPDIR/traffic_summary.XXXXXXXXXXX)"
20 ts
="$script_dir/traffic_summary.pl"
25 if [ "$?" != "0" ]; then
29 diff $output $expected
30 if [ "$?" != "0" ]; then
35 # Check the required perl modules for traffic_summary
36 # skip the tests if they are not installed
38 if [ "$?" != "0" ]; then
39 subunit_start_test
"traffic_summary"
40 subunit_skip_test
"traffic_summary" <<EOF
41 perl module XML::Twig not installed
44 testit
"traffic_summary" traffic_summary