1 | #!/bin/sh
|
---|
2 |
|
---|
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.
|
---|
9 |
|
---|
10 | . selftest/test_functions.sh
|
---|
11 |
|
---|
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
|
---|
17 | fi
|
---|
18 |
|
---|
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
|
---|
22 |
|
---|
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
|
---|
26 |
|
---|
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
|
---|
30 |
|
---|
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
|
---|
34 |
|
---|
35 | name="Windows 2003 against samba"
|
---|
36 | testit "$name" smb $WINTEST_DIR/wintest_client.sh $SMBTORTURE_REMOTE_HOST
|
---|
37 |
|
---|
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
|
---|