s4/selftest: enable samba.tests.samba_tool.dnscmd for py3
[gd/samba-autobuild/.git] / source4 / selftest / win / wintest_client.sh
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