3
. selftest/test_functions.sh
5
. selftest/win/wintest_functions.sh
7
# This variable is defined in the per-hosts .fns file.
12
Usage: test_net.sh SERVER USERNAME PASSWORD DOMAIN
23
export SMBTORTURE_REMOTE_HOST=$server
25
base_tests="BASE-UNLINK BASE-ATTR BASE-DELETE BASE-TCON BASE-OPEN BASE-CHKPATH"
33
all_errs=`expr $all_errs + 1`
34
restore_snapshot $errstr "$VM_CFG_PATH"
37
for t in $base_tests; do
38
test_name="$t / WINDOWS SERVER"
39
echo -e "\n$test_name SETUP PHASE"
43
if [ $err_rtn -ne 0 ]; then
44
# If test setup fails, load VM snapshot and skip test.
45
on_error "\n$test_name setup failed, skipping test."
47
echo -e "\n$test_name setup completed successfully."
49
$SMBTORTURE_BIN_PATH -U $username%$password \
50
-W $domain //$server/$SMBTORTURE_REMOTE_SHARE_NAME \
52
if [ $err -ne 0 ]; then
53
on_error "\n$test_name failed."
55
echo -e "\n$test_name CLEANUP PHASE"
57
if [ $err_rtn -ne 0 ]; then
58
# If cleanup fails, restore VM snapshot.
59
on_error "\n$test_name removal failed."
61
echo -e "\n$test_name removal completed successfully."