test_step_failed "exit status of $DUT: $RETURNVALUE"
# part of the Prerequisite checks
# probably wrong interface, output the possible interfaces
- $TETHEREAL -D
+ $TSHARK -D
return
fi
cat ./testout.txt
# part of the Prerequisite checks
# probably wrong interface, output the possible interfaces
- $TETHEREAL -D
+ $TSHARK -D
test_step_failed "No or not enough traffic captured. Probably the wrong interface: $TRAFFIC_CAPTURE_IFACE!"
fi
}
RETURNVALUE=$?
if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
test_step_failed "exit status of $DUT: $RETURNVALUE"
- $TETHEREAL -D
+ $TSHARK -D
return
fi
echo
cat ./testout.txt
cat ./testout2.txt
- $TETHEREAL -D
+ $TSHARK -D
test_step_failed "No or not enough traffic captured. Probably the wrong interface: $TRAFFIC_CAPTURE_IFACE!"
fi
}
cat -B dhcp.pcap | $DUT -r - -w ./testout.pcap 2>./testout.txt
RETURNVALUE=$?
if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
- $TETHEREAL -D
+ $TSHARK -D
echo
cat ./testout.txt
test_step_failed "exit status of $DUT: $RETURNVALUE"
echo
cat ./testout.txt
cat ./testout2.txt
- $TETHEREAL -D
+ $TSHARK -D
test_step_failed "No or not enough traffic captured. Probably the wrong interface: $TRAFFIC_CAPTURE_IFACE!"
fi
}
test_step_add "Input file" io_step_input_file
}
-tethereal_io_suite() {
- DUT=$TETHEREAL
+tshark_io_suite() {
+ DUT=$TSHARK
test_step_add "Input file" io_step_input_file
test_step_add "Output piping" io_step_output_piping
#test_step_add "Piping" io_step_input_piping
io_suite() {
test_step_set_pre io_cleanup_step
test_step_set_post io_cleanup_step
- test_suite_add "Tethereal file I/O" tethereal_io_suite
+ test_suite_add "TShark file I/O" tshark_io_suite
#test_suite_add "Ethereal file I/O" ethereal_io_suite
#test_suite_add "Dumpcap file I/O" dumpcap_io_suite
}