2006-08-24 08:14:34 +04:00
#!/bin/sh
# A shell script to connect to a windows host over telnet,
# setup for a smbtorture test,
# run the test,
# and remove the previously configured directory and share.
# Copyright Brad Henry <brad@samba.org> 2006
# Released under the GNU GPL v2 or later.
2007-02-22 01:50:55 +03:00
. script/tests/test_functions.sh
2006-08-24 08:14:34 +04:00
2007-02-22 01:50:55 +03:00
export SMBTORTURE_REMOTE_HOST = ` perl -I$WINTEST_DIR $WINTEST_DIR /vm_get_ip.pl VM_CFG_PATH`
2006-09-25 07:29:59 +04:00
if [ -z $SMBTORTURE_REMOTE_HOST ] ; then
# Restore snapshot to ensure VM is in a known state, then exit.
2007-02-22 01:50:55 +03:00
restore_snapshot "Test failed to get the IP address of the windows host." " $VM_CFG_PATH "
2006-09-25 07:29:59 +04:00
exit 1
fi
2006-08-24 08:14:34 +04:00
2007-02-22 01:50:55 +03:00
name = "BASE against Windows 2003"
2007-03-21 18:57:07 +03:00
testit " $name " smb $WINTEST_DIR /wintest_base.sh $SMBTORTURE_REMOTE_HOST \
2007-02-22 01:50:55 +03:00
$SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
2006-08-24 08:14:34 +04:00
2007-02-22 01:50:55 +03:00
name = "RAW against Windows 2003"
2007-03-21 18:57:07 +03:00
testit " $name " smb $WINTEST_DIR /wintest_raw.sh $SMBTORTURE_REMOTE_HOST \
2007-02-22 01:50:55 +03:00
$SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
2006-09-25 07:29:59 +04:00
2007-02-22 01:50:55 +03:00
name = "RPC against Windows 2003"
2007-03-21 18:57:07 +03:00
testit " $name " smb $WINTEST_DIR /wintest_rpc.sh $SMBTORTURE_REMOTE_HOST \
2007-02-22 01:50:55 +03:00
$SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
2006-09-25 07:29:59 +04:00
2007-02-22 01:50:55 +03:00
name = "NET against Windows 2003"
2007-03-21 18:57:07 +03:00
testit " $name " smb $WINTEST_DIR /wintest_net.sh $SMBTORTURE_REMOTE_HOST \
2007-02-22 01:50:55 +03:00
$SMBTORTURE_USERNAME $SMBTORTURE_PASSWORD $SMBTORTURE_WORKGROUP
2006-10-24 05:29:02 +04:00
2007-02-22 01:50:55 +03:00
name = "Windows 2003 against smbd"
2007-03-21 18:57:07 +03:00
testit " $name " smb $WINTEST_DIR /wintest_client.sh $SMBTORTURE_REMOTE_HOST
2007-02-22 01:50:55 +03:00
dc_tests = "RPC-DRSUAPI RPC-SPOOLSS ncacn_np ncacn_ip_tcp"
for name in $dc_tests ; do
2007-03-21 18:57:07 +03:00
testit " $name against Windows 2003 DC " rpc $WINTEST_DIR /wintest_2k3_dc.sh \
2007-02-23 21:02:16 +03:00
" $name "
2007-02-22 01:50:55 +03:00
done