Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # This is a set of commands to run and verify they work before doing a new release. |
a1346054 | e919e8c | 2021-09-03 13:24:55 +0000 | [diff] [blame] | 4 | # Eventually they should also use the -J flag to generate JSON output, and a program should |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 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 |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 11 | echo "Usage: `basename "$0"` hostname" |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 12 | exit $E_BADARGS |
| 13 | fi |
| 14 | |
| 15 | set -x |
| 16 | |
| 17 | host=$1 |
| 18 | |
| 19 | # basic testing |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 20 | ./src/iperf3 -c "$host" -V -t 5 -T "test1" |
| 21 | ./src/iperf3 -c "$host" -u -V -t 5 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 22 | # omit mode |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 23 | ./src/iperf3 -c "$host" -i .3 -O 2 -t 5 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 24 | # JSON mode |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 25 | ./src/iperf3 -c "$host" -i 1 -J -t 5 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 26 | # force V4 |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 27 | ./src/iperf3 -c "$host" -4 -t 5 |
| 28 | ./src/iperf3 -c "$host" -4 -u -t 5 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 29 | # force V6 |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 30 | ./src/iperf3 -c "$host" -6 -t 5 |
| 31 | ./src/iperf3 -c "$host" -6 -u -t 5 |
Bruce A. Mah | 26a6e72 | 2020-06-08 13:57:26 -0700 | [diff] [blame] | 32 | # FQ rate |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 33 | ./src/iperf3 -c "$host" -V -t 5 --fq-rate 5m |
| 34 | ./src/iperf3 -c "$host" -u -V -t 5 --fq-rate 5m |
Bruce A. Mah | 26a6e72 | 2020-06-08 13:57:26 -0700 | [diff] [blame] | 35 | # SCTP |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 36 | ./src/iperf3 -c "$host" --sctp -V -t 5 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 37 | # parallel streams |
a1346054 | e919e8c | 2021-09-03 13:24:55 +0000 | [diff] [blame] | 38 | ./src/iperf3 -c "$host" -P 3 -t 5 |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 39 | ./src/iperf3 -c "$host" -u -P 3 -t 5 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 40 | # reverse mode |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 41 | ./src/iperf3 -c "$host" -P 2 -t 5 -R |
| 42 | ./src/iperf3 -c "$host" -u -P 2 -t 5 -R |
Bruce A. Mah | 26a6e72 | 2020-06-08 13:57:26 -0700 | [diff] [blame] | 43 | # bidirectional mode |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 44 | ./src/iperf3 -c "$host" -P 2 -t 5 --bidir |
| 45 | ./src/iperf3 -c "$host" -u -P 2 -t 5 --bidir |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 46 | # zero copy |
a1346054 | e919e8c | 2021-09-03 13:24:55 +0000 | [diff] [blame] | 47 | ./src/iperf3 -c "$host" -Z -t 5 |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 48 | ./src/iperf3 -c "$host" -Z -t 5 -R |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 49 | # window size |
a1346054 | e919e8c | 2021-09-03 13:24:55 +0000 | [diff] [blame] | 50 | ./src/iperf3 -c "$host" -t 5 -w 8M |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 51 | # -n flag |
a1346054 | e919e8c | 2021-09-03 13:24:55 +0000 | [diff] [blame] | 52 | ./src/iperf3 -c "$host" -n 5M |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 53 | ./src/iperf3 -c "$host" -n 5M -u -b1G |
Bruce A. Mah | b818ef5 | 2020-09-18 10:16:21 -0700 | [diff] [blame] | 54 | # -n flag with -R |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 55 | ./src/iperf3 -c "$host" -n 5M -R |
| 56 | ./src/iperf3 -c "$host" -n 5M -u -b1G -R |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 57 | # conflicting -n -t flags |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 58 | ./src/iperf3 -c "$host" -n 5M -t 5 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 59 | # -k mode |
a1346054 | e919e8c | 2021-09-03 13:24:55 +0000 | [diff] [blame] | 60 | ./src/iperf3 -c "$host" -k 1K |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 61 | ./src/iperf3 -c "$host" -k 1K -u -b1G |
Bruce A. Mah | b818ef5 | 2020-09-18 10:16:21 -0700 | [diff] [blame] | 62 | # -k mode with -R |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 63 | ./src/iperf3 -c "$host" -k 1K -R |
| 64 | ./src/iperf3 -c "$host" -k 1K -u -b1G -R |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 65 | # CPU affinity |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 66 | ./src/iperf3 -c "$host" -A 2/2 |
| 67 | ./src/iperf3 -c "$host" -A 2/2 -u -b1G |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 68 | # Burst mode |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 69 | ./src/iperf3 -c "$host" -u -b1G/100 |
Brian Tierney | d7e699e | 2013-12-20 14:46:24 -0800 | [diff] [blame] | 70 | # change MSS |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 71 | ./src/iperf3 -c "$host" -M 1000 -V |
Brian Tierney | dd05057 | 2013-12-20 15:05:21 -0800 | [diff] [blame] | 72 | # test congestion control option (linux only) |
a1346054 | ae2fac3 | 2021-09-03 13:48:55 +0000 | [diff] [blame] | 73 | ./src/iperf3 -c "$host" -C reno -V |