# Copyright Brad Henry <brad@samba.org> 2006
# Released under the GNU GPL v2 or later.
# Copyright Brad Henry <brad@samba.org> 2006
# Released under the GNU GPL v2 or later.
-. $WINTEST_DIR/test_win.conf
+
+# This variable is defined in the per-hosts .fns file.
+. $WINTESTCONF
# Setup the windows environment.
# This was the best way I could figure out including library files
# Setup the windows environment.
# This was the best way I could figure out including library files
- WINTEST_CONFFILE="$SRCDIR/script/tests/win/test_win.conf"
- if [ ! -r $WINTEST_CONFFILE ]; then
- echo "$WINTEST_CONFFILE could not be read."
+ if [ ! $WINTESTCONF ]; then
+ echo "Environment variable WINTESTCONF has not been defined."
+ echo "Windows tests will not run unconfigured."
+ exit 1
+ fi
+
+ if [ ! -r $WINTESTCONF ]; then
+ echo "$WINTESTCONF could not be read."
export TMPDIR=$TMPDIR
export NETBIOSNAME=$NETBIOSNAME
export TMPDIR=$TMPDIR
export NETBIOSNAME=$NETBIOSNAME
$SRCDIR/script/tests/test_win.sh
status=$?
$SRCDIR/script/tests/test_win.sh
status=$?