Move smb_create_user() in samsync
[Samba.git] / source4 / selftest / test_win.sh
blob17c09e6b269b6106ce40519a0af6b37f0f12dcf9
1 #!/bin/sh
3 # A shell script to connect to a windows host over telnet,
4 # setup for a smbtorture test,
5 # run the test,
6 # and remove the previously configured directory and share.
7 # Copyright Brad Henry <brad@samba.org> 2006
8 # Released under the GNU GPL version 3 or later.
10 . selftest/test_functions.sh
12 export SMBTORTURE_REMOTE_HOST=`perl -I$WINTEST_DIR $WINTEST_DIR/vm_get_ip.pl VM_CFG_PATH`
13 if [ -z $SMBTORTURE_REMOTE_HOST ]; then
14 # Restore snapshot to ensure VM is in a known state, then exit.
15 restore_snapshot "Test failed to get the IP address of the windows host." "$VM_CFG_PATH"
16 exit 1
19 name="BASE against Windows 2003"
20 testit "$name" smb $WINTEST_DIR/wintest_base.sh $SMBTORTURE_REMOTE_HOST \
21 $SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
23 name="RAW against Windows 2003"
24 testit "$name" smb $WINTEST_DIR/wintest_raw.sh $SMBTORTURE_REMOTE_HOST \
25 $SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
27 name="RPC against Windows 2003"
28 testit "$name" smb $WINTEST_DIR/wintest_rpc.sh $SMBTORTURE_REMOTE_HOST \
29 $SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
31 name="NET against Windows 2003"
32 testit "$name" smb $WINTEST_DIR/wintest_net.sh $SMBTORTURE_REMOTE_HOST \
33 $SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
35 name="Windows 2003 against samba"
36 testit "$name" smb $WINTEST_DIR/wintest_client.sh $SMBTORTURE_REMOTE_HOST
38 dc_tests="RPC-DRSUAPI ncacn_np ncacn_ip_tcp"
39 for name in $dc_tests; do
40 testit "$name against Windows 2003 DC" rpc $WINTEST_DIR/wintest_2k3_dc.sh \
41 "$name"
42 done