3 # A program to act as a test harness for the mctest program
13 command="/sources/FreeBSD.CURRENT/src/tools/tools/mctest/mctest"
16 # Arguments are s (size), g (group), n (number), and c (command) followed
17 # by a set of hostnames.
18 args=`getopt s:g:n:c:i: $*`
21 echo 'Usage: mctest_run -s size -g group -n number -c remote command host1 host2 hostN'
51 # Start our remote sink/reflectors
55 now=`date "+%Y%m%d%H%M"`
58 output=$host\_$interface\_$size\_$number\.$now
59 $remote $host $command -r -M $# -m $current -n $number -s $size -i $interface > $output &
61 current=`expr $current + 1 `;
65 # Start the source/collector on this machine
67 $command -M $# -n $number -s $size -i le1 -t $gap > `uname -n`\_$size\_$number\.$now