3 . script
/tests
/test_functions.sh
5 . script
/tests
/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 base_tests
="BASE-UNLINK BASE-ATTR BASE-DELETE BASE-TCON BASE-OPEN BASE-CHKPATH"
27 for t
in $base_tests; do
28 test_name
="$t / WINDOWS SERVER"
29 echo -e "\n$test_name SETUP PHASE"
33 if [ $err_rtn -ne 0 ]; then
34 # If test setup fails, load VM snapshot and skip test.
35 restore_snapshot
"\n$test_name setup failed, skipping test."
37 echo -e "\n$test_name setup completed successfully."
40 testit
"$test_name" $SMBTORTURE_BIN_PATH \
41 -U $username%$password \
42 -W $domain //$server/$SMBTORTURE_REMOTE_SHARE_NAME \
43 $t || all_errs
=`expr $all_errs + 1`
44 if [ $old_errs -lt $all_errs ]; then
45 restore_snapshot
"\n$test_name failed."
47 echo -e "\n$test_name CLEANUP PHASE"
49 if [ $err_rtn -ne 0 ]; then
50 # If cleanup fails, restore VM snapshot.
51 restore_snapshot
"\n$test_name removal failed."
53 echo -e "\n$test_name removal completed successfully."