• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9if [ $# -ne 1 ]
10then
11  echo "Usage: `basename $0` hostname"
12  exit $E_BADARGS
13fi
14
15set -x
16
17host=$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
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
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
43# bidirectional mode
44./src/iperf3 -c $host -P 2 -t 5 --bidir
45./src/iperf3 -c $host -u -P 2 -t 5 --bidir
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# -n flag with -R
55./src/iperf3 -c $host -n 5M -R
56./src/iperf3 -c $host -n 5M -u -b1G -R
57# conflicting -n -t flags
58./src/iperf3 -c $host -n 5M -t 5
59# -k mode
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
65# CPU affinity
66./src/iperf3 -c $host -A 2/2
67./src/iperf3 -c $host -A 2/2 -u -b1G
68# Burst mode
69./src/iperf3 -c $host -u -b1G/100
70# change MSS
71./src/iperf3 -c $host -M 1000 -V
72# test congestion control option (linux only)
73./src/iperf3 -c $host -C reno -V
74
75
76