1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00
Brad Henry 695cf5413a r18415: Make the samba-windows test scripts executable so they run a little easier in the build farm.
(This used to be commit b2d3f8f7aae5b2bb9baf4e45fbc4632576e6fea8)
2007-10-10 14:18:25 -05:00

35 lines
737 B
Bash
Executable File

#!/bin/sh
if [ `whoami` != "root" ]; then
echo "Windows tests will not run without root privilages."
exit 1
fi
if [ "$DO_SOCKET_WRAPPER" = SOCKET_WRAPPER ]; then
echo "Windows tests will not run with socket wrapper enabled."
exit 1
fi
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."
exit 1
fi
export WINTEST_DIR=$SRCDIR/script/tests/win
export TMPDIR=$TMPDIR
export NETBIOSNAME=$NETBIOSNAME
. $WINTESTCONF
$SRCDIR/script/tests/test_win.sh
status=$?
echo "$0 exits with status $status"
exit $status