~bug-zappers/ubuntu/lucid/samba/bugzapping

« back to all changes in this revision

Viewing changes to testsuite/build_farm/torture_setup.fns

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-10-15 12:31:58 UTC
  • Revision ID: james.westby@ubuntu.com-20041015123158-aokykzdqkdgy6dfx
Tags: upstream-3.0.7
ImportĀ upstreamĀ versionĀ 3.0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
. basicsmb.fns
 
2
 
 
3
test_torture() {
 
4
        torture_test=$1
 
5
        password=samba
 
6
        security=USER
 
7
        (test_smb_conf_setup && test_smbpasswd $password ) || return 1
 
8
 
 
9
        echo $srcdir/bin/smbtorture //localhost/test -U$whoami%$password $torture_test
 
10
        $srcdir/bin/smbtorture //localhost/test -U$whoami%$password $torture_test
 
11
        status=$?
 
12
        if [ $status = 0 ]; then
 
13
                echo "smbtorture test $torture_test worked"
 
14
        else
 
15
                echo "smbtorture test $torture_test FAILED (status $status)!"
 
16
                return 1
 
17
        fi
 
18
        return 0
 
19
}