minor cleanup
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 6 Jan 2006 01:11:31 +0000 (01:11 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 6 Jan 2006 01:11:31 +0000 (01:11 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16964 f5534014-38df-0310-8fa8-9805f1628bb7

test/suite-capture.sh

index edcd7c39421d44f566c75d0daa904812106c7535..b7a21e64950a5e314c0da98cc6ea3ab7a677d693 100644 (file)
@@ -65,8 +65,7 @@ capture_step_10packets() {
 
 # capture exactly 10 packets using "-w -" (piping to stdout)
 capture_step_10packets_stdout() {
-       #$DUT -i $TRAFFIC_CAPTURE_IFACE -c 10 -a duration:$TRAFFIC_CAPTURE_DURATION -F libpcap -w ./testout.pcap 2>./testout.txt
-       $DUT -i $TRAFFIC_CAPTURE_IFACE -c 10 -a duration:$TRAFFIC_CAPTURE_DURATION -F libpcap -w - > ./testout.pcap 2>./testout.txt
+       $DUT -i $TRAFFIC_CAPTURE_IFACE -c 10 -a duration:$TRAFFIC_CAPTURE_DURATION -w - > ./testout.pcap 2>./testout.txt
        RETURNVALUE=$?
        if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
                test_step_failed "exit status of $DUT: $RETURNVALUE"
@@ -190,6 +189,8 @@ ethereal_capture_suite() {
        # Q: quit after cap, k: start capture immediately
        DUT="$ETHEREAL -Q -k"
        test_step_add "Capture 10 packets" capture_step_10packets
+       # piping to stdout doesn't work with Ethereal and capturing!
+       #test_step_add "Capture 10 packets using stdout: -w -" capture_step_10packets_stdout
        # read filter doesn't work with Ethereal and capturing!
        #test_step_add "Capture read filter (${TRAFFIC_CAPTURE_DURATION}s)" capture_step_read_filter
        # the snapshot length test is also based on the read filters
@@ -208,6 +209,8 @@ dumpcap_capture_suite() {
        #DUT="$DUMPCAP -Q"
        DUT=$DUMPCAP
        test_step_add "Capture 10 packets" capture_step_10packets
+       # piping to stdout currently doesn't work with dumpcap!
+       #test_step_add "Capture 10 packets using stdout: -w -" capture_step_10packets_stdout
        # read filter doesn't work with dumpcap!
        #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