torture3: Fix bug 10687
[Samba.git] / source4 / selftest / win / wintest_client.sh
blob6b76ae36f7ff56874941e61ffd5062d65c16c92a
1 #!/bin/sh
3 . selftest/test_functions.sh
5 . selftest/win/wintest_functions.sh
7 # This variable is defined in the per-hosts .fns file.
8 . $WINTESTCONF
10 export SMBTORTURE_REMOTE_HOST=$1
12 test_name="WINDOWS CLIENT / SAMBA SERVER SHARE"
14 cat $WINTEST_DIR/common.exp > $TMPDIR/client_test.exp
15 cat $WINTEST_DIR/wintest_client.exp >> $TMPDIR/client_test.exp
17 expect $TMPDIR/client_test.exp || all_errs=`expr $all_errs + 1`
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"
24 rm -f $TMPDIR/client_test.exp
26 exit $all_errs