~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/selftest/win/wintest_client.sh

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. selftest/test_functions.sh
 
4
 
 
5
. selftest/win/wintest_functions.sh
 
6
 
 
7
# This variable is defined in the per-hosts .fns file.
 
8
. $WINTESTCONF
 
9
 
 
10
export SMBTORTURE_REMOTE_HOST=$1
 
11
 
 
12
test_name="WINDOWS CLIENT / SAMBA SERVER SHARE"
 
13
 
 
14
cat $WINTEST_DIR/common.exp > $TMPDIR/client_test.exp
 
15
cat $WINTEST_DIR/wintest_client.exp >> $TMPDIR/client_test.exp
 
16
 
 
17
expect $TMPDIR/client_test.exp || all_errs=`expr $all_errs + 1`
 
18
 
 
19
if [ $all_errs > 0 ]; then
 
20
        # Restore snapshot to ensure VM is in a known state.
 
21
        restore_snapshot "\n$test_name failed." "$VM_CFG_PATH"
 
22
fi
 
23
 
 
24
rm -f $TMPDIR/client_test.exp
 
25
 
 
26
exit $all_errs