3 . selftest
/test_functions.sh
5 . selftest
/win
/wintest_functions.sh
7 # This variable is defined in the per-hosts .fns file.
12 Usage: wintest_net.sh SERVER USERNAME PASSWORD DOMAIN
23 ncacn_np_tests
="NET-API-LOOKUP NET-API-LOOKUPHOST NET-API-RPCCONN-BIND NET-API-RPCCONN-SRV NET-API-RPCCONN-DC NET-API-RPCCONN-DCINFO NET-API-LISTSHARES"
24 #These tests fail on ncacn_np: NET-API-LOOKUPPDC NET-API-CREATEUSER NET-API-DELETEUSER
26 ncalrpc_tests
="NET-API-RPCCONN-SRV NET-API-RPCCONN-DC NET-API-RPCCONN-DCINFO NET-API-LISTSHARES"
27 #These tests fail on ncalrpc: NET-API-CREATEUSER NET-API-DELETEUSER
29 ncacn_ip_tcp_tests
="NET-API-LOOKUP NET-API-LOOKUPHOST NET-API-RPCCONN-SRV NET-API-RPCCONN-DC NET-API-RPCCONN-DCINFO NET-API-LISTSHARES"
30 #These tests fail on ncacn_ip_tcp: NET-API-LOOKUPPDC NET-API-CREATEUSER NET-API-DELETEUSER
32 bind_options
="seal,padcheck bigendian"
34 test_type
="ncalrpc ncacn_np ncacn_ip_tcp"
42 all_errs
=$
(expr $all_errs + 1)
43 restore_snapshot
"$errstr" "$VM_CFG_PATH"
46 for o
in $bind_options; do
47 for transport
in $test_type; do
49 ncalrpc
) net_test
=$ncalrpc_tests ;;
50 ncacn_np
) net_test
=$ncacn_np_tests ;;
51 ncacn_ip_tcp
) net_test
=$ncacn_ip_tcp_tests ;;
54 for t
in $net_test; do
55 test_name
="$t on $transport with $o"
56 $SMBTORTURE_BIN_PATH -U $username%$password \
57 -W $domain ${transport}:${server}[$o] \
58 $t || on_error
"\n$test_name failed."