ethereal to wireshark conversion

svn path=/trunk/; revision=18495
This commit is contained in:
Ronnie Sahlberg 2006-06-17 11:49:03 +00:00
parent 85f49f1d49
commit 25c3f0a107
4 changed files with 10 additions and 10 deletions

View File

@ -6,14 +6,14 @@ What is it?
-----------
This is basically a collection of bash scripts to test the command line options of:
- Ethereal
- Wireshark
- TShark
- Dumpcap
Motivation
----------
The command line options of Ethereal and the companion command line tools are
The command line options of Wireshark and the companion command line tools are
numerous. This makes it hard to find newly introduced bugs doing manual testing
(try and error) with source code changes.
@ -38,7 +38,7 @@ Prerequisites
What you'll need (to do):
- THE LATEST DEVELOPER BUILDS (the 0.10.13 release won't work)!
- obviously, compile the programs (ethereal, ...) to be tested
- obviously, compile the programs (wireshark, ...) to be tested
- have a bash (cygwin should do well)
- you'll need a network interface with some network traffic
(so you can run the capture tests)

View File

@ -27,7 +27,7 @@
ETH_BIN_PATH=../Debug_GTK2
# Tweak the following to your liking.
WIRESHARK=$ETH_BIN_PATH/ethereal
WIRESHARK=$ETH_BIN_PATH/wireshark
TSHARK=$ETH_BIN_PATH/tshark
CAPINFOS=$ETH_BIN_PATH/capinfos
DUMPCAP=$ETH_BIN_PATH/dumpcap

View File

@ -185,13 +185,13 @@ capture_step_snapshot() {
fi
}
ethereal_capture_suite() {
wireshark_capture_suite() {
# Q: quit after cap, k: start capture immediately
DUT="$WIRESHARK -Q -k"
test_step_add "Capture 10 packets" capture_step_10packets
# piping to stdout doesn't work with Ethereal and capturing!
# piping to stdout doesn't work with Wireshark and capturing!
#test_step_add "Capture 10 packets using stdout: -w -" capture_step_10packets_stdout
# read filter doesn't work with Ethereal and capturing!
# read filter doesn't work with Wireshark and capturing!
#test_step_add "Capture read filter (${TRAFFIC_CAPTURE_DURATION}s)" capture_step_read_filter
test_step_add "Capture snapshot length 68 bytes (${TRAFFIC_CAPTURE_DURATION}s)" capture_step_snapshot
}
@ -226,6 +226,6 @@ capture_suite() {
test_step_set_post capture_cleanup_step
test_remark_add "Capture - need some traffic on interface: \"$TRAFFIC_CAPTURE_IFACE\""
test_suite_add "TShark capture" tshark_capture_suite
test_suite_add "Ethereal capture" ethereal_capture_suite
test_suite_add "Wireshark capture" wireshark_capture_suite
test_suite_add "Dumpcap capture" dumpcap_capture_suite
}

View File

@ -125,7 +125,7 @@ io_step_input_piping() {
fi
}
ethereal_io_suite() {
wireshark_io_suite() {
# Q: quit after cap, k: start capture immediately
DUT="$WIRESHARK"
test_step_add "Input file" io_step_input_file
@ -156,6 +156,6 @@ io_suite() {
test_step_set_pre io_cleanup_step
test_step_set_post io_cleanup_step
test_suite_add "TShark file I/O" tshark_io_suite
#test_suite_add "Ethereal file I/O" ethereal_io_suite
#test_suite_add "Wireshark file I/O" wireshark_io_suite
#test_suite_add "Dumpcap file I/O" dumpcap_io_suite
}