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 raw_tests
="RAW-QFILEINFO RAW-SFILEINFO RAW-MKDIR RAW-SEEK RAW-OPEN RAW-WRITE RAW-UNLINK RAW-READ RAW-CLOSE RAW-IOCTL RAW-RENAME RAW-EAS RAW-STREAMS"
24 # This test fails: RAW-QFSINFO
28 for t
in $raw_tests; do
29 test_name
="$t / WINDOWS SERVER"
30 echo -e "\n$test_name SETUP PHASE"
34 if [ $err_rtn -ne 0 ]; then
35 # If test setup fails, load VM snapshot and skip test.
36 restore_snapshot
"\n$test_name setup failed, skipping test."
38 echo -e "\n$test_name setup completed successfully."
41 testit
"$test_name" $SMBTORTURE_BIN_PATH \
42 -U $username%$password \
43 -W $domain //$server/$SMBTORTURE_REMOTE_SHARE_NAME \
44 $t || all_errs
=`expr $all_errs + 1`
45 if [ $old_errs -lt $all_errs ]; then
46 restore_snapshot
"\n$test_name failed."
48 echo -e "\n$test_name CLEANUP PHASE"
50 if [ $err_rtn -ne 0 ]; then
51 # If cleanup fails, restore VM snapshot.
52 restore_snapshot
"\n$test_name removal failed."
54 echo -e "\n$test_name removal completed successfully."