Annotation of embedaddon/iperf/test_commands.sh, revision 1.1.1.3

1.1       misho       1: #!/bin/sh
                      2: #
                      3: # This is a set of commands to run and verify they work before doing a new release.
1.1.1.3 ! misho       4: # Eventually they should also use the -J flag to generate JSON output, and a program should
1.1       misho       5: # be written to check the output.
                      6: # Be sure to test both client and server on Linux, BSD, and OSX
                      7: #
                      8: 
                      9: if [ $# -ne 1 ]
                     10: then
1.1.1.3 ! misho      11:   echo "Usage: `basename "$0"` hostname"
1.1       misho      12:   exit $E_BADARGS
                     13: fi
                     14: 
                     15: set -x
                     16: 
                     17: host=$1
                     18: 
                     19: # basic testing
1.1.1.3 ! misho      20: ./src/iperf3 -c "$host" -V -t 5 -T "test1"
        !            21: ./src/iperf3 -c "$host" -u -V -t 5
1.1       misho      22: # omit mode
1.1.1.3 ! misho      23: ./src/iperf3 -c "$host" -i .3 -O 2 -t 5
1.1       misho      24: # JSON mode
1.1.1.3 ! misho      25: ./src/iperf3 -c "$host" -i 1 -J -t 5
1.1       misho      26: # force V4
1.1.1.3 ! misho      27: ./src/iperf3 -c "$host" -4 -t 5
        !            28: ./src/iperf3 -c "$host" -4 -u -t 5
1.1       misho      29: # force V6
1.1.1.3 ! misho      30: ./src/iperf3 -c "$host" -6 -t 5
        !            31: ./src/iperf3 -c "$host" -6 -u -t 5
1.1.1.2   misho      32: # FQ rate
1.1.1.3 ! misho      33: ./src/iperf3 -c "$host" -V -t 5 --fq-rate 5m
        !            34: ./src/iperf3 -c "$host" -u -V -t 5 --fq-rate 5m
1.1.1.2   misho      35: # SCTP
1.1.1.3 ! misho      36: ./src/iperf3 -c "$host" --sctp -V -t 5
1.1       misho      37: # parallel streams
1.1.1.3 ! misho      38: ./src/iperf3 -c "$host" -P 3 -t 5
        !            39: ./src/iperf3 -c "$host" -u -P 3 -t 5
1.1       misho      40: # reverse mode
1.1.1.3 ! misho      41: ./src/iperf3 -c "$host" -P 2 -t 5 -R
        !            42: ./src/iperf3 -c "$host" -u -P 2 -t 5 -R
1.1.1.2   misho      43: # bidirectional mode
1.1.1.3 ! misho      44: ./src/iperf3 -c "$host" -P 2 -t 5 --bidir
        !            45: ./src/iperf3 -c "$host" -u -P 2 -t 5 --bidir
1.1       misho      46: # zero copy
1.1.1.3 ! misho      47: ./src/iperf3 -c "$host" -Z -t 5
        !            48: ./src/iperf3 -c "$host" -Z -t 5 -R
1.1       misho      49: # window size
1.1.1.3 ! misho      50: ./src/iperf3 -c "$host" -t 5 -w 8M
1.1       misho      51: # -n flag
1.1.1.3 ! misho      52: ./src/iperf3 -c "$host" -n 5M
        !            53: ./src/iperf3 -c "$host" -n 5M -u -b1G
        !            54: # -n flag with -R
        !            55: ./src/iperf3 -c "$host" -n 5M -R
        !            56: ./src/iperf3 -c "$host" -n 5M -u -b1G -R
1.1       misho      57: # conflicting -n -t flags
1.1.1.3 ! misho      58: ./src/iperf3 -c "$host" -n 5M -t 5
1.1       misho      59: # -k mode
1.1.1.3 ! misho      60: ./src/iperf3 -c "$host" -k 1K
        !            61: ./src/iperf3 -c "$host" -k 1K -u -b1G
        !            62: # -k mode with -R
        !            63: ./src/iperf3 -c "$host" -k 1K -R
        !            64: ./src/iperf3 -c "$host" -k 1K -u -b1G -R
1.1       misho      65: # CPU affinity
1.1.1.3 ! misho      66: ./src/iperf3 -c "$host" -A 2/2
        !            67: ./src/iperf3 -c "$host" -A 2/2 -u -b1G
1.1       misho      68: # Burst mode
1.1.1.3 ! misho      69: ./src/iperf3 -c "$host" -u -b1G/100
1.1       misho      70: # change MSS
1.1.1.3 ! misho      71: ./src/iperf3 -c "$host" -M 1000 -V
1.1       misho      72: # test congestion control option (linux only)
1.1.1.3 ! misho      73: ./src/iperf3 -c "$host" -C reno -V

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>