diff options
author | Bill Meier <wmeier@newsguy.com> | 2007-05-17 02:43:38 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2007-05-17 02:43:38 +0000 |
commit | 4b7eeb8562de157025ea05d03d9a3ae2d1d78547 (patch) | |
tree | 3ee36846382468f4cd14ed556c27f08bae5f3ef4 /test | |
parent | c38d837c4a46855b2162b320495d0b4552692950 (diff) | |
download | wireshark-4b7eeb8562de157025ea05d03d9a3ae2d1d78547.tar.gz wireshark-4b7eeb8562de157025ea05d03d9a3ae2d1d78547.tar.bz2 wireshark-4b7eeb8562de157025ea05d03d9a3ae2d1d78547.zip |
Try this again (with a longer timeout and more diagnostic info)
svn path=/trunk/; revision=21811
Diffstat (limited to 'test')
-rwxr-xr-x | test/config.sh | 2 | ||||
-rwxr-xr-x | test/suite-capture.sh | 17 |
2 files changed, 13 insertions, 6 deletions
diff --git a/test/config.sh b/test/config.sh index cb640b1c6c..aec0a04b34 100755 --- a/test/config.sh +++ b/test/config.sh @@ -57,7 +57,7 @@ TRAFFIC_CAPTURE_IFACE=${TRAFFIC_CAPTURE_IFACE:-1} # time to capture some traffic (in seconds) # (you may increase this if you get errors caused by very low traffic) -TRAFFIC_CAPTURE_DURATION=20 +TRAFFIC_CAPTURE_DURATION=60 # the default is to not capture in promiscuous mode # (this makes known trouble with some Windows WLAN adapters) diff --git a/test/suite-capture.sh b/test/suite-capture.sh index 2c25b248cd..af26c3a385 100755 --- a/test/suite-capture.sh +++ b/test/suite-capture.sh @@ -43,9 +43,15 @@ capture_test_output_print() { traffic_gen_ping() { # Generate some traffic for quiet networks. # This will have to be adjusted for non-Windows systems. -## ping -n 20 www.wireshark.org > /dev/null 2>&1 & - - { date; ping -n 20 www.wireshark.org; date; } > ./testout_ping.txt 2>&1 & + { + date + for (( x=20; x<=50; x++ )) + do + ping -n 1 -l $x www.wireshark.org # in effect: number the packets + sleep 1 + done + date + } > ./testout_ping.txt 2>&1 & } ping_cleanup() { @@ -95,6 +101,7 @@ capture_step_10packets() { test_step_ok else echo + $TSHARK -ta -r ./testout.pcap >> ./testout2.txt capture_test_output_print ./testout_ping.txt ./testout.txt ./testout2.txt # part of the Prerequisite checks # probably wrong interface, output the possible interfaces @@ -288,7 +295,7 @@ capture_step_snapshot() { traffic_gen_ping # capture with a snapshot length of 68 bytes for $TRAFFIC_CAPTURE_DURATION seconds - # this should result in no packets + # this should result in no packets greater than 68 bytes date > ./testout.txt $DUT -i $TRAFFIC_CAPTURE_IFACE $TRAFFIC_CAPTURE_PROMISC \ -w ./testout.pcap \ @@ -378,6 +385,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 "Wireshark capture" wireshark_capture_suite + test_suite_add "Wireshark capture" wireshark_capture_suite test_suite_add "Dumpcap capture" dumpcap_capture_suite } |