Annotation of embedaddon/iperf/test_commands.sh, revision 1.1.1.2
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.
4: # Eventually they should also use the -J flag to generate JSON output, and a program should
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
11: echo "Usage: `basename $0` hostname"
12: exit $E_BADARGS
13: fi
14:
15: set -x
16:
17: host=$1
18:
19: # basic testing
20: ./src/iperf3 -c $host -V -t 5 -T "test1"
21: ./src/iperf3 -c $host -u -V -t 5
22: # omit mode
23: ./src/iperf3 -c $host -i .3 -O 2 -t 5
24: # JSON mode
25: ./src/iperf3 -c $host -i 1 -J -t 5
26: # force V4
27: ./src/iperf3 -c $host -4 -t 5
28: ./src/iperf3 -c $host -4 -u -t 5
29: # force V6
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
! 33: ./src/iperf3 -c $host -V -t 5 --fq-rate 5m
! 34: ./src/iperf3 -c $host -u -V -t 5 --fq-rate 5m
! 35: # SCTP
! 36: ./src/iperf3 -c $host --sctp -V -t 5
1.1 misho 37: # parallel streams
38: ./src/iperf3 -c $host -P 3 -t 5
39: ./src/iperf3 -c $host -u -P 3 -t 5
40: # reverse mode
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
! 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
47: ./src/iperf3 -c $host -Z -t 5
48: ./src/iperf3 -c $host -Z -t 5 -R
49: # window size
50: ./src/iperf3 -c $host -t 5 -w 8M
51: # -n flag
52: ./src/iperf3 -c $host -n 5M
53: ./src/iperf3 -c $host -n 5M -u -b1G
54: # conflicting -n -t flags
55: ./src/iperf3 -c $host -n 5M -t 5
56: # -k mode
57: ./src/iperf3 -c $host -k 1K
58: ./src/iperf3 -c $host -k 1K -u -b1G
59: # CPU affinity
60: ./src/iperf3 -c $host -A 2/2
61: ./src/iperf3 -c $host -A 2/2 -u -b1G
62: # Burst mode
63: ./src/iperf3 -c $host -u -b1G/100
64: # change MSS
65: ./src/iperf3 -c $host -M 1000 -V
66: # test congestion control option (linux only)
67: ./src/iperf3 -c $host -C reno -V
68:
69:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>