fuzzing: fix fuzz_stable_sort_r_unstable comparison
[Samba.git] / testprogs / blackbox / test_wintest.sh
blob1015a1ef299627eee5e348462cf07bb437bdf1ba
1 #!/bin/sh
2 # Blackbox tests for testing against windows machines
3 # Copyright (C) 2008 Jim McDonough
5 testwithconf()
7 # define test variables, startup/shutdown scripts
8 . $1
9 shift 1
11 if [ -n "$WINTEST_STARTUP" ]; then
12 . $WINTEST_STARTUP
15 testit "smbtorture" $smbtorture //$SERVER/$SHARE RAW-OPEN -W "$DOMAIN" -U"$USERNAME%$PASSWORD" "$@" || failed=$(expr $failed + 1)
17 if [ -n "$WINTEST_SHUTDOWN" ]; then
18 . $WINTEST_SHUTDOWN
22 # main
23 # skip without WINTEST_CONF_DIR
24 if [ -z "$WINTEST_CONF_DIR" ]; then
25 exit 0
28 unset SOCKET_WRAPPER_DIR
30 failed=0
32 basedir=$(pwd)
34 samba4bindir=$(dirname $0)/../../source4/bin
35 smbtorture=$samba4bindir/smbtorture
37 . $(dirname $0)/subunit.sh
39 for wintest_conf in $WINTEST_CONF_DIR/*.conf; do
40 testwithconf "$wintest_conf" "$@"
41 done
43 exit $failed