Add documentation for the new -t <timeout> parameter in smbclient.
[Samba.git] / examples / ad-bench / ad-bench.sh
blob84bb770e8c8ab329a6edf2e556a99c6e1f5a9764
1 #!/bin/bash
2 # AD-Bench main program, runs all the benchmarks
4 # Copyright (C) 2009 Kai Blin <kai@samba.org>
6 # This file is part of AD-Bench, an Active Directory benchmark tool
8 # AD-Bench is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # AD-Bench is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with AD-Bench. If not, see <http://www.gnu.org/licenses/>.
21 source `dirname $0`/utils.sh
23 if [ ! -f $RUNS ]; then
24 echo "Error: please fill in $RUNS"
25 echo "Sambple entries are"
26 echo "user@REALM.EXAMPLE.COM%password:domain_controller"
27 exit 1
30 for run in `cat $RUNS`; do
31 echo "START RUN"
32 bash `dirname $0`/time_kinit.sh `echo $run|cut -d ":" -f 1`
33 bash `dirname $0`/time_join.sh `echo $run|cut -d ":" -f 1` `echo $run|cut -d ":" -f 2`
34 bash `dirname $0`/time_user.sh `echo $run|cut -d ":" -f 1` `echo $run|cut -d ":" -f 2`
35 bash `dirname $0`/time_group.sh `echo $run|cut -d ":" -f 1` `echo $run|cut -d ":" -f 2`
36 bash `dirname $0`/time_ldap.sh `echo $run|cut -d ":" -f 1` `echo $run|cut -d ":" -f 2`
37 echo "END RUN"
38 done